Font Size: a A A

Research On Test Case Reuse Method Based On

Posted on:2017-01-22Degree:MasterType:Thesis
Country:ChinaCandidate:Q ZhengFull Text:PDF
GTID:2278330503960868Subject:Computer technology
Abstract/Summary:PDF Full Text Request
In the software development process, after the software version changed, it needs to use regression testing to test the correctness and completeness of the software features. As an important method of software testing, regression testing can effectively ensure that modifications of program codes do not produce adverse effect on the affected parts and the potential affected parts, and it is of great importance for guaranteeing software quality. In regression testing, all the test cases re-tested or part of the test cases redesigned will spend a lot of manpower and time. Reuse the original test cases can effectively reduce the workload of test cases designed and reduce the cost of software testing.This paper proposes a method of reusing test case based on functions calling path(abbreviation: FCP). This method determines the correlation functions of the changed functions by analyzing the related information of the changed functions, and determines the changed paths which will be tested. Then calculate the similarity between the original FCP and the changed path which will be tested, and select the similar FCPs. Finally, according to the corresponding relationship between test case and FCP, determine the collection of reusable test cases, and modify the reusable test cases to cover the changed paths. The research of this paper is mainly based on the following two aspects.The first, the method to determine the changed paths which will be tested. Firstly, analyze the codes of the changed parts to determine the functions having dependency with the changed parts, and these functions are the correlation functions of the functions contain the changed parts. Secondly, select the changed paths which contain the changed functions and the correlation functions to narrow the scope of regression testing, then determine the final collection of the changed paths which will be tested.The second, the method to reuse the test cases. Firstly, according to the characteristics of the path, design the method of calculating the path similarity, and combine with the selection algorithm of similar FCP to select similar FCPs for the changed paths which will be tested. Secondly, select original test cases from the collection of original test cases according to the selected and similar FCPs and the corresponding relationship between FCP and test case, then determine the collection of reusable test cases. Finally, analyze the changed part codes and modify the collection of reusable test cases to cover the changed paths.The experiments show that the method of reusing test case proposed by the paper can reduce regression testing costs effectively and improve the efficiency. The method of determining the changed paths which will be tested can reduce the number of changed paths, and the method of reusing the test cases can reduce the workload of designing test cases and improve the utilization of test cases.
Keywords/Search Tags:regression testing, functions calling path, changed function, changed path, test case reused
PDF Full Text Request
Related items