JOURNAL ARTICLE

Attention Transfer Reinforcement Learning for Test Case Prioritization in Continuous Integration

Qingran SuXing LiYuming RenRuinan QiuChunming HuYongfeng Yin

Year: 2025 Journal:   Applied Sciences Vol: 15 (4)Pages: 2243-2243   Publisher: Multidisciplinary Digital Publishing Institute

Abstract

Continuous integration (CI), a crucial technology for accelerating software delivery, employs prioritization methods to optimize testing efficiency. Reinforcement-learning-based prioritization techniques of test cases can dynamically adjust the prioritization strategy based on test feedback. However, existing reinforcement learning models either use feature information from individual test cases or the complete feature of all test cases as input. The model’s input is fixed and does not vary based on the characteristics of the test case set. This leads to the model’s inability to handle various ranking scenarios in CI. In this paper, we propose a novel Attention Transfer Reinforcement Learning for Test Case Prioritization (ATRL-TCP) method. ATRL-TCP first leverages the richness of historical information and error rates to assess the test case set. It then determines whether the model’s input should be the feature information of a single test case or the relative order between them. This method allows for the shifting of focus based on the dataset characteristics. We validate the method on four industrial datasets and examine the impact of historical information length and error rate on its performance. The results demonstrate that ATRL-TCP has good generalization ability and achieves good ranking performance within an acceptable time.

Keywords:
Transfer of learning Reinforcement Test (biology) Computer science Artificial intelligence Psychology Biology Social psychology

Metrics

14
Cited By
52.03
FWCI (Field Weighted Citation Impact)
26
Refs
1.00
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Engineering and Test Systems
Physical Sciences →  Engineering →  Control and Systems Engineering
Software Reliability and Analysis Research
Physical Sciences →  Computer Science →  Software
Software Testing and Debugging Techniques
Physical Sciences →  Computer Science →  Software
© 2026 ScienceGate Book Chapters — All rights reserved.