摘要
针对回归测试成本相对较高的问题,提出一种基于多样性感知图的测试用例优先排序方法。根据语句覆盖信息计算杰卡德距离,获得测试用例间的相异矩阵;依据语句覆盖信息和测试用例相异矩阵构建图;将测试优先排序问题转化为图的问题,结合多样性感知图算法遍历图,生成测试用例优先序列。实验结果表明,该方法具有较快的覆盖速度,有效地提高了测试用例排序的效率。
To deal with the high test cost,a test case prioritization method based on diversity-aware graph is proposed in this paper.In this method,the alien matrix of the relationship among test cases is obtained based on jaccard distance calculated by statement coverage information.Then,the graph is generated between code coverage and matrix.Finally,the test case prioritization problem is transformed into a graph problem,and the current optimal test case order is therefore found by the combination with the diversity-aware graph algorithm traversing the graph.Experiment results show that the proposed method has a faster convergence speed and better efficiency.
作者
王曙燕
张振豪
孙家泽
WANG Shuyan;ZHANG Zhenghao;SUN Jiaze(School of Computer Science and Technology, Xi'an University of Posts and Telecommunications, Xi'an 710121,China)
出处
《西安邮电大学学报》
2019年第6期70-74,共5页
Journal of Xi’an University of Posts and Telecommunications
基金
陕西省工业科技攻关计划资助项目(2018GY-014)。