Regression testing as an important part of software testing, the method which uses directly impact on the efficiency and cost of software testing, so people carried out extensive research on regression testing methods. As a newborn way to test, the software test automation because of its characteristics can be effectively improved in terms of software testing and control resource consumption, in the field of software testing is becoming a trend. In this paper, we have been respectively studied in automated testing and regression testing methods, and then designed a set of automated testing framework for regression tests.First, we have been analyzed and introduced to regression test methods and processes, and on the basis of in-depth analysis of regression test methods of traditional heuristic test reduction technology. As the traditional of heuristic test reduction techniques do not take into account the different running cost for each test case and the importance of test requirement for the test applications in the actual testing process. Therefore, in the paper has been proposed the reduction algorithm in view of the importance of test requirement and the cost of running test suite. By setting both running cost on test case and importance weights on test requirement in the algorithm, It makes the application of the algorithm can select test set which smaller the cost of running and priority to meet the higher of testing requirements.Secondly, through the study of automated testing and automated testing tools for analysis, combined with the actual testing environment and the tested application, we determined to use the automated testing tools QTP to perform testing. In order to increase the flexibility of automated testing and better support for regression testing, we have designed a set of automated testing framework for regression test suite reduction on the basis of QTP. The framework has two parts. One part is the basic design of test automation framework. The specific contents are: First elaborate the design idea of framework, the need to achieve and overall structure. Then implement the startup files and drivers of automated test, and design a management of automation test data and test scripts, and then propose a design method of object library and functions, including the establishment of common object libraries and scene restore settings, etc. Finally, designed and implemented the customized test reports and logging of framework. Another part is the design quantized weights of test requirements. First implement the quantized policy by function in the framework. Then run the test automation through the framework. Finally, generate weight documents of test requirements, which records the current important weights of each test requirement. When we use the proposed regression test suite reduction algorithm to select test suite, the framework will use the weight to calculate.Finally, the framework has been application in my test project. It proves that our regression test reduction algorithm is effective and feasible,besides, the framework in the paper has reduced testing cost greatly and improved testing efficiency. |