首页>
外国专利>
UNIT TESTING METHOD BASED ON AUTOMATIC GENERATION OF PATH COVERAGE TEST CASES
UNIT TESTING METHOD BASED ON AUTOMATIC GENERATION OF PATH COVERAGE TEST CASES
展开▼
机译:基于自动生成路径覆盖测试用例的单元测试方法
展开▼
页面导航
摘要
著录项
相似文献
摘要
The present invention provides a unit testing method based on automatic generation of path coverage test cases. First, obtain a control flow graph of a program to be tested is obtained. Then, an executable code is executed in the generated control flow graph based on of an automatically generated test case, and meanwhile, a fitness value is calculated and acquired based on of an execution result of the executable code, and a sub-node is selected to continue repeating the above process, until a terminal node in the control flow graph is found, and finally a path marker is generated and the fitness value corresponding to the path is obtained. Then, an automatic test case generation algorithm is executed, and the algorithm constantly automatically generates test cases based on of the returned fitness value, and exits when the path is completely covered, or a set execution is timed out.
展开▼