doi: 10.4304/jsw.9.10.2514-2521
Optimizing Test Case Execution Schedule using Classifiers
- School of Computer Science and Technology, Nantong University, Nantong 226019, China
Abstract
As software evolves, test suite continually grows larger. However running all the test cases in the test suite is prohibitive in most cases. To reduce the cost of regression testing, we can optimize test case execution schedule to maximize the early fault detection rate of the original test suite. Different from previous research, we use classification algorithms to guide the schedule process based on code change information and running result analysis. In particular, we firstly train a classifier for each test case using both the code change information and the running result in previous versions. Then we secondly use the trained classifier to estimate the fault detection probability of the test case in a new version. Finally we generate a test case execution schedule report based on the fault detection probability of all the test cases. To verify the effectiveness of our approach, we performed an empirical study on Siemens Suite, which includes 7 real programs written by C programming language, and chose some typical classification algorithms, such as decision tree classifier, Bayes classifier, or nearest neighbor classifier. Based on the final result, we find that in most cases, our approach can outperform a random approach and then further provide a guideline for achieving cost-effective test case execution schedule when using our approach.
Keywords
- software testing
- regression testing
- te
How to Cite
Xiang Chen, Zhaofei Tan, Jian Xia, and Pengfei He, "Optimizing Test Case Execution Schedule using Classifiers," Journal of Software, vol. 9, no. 10, pp. 2514-2521, 2014. https://doi.org/ 10.4304/jsw.9.10.2514-2521
Copyright & License
Copyright © 2014 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).
