DEEP REINFORCEMENT LEARNING FOR TEST CASE GENERATION AND PRIORITIZATION

Authors

  • JingXuan Guo School of Railway Intelligent Engineering, Dalian Jiaotong University, Dalian 116045, Liaoning, China.
  • JingJing Liu (Corresponding Author) School of Railway Intelligent Engineering, Dalian Jiaotong University, Dalian 116045, Liaoning, China.

Keywords:

Software testing, Deep reinforcement learning, Test case generation, Test case prioritization

Abstract

With the increasing scale and complexity of software systems, improving testing efficiency and fault detection capability under limited testing resources has become a critical issue in software testing research. To address the limitations of traditional approaches, which are often static, separately designed, and unable to make full use of dynamic execution feedback in test case generation and prioritization, this paper proposes a unified testing optimization framework based on deep reinforcement learning. The proposed method formulates both test case generation and test case prioritization as a sequential decision-making problem aimed at maximizing testing utility, and develops a feedback-driven strategy learning mechanism through state representation, action selection, and reward design, enabling the model to dynamically adjust testing behavior according to coverage information, fault detection outcomes, and budget constraints. Experimental results show that the proposed method effectively improves statement coverage, branch coverage, and the number of detected faults in test case generation, while also achieving higher APFD and earlier fault detection under limited budgets in test case prioritization. Further ablation analysis demonstrates that coverage reward, fault-related reward, and budget constraint play complementary roles in optimizing the testing strategy. Overall, this study shows that deep reinforcement learning provides an adaptive and unified solution for automated decision-making in software testing and offers a promising direction for the development of intelligent software testing methods.

References

[1] Pargaonkar S. Synergizing requirements engineering and quality assurance: A comprehensive exploration in software quality engineering. International Journal of Science and Research (IJSR), 2023, 12(8): 2003-2007.

[2] Axelsson J, Skoglund M. Quality assurance in software ecosystems: A systematic literature mapping and research agenda. Journal of Systems and Software, 2016, 114: 69-81.

[3] Homès B. Fundamentals of software testing. John Wiley & Sons, 2024. DOI:10.1002/9781394298976.

[4] Jia X. The Role and Importance of Software Testing in Software Quality Management. Journal of Industry and Engineering Management, 2023, 1(4): 39-44.

[5] Bajaj A, Sangwan OP. A systematic literature review of test case prioritization using genetic algorithms. Ieee Access, 2019, 7: 126355-126375.

[6] Verma AS, Choudhary A, Tiwari S. Software test case generation tools and techniques: A review. International Journal of Mathematical, Engineering and Management Sciences, 2023, 8(2): 293.

[7] Mukherjee R, Patnaik KS. A survey on different approaches for software test case prioritization. Journal of King Saud University-Computer and Information Sciences, 2021, 33(9): 1041-1054.

[8] Singh A, Singhrova A, Bhatia R, et al. A systematic literature review on test case prioritization techniques. Agile Software Development: Trends, Challenges and Applications, 2023: 101-159.

Downloads

Published

2026-04-28

How to Cite

JingXuan Guo, JingJing Liu. Deep Reinforcement Learning For Test Case Generation And Prioritization. Journal of Computer Science and Electrical Engineering. 2026, 8(3): 21-26. DOI: https://doi.org/10.61784/jcsee3133.