The application belongs to the technical field of
software testing, and specifically discloses a
software regression
test case priority sequencing method considering defect distribution, which comprises the following steps: obtaining a historical defect
data set of
software, dividing the historical defect
data set into a
training set and a
verification set, inputting a
machine learning classification
algorithm, constructing a model, and obtaining performance evaluation results; extracting a current version metric element of the software under test to input the model to obtain a defect
prediction probability; extracting dynamic
code coverage information of the
test case of the software under test, weighting and integrating the defect
prediction probability and the metric element, and constructing a linear function as a priority sequencing objective function; sequencing through a sequencing strategy to obtain a
test case priority sequencing result; and the method has the following advantages: considering defect distribution, metric elements,
code coverage and other factors for linear weighting, solving the problem that existing methods do not consider defect distribution and reduce defect
detection rate, or rely on prior knowledge when
multiple factors are weighted, leading to unstable sequencing results, and improving the performance of the software test case priority model.