摘要
在软件测试中,测试用例对被测软件的覆盖率,是发现软件缺陷的重要前提之一。采用软件工程实验方法,使用基本的数据结构代码片段对EvoSuite、Randoop和JavaPathfinder工具在相同的生成时间限制下,生成的测试用例对被测代码的方法覆盖率,行覆盖率,字节码覆盖率等进行实验分析,发现EvoSuite工具的代码覆盖率明显优于其余两个工具。另外,本文对影响工具性能的因素进行分析。对于如何使用这两种工具生成高覆盖率的测试用例,以及对工具的改进具有参考价值。
In software testing,the coverage of test cases to the software under test is one of the important prerequisites for discovering software defects.In this paper,using the method of software engineering experiment,using the basic data structure code snippet of Evosuite,Randoop and JavaPathfinder tools in the same generation under the time limit,the generated test case coverage of code under test method,the line cover⁃age,byte code coverage and so on carries on the experimental analysis,found Evosuite tools code coverage is better than the other two tools.In addition,this paper analyzes the factors that influence the tool performance.This study is valuable for how to use both tools to generate high coverage test cases and for tool improvements.
作者
杨正卉
YANG Zheng-hui(College of Software Engineering,Sichuan University,Chengdu 610065)
出处
《现代计算机》
2020年第15期151-156,共6页
Modern Computer