arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1401.5165cs.SE
收藏

基于遗传算法的基路径测试测试数据生成方法

A Genetic Algorithm based Approach for Test Data Generation in Basis Path Testing

Yeresime Suresh, Santanu Ku. Rath

摘要:

软件测试是一个通过适当的测试数据来识别软件质量和可靠性的过程。但是,由于模块中存在大量谓词节点,因此手动执行此操作是一项困难的任务。这就导致了一个NP完全问题。因此,必须使用一些基于智能的搜索算法来生成测试数据。在本文中,我们使用一种基于软计算的方法,遗传算法来生成基于基路径集的测试数据。将遗传算法的特点与测试数据相结合,利用其各自全局和局部寻优能力的优点,提高测试数据的生成能力。这种自动生成测试数据的过程最佳地帮助减少测试人员的测试工作量和时间。最后,将该方法应用于ATM取款任务。实验结果表明,遗传算法能够根据适应度值生成合适的测试数据,并通过优化避免冗余数据。

英文摘要:

Software Testing is a process to identify the quality and reliability of software, which can be achieved through the help of proper test data. However, doing this manually is a difficult task due to the presence of number of predicate nodes in the module. So, this leads towards a problem of NP-complete. Therefore some intelligence-based search algorithms have to be used to generate test data. In this paper, we use a soft computing based approach, genetic algorithm to generate test data based on the set of basis paths. This paper combines the characteristics of genetic algorithm with test data, making use of the merits of respective global and local optimization capability to improve the generation capacity of test data. This automated process of generating test data optimally helps in reducing the test effort and time of a tester. Finally, the proposed approach is applied for ATM withdrawal task. Experimental results show that genetic algorithm was able to generate suitable test data based on a fitness value and avoid redundant data by optimization.

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

↑