Font Size: a A A

Research On Prioritization Of Regression Test Cases

Posted on:2020-07-11Degree:MasterType:Thesis
Country:ChinaCandidate:S F FengFull Text:PDF
GTID:2438330572499547Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Currently,software testing is the most important software quality assurance tool,and plays an extremely important role in the software's entire life cycle.As an effective software testing method,regression testing ensures the correctness of software modifications and improves software quality.Due to the limitations of regression testing costs such as manpower and time,traditional regression testing methods have had little success.Therefore,in case of the limited resources,it is of great research value to improve the efficiency of regression testing and reduce the cost of regression testing.Currently,the improved method for regression testing is mainly the maintenance of test case suites.The commonly used techniques mainly include regression test case selection,test case suite minimization and test case prioritization.Among them,test case prioritization technology plays an important role in improving software quality and software product reliability,reducing regression test cost and rationally distributing software test resources.By analyzing the research status of regression test case prioritization technology at home and abroad in this paper,the regression test case prioritization hierarchical structure model and the regression test case prioritization framework based on test case suite minimization are proposed.Considering that the existing techniques are limited to a single objective or a few influencing factors so that they have an impact on the comprehensive analysis and evaluation of test cases,a test case prioritization technique based on analytic hierarchy process is proposed in this paper.This technique is used to achieve the goal of the optimized test case sequence and regard the influencing factors as the criterion,the test cases as schemes.Construct hierarchical structure model and judgment matrices.Lastly,sort the test cases,carry out the consistency check,optimize the ratio of influencing factors.The experiment uses Matlab software and the APFD as the metric to evaluate.Experimental results show that compared with other existing prioritization techniques,this technique achieves higher APFD value 85%and improves the test efficiency.In addition,according to actual regression testing requirements,increase the number of influencing factors so that it can be flexible.The continuous evolution of software will result in a continuous increase in the size of the test case suite.Redundant test cases will occur under the premise of meeting the specified test requirements.In the regression test case prioritization method based on the analytic hierarchy process,the test case priority affects the factor optimization efficiency with the number of influencing factors and the test case suite size.In order to solve the above problems,a regression test case prioritization framework based on test case suite minimization is proposed in this paper.The test case suite is reduced based on Hamming distance,redundant test cases are removed,and basic test cases are retained.The reduced test case suite is the initial suite of test cases to be sorted,and the genetic algorithm is used to optimize the test case sequence to obtain a new test case suite,which is applied to the new round of regression test.The experiment uses two versions of APSS as the system to be tested.The scale of the regression test case suite is minimized to about 38%.The defect detection minimization rate is almost 0 when no new defects are introduced.The average APFD_C value is higher after optimizing the test case sequence.
Keywords/Search Tags:Regression testing, Test case prioritization, Analytic hierarchy process, test case suite minimization, Hamming distance, Genetic algorithm
PDF Full Text Request
Related items