Test Case Prioritization and Reduction Using Hybrid Quantum-behaved Particle Swarm Optimization

Anu Bajaj, A. Abraham
{"title":"Test Case Prioritization and Reduction Using Hybrid Quantum-behaved Particle Swarm Optimization","authors":"Anu Bajaj, A. Abraham","doi":"10.1109/CEC55065.2022.9870238","DOIUrl":null,"url":null,"abstract":"Regression testing is an integral part of the software evolution and maintenance phase as it ensures that the modified software is working correctly after any upgrades. Test case prioritization and reduction minimize cost and effort needed for retesting by scheduling critical test cases before the less critical ones and removing redundant test cases. The criticality and redundancy of the test cases depend on several testing criteria. This paper empirically analyzed the effect of different testing criteria like code and fault coverage on the techniques' performance. This paper proposed a discrete Quantum-behaved particle swarm optimization (QPSO) for enhancing efficiency of test case prioritization. The algorithm is improved by replacing the random distribution with Gaussian probability to escape from the local optima. The evolution stagnation issue is further resolved by hybridizing it with genetic algorithm (QPSO-GA). In addition to prioritizing the test cases, the algorithm also reduces the test suite size through the test suite reduction approach. The experiments are conducted on different versions of three pro-grams from the open-source software infrastructure repository. The performance is compared with the average percentage of statement coverage, fault detection, and their combinations with the cost. Consequently, suite reduction, fault detection capability losses, and coverage loss percentage are also drawn for test suite reduction. The proposed algorithms outperformed the random search, ant colony optimization, differential evolution, GA, PSO, and adaptive PSO for all the evaluation metrics.","PeriodicalId":153241,"journal":{"name":"2022 IEEE Congress on Evolutionary Computation (CEC)","volume":"7 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-07-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE Congress on Evolutionary Computation (CEC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CEC55065.2022.9870238","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Regression testing is an integral part of the software evolution and maintenance phase as it ensures that the modified software is working correctly after any upgrades. Test case prioritization and reduction minimize cost and effort needed for retesting by scheduling critical test cases before the less critical ones and removing redundant test cases. The criticality and redundancy of the test cases depend on several testing criteria. This paper empirically analyzed the effect of different testing criteria like code and fault coverage on the techniques' performance. This paper proposed a discrete Quantum-behaved particle swarm optimization (QPSO) for enhancing efficiency of test case prioritization. The algorithm is improved by replacing the random distribution with Gaussian probability to escape from the local optima. The evolution stagnation issue is further resolved by hybridizing it with genetic algorithm (QPSO-GA). In addition to prioritizing the test cases, the algorithm also reduces the test suite size through the test suite reduction approach. The experiments are conducted on different versions of three pro-grams from the open-source software infrastructure repository. The performance is compared with the average percentage of statement coverage, fault detection, and their combinations with the cost. Consequently, suite reduction, fault detection capability losses, and coverage loss percentage are also drawn for test suite reduction. The proposed algorithms outperformed the random search, ant colony optimization, differential evolution, GA, PSO, and adaptive PSO for all the evaluation metrics.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
基于混合量子行为粒子群优化的测试用例优先级和缩减
回归测试是软件发展和维护阶段不可或缺的一部分,因为它确保修改后的软件在任何升级之后都能正常工作。通过在次要的测试用例之前安排关键的测试用例,并移除冗余的测试用例,对测试用例进行优先级排序和减少,以最小化重新测试所需的成本和努力。测试用例的关键性和冗余性取决于几个测试标准。本文实证分析了代码和故障覆盖率等不同的测试标准对技术性能的影响。为了提高测试用例优先排序的效率,提出了一种离散量子粒子群优化算法。改进了算法,用高斯概率代替随机分布,避免了局部最优。将其与遗传算法(QPSO-GA)进行杂交,进一步解决了进化停滞问题。除了对测试用例进行优先级排序之外,该算法还通过测试套件缩减方法减少了测试套件的大小。实验是在来自开源软件基础架构库的三个程序的不同版本上进行的。将性能与语句覆盖率、故障检测的平均百分比以及它们与成本的组合进行比较。因此,套件减少、故障检测能力损失和覆盖率损失百分比也被用于测试套件减少。该算法在所有评价指标上都优于随机搜索、蚁群优化、差分进化、遗传算法、粒子群算法和自适应粒子群算法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Impacts of Single-objective Landscapes on Multi-objective Optimization Cooperative Multi-objective Topology Optimization Using Clustering and Metamodeling Global and Local Area Coverage Path Planner for a Reconfigurable Robot A New Integer Linear Program and A Grouping Genetic Algorithm with Controlled Gene Transmission for Joint Order Batching and Picking Routing Problem Test Case Prioritization and Reduction Using Hybrid Quantum-behaved Particle Swarm Optimization
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1