Applied Sciences · 2025 · 17 citations · 18 references
ComputingData ScienceContinuous ImprovementFeature EngineeringTest DevelopmentComputer-based TestingFeature PrioritizationReinforcement LearningSoftware TestingTransfer LearningContinuous Integration TestingFeedbackPrioritizationReinforcement Learning ModelsTest Case PrioritizationTest CasesTest PrioritizationTransfer Reinforcement Learning
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.
18
Test case prioritization: an empirical study
Gregg Rothermel, R.H. Untch, Chengyun Chu et al. · 1999 · 621 citations
Comparing white-box and black-box test prioritization
Christopher Henard, Mike Papadakis, Mark Harman et al. · 2016 · 202 citations · Full text
Engineering, Systems Engineering, Experimental Performance +10
Learning for test prioritization: an industrial case study
Benjamin Busjaeger, Tao Xie · 2016 · 112 citations