Code positioning method and device for test case, storage medium and electronic device
By performing semantic analysis on code files and test cases and using semantic feature information matching, the problem of low accuracy and efficiency in locating code using traditional test cases is solved, achieving fast and accurate code location and improving testing efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
- Filing Date
- 2022-03-14
- Publication Date
- 2026-06-05
AI Technical Summary
In traditional software testing, test cases suffer from low accuracy and efficiency when locating code, especially since exceptions may occur during test case execution, leading to difficulties in code association and long processing times.
By performing semantic analysis on code files and test cases, and using semantic feature information matching, similarity is calculated to locate the target code. This includes performing semantic analysis on the annotation information of the code files to obtain the first semantic feature information, and calculating the similarity with the second semantic feature information of the test cases to determine the location of the target code.
It improves the accuracy and efficiency of code location through test cases, allowing for quick code location without executing test cases, reducing labor costs and increasing testing efficiency.
Smart Images

Figure CN116795666B_ABST