arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1704.04772cs.SE
收藏

一种基于随机游走的结构化测试用例生成算法

A Random Walk Based Algorithm for Structural Test Case Generation

Jifeng Xuan, He Jiang, Zhilei Ren, Yan Hu, Zhongxuan Luo

摘要:

结构化测试是软件开发中一个重要而昂贵的过程。基于搜索的软件测试将测试数据生成问题转化为优化问题,是测试用例自动生成的关键技术之一。受随机游走算法在解决可满足性问题(SAT)方面的成功启发,提出了一种基于随机游走的结构化测试用例生成算法(WalkTest)。WalkTest提供了一个框架,它迭代地调用随机游走算子来搜索最优解。为了提高搜索效率,我们完全按照解的代价对测试目标进行排序,而不是传统的从控制流图中进行依赖分析。实验结果表明,WalkTest算法在运行时间和覆盖率方面均优于现有算法(随机测试和禁忌搜索)。

英文摘要:

Structural testing is a significant and expensive process in software development. By converting test data generation into an optimization problem, search-based software testing is one of the key technologies of automated test case generation. Motivated by the success of random walk in solving the satisfiability problem (SAT), we proposed a random walk based algorithm (WalkTest) to solve structural test case generation problem. WalkTest provides a framework, which iteratively calls random walk operator to search the optimal solutions. In order to improve search efficiency, we sorted the test goals with the costs of solutions completely instead of traditional dependence analysis from control flow graph. Experimental results on the condition-decision coverage demonstrated that WalkTest achieves better performance than existing algorithms (random test and tabu search) in terms of running time and coverage rate.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑