Test Suite Prioritization Based on Optimization Approach Using Reinforcement Learning

被引:9
作者
Waqar, Muhammad [1 ]
Imran [2 ]
Zaman, Muhammad Atif [1 ]
Muzammal, Muhammad [1 ]
Kim, Jungsuk [2 ]
机构
[1] Bahria Univ Islamabad, Dept Comp Sci, Islamabad 44000, Pakistan
[2] Gachon Univ, Dept Biomed Engn, Incheon 21936, South Korea
来源
APPLIED SCIENCES-BASEL | 2022年 / 12卷 / 13期
基金
新加坡国家研究基金会;
关键词
software testing; regression testing; test suite optimization; test suite prioritization; reinforcement learning; SOFTWARE;
D O I
10.3390/app12136772
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
Regression testing ensures that modified software code changes have not adversely affected existing code modules. The test suite size increases with modification to the software based on the end-user requirements. Regression testing executes the complete test suite after updates in the software. Re-execution of new test cases along with existing test cases is costly. The scientific community has proposed test suite prioritization techniques for selecting and minimizing the test suite to minimize the cost of regression testing. The test suite prioritization goal is to maximize fault detection with minimum test cases. Test suite minimization reduces the test suite size by deleting less critical test cases. In this study, we present a four-fold methodology of test suite prioritization based on reinforcement learning. First, the testers' and users' log datasets are prepared using the proposed interaction recording systems for the android application. Second, the proposed reinforcement learning model is used to predict the highest future reward sequence list from the data collected in the first step. Third, the proposed prioritization algorithm signifies the prioritized test suite. Lastly, the fault seeding approach is used to validate the results from software engineering experts. The proposed reinforcement learning-based test suite optimization model is evaluated through five case study applications. The performance evaluation results show that the proposed mechanism performs better than baseline approaches based on random and t-SANT approaches, proving its importance for regression testing.
引用
收藏
页数:19
相关论文
共 42 条
[1]  
Abid R., 2017, P 2017 13 INT C EMER, P1
[2]  
Ammar A., 2016, 2016 INT C INFORM SC, P1
[3]  
Bin Noor T, 2015, 2015 IEEE 1ST INTERNATIONAL WORKSHOP ON SOFTWARE ANALYTICS (SWAN), P13, DOI 10.1109/SWAN.2015.7070482
[4]   Test case prioritization for object-oriented software: An adaptive random sequence approach based on clustering [J].
Chen, Jinfu ;
Zhu, Lili ;
Chen, Tsong Yueh ;
Towey, Dave ;
Kuo, Fei-Ching ;
Huang, Rubing ;
Guo, Yuchi .
JOURNAL OF SYSTEMS AND SOFTWARE, 2018, 135 :107-125
[5]  
De Oliveira Paiva E., 2016, INT J MOD ED RES, V3, P1
[6]   An Hybrid Binary Multi-Objective Particle Swarm Optimization with Local Search for Test Case Selection [J].
de Souza, Luciano S. ;
Prudencio, Ricardo B. C. ;
Barros, Flavia de A. .
2014 BRAZILIAN CONFERENCE ON INTELLIGENT SYSTEMS (BRACIS), 2014, :414-419
[7]  
Elanthiraiyan N, 2014, 2014 INTERNATIONAL CONFERENCE ON ADVANCED COMMUNICATION CONTROL AND COMPUTING TECHNOLOGIES (ICACCCT), P1568, DOI 10.1109/ICACCCT.2014.7019371
[8]  
Haider A., 2012, 2012 International Conference on Emerging Technologies, P1
[9]   Prioritizing Interaction Test Suites using Repeated Base Choice Coverage [J].
Huang, Rubing ;
Zong, Weiwen ;
Chen, Jinfu ;
Towey, Dave ;
Zhou, Yunan ;
Chen, Deng .
PROCEEDINGS 2016 IEEE 40TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE WORKSHOPS, VOL 1, 2016, :174-184
[10]   Learning to Adjust and Refine Gait Patterns for a Biped Robot [J].
Hwang, Kao-Shing ;
Lin, Jin-Ling ;
Yeh, Keng-Hao .
IEEE TRANSACTIONS ON SYSTEMS MAN CYBERNETICS-SYSTEMS, 2015, 45 (12) :1481-1490