Font Size: a A A

The Research And Implementation Of Automatic Unit Test Recording Framework

Posted on:2011-07-06Degree:MasterType:Thesis
Country:ChinaCandidate:W Z CaiFull Text:PDF
GTID:2178360308964748Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Software testing is the process to test whether the application meet software requirement. In the software development life cycle, developers and testers work together to detect defects and ensure product quality. Software testing is a long-term continuous process. The direct introduction of third-party tools often can not achieve the effective testing target. A software development team needs an automated testing framework to adapt to the characteristics of the applications which team developed and to its own development pattern. The issue analyzes the automated software testing techniques, and combining the characteristics of this team and the current lack of automated testing, research and design an automated testing framework.The framework is based on the unit test recording methods. Different from the commonly used unit test automatic generation method, this method is to record the test from the system unit testing. It avoids the limitations of unit test automatic generation method only consider about the logic of code. It is generated from the perspective of customer and document. At the same time, it improves the shortcomings of system test execution, which will help the development team for continuous regression testing. Based on the unit test recording method, we design and implement a viable framework for automated unit test recording. The framework is well to make the system integration testing and unit testing work together, to improve the developers and testers to work efficiency, allow applications to better meet the business needs and adapt to changes in demand.In process of the research and implementation of the framework, the issue discusses a variety of automatic test data generation methods, and compares them. This issue designs a test data generator by combining a variety of generation methods. According to different scenarios, it can select appropriate methods to generate test cases set to provide the framework for the good test data. In the paper, we discuss the realization of the unit test recording, and apply the data flow analysis and symbolic analysis techniques to the process of unit test recording.Finally, we discuss the application of the framework in the test platform and test the framework through experiments on the effectiveness and efficiency analysis. Experimental results show that the in the comparison with commonly used method of automatic generation of unit tests, the unit test recording method is similar in test results, and can cover the demand; in the aspect of time efficiency, the speed of the recorded unit test is significantly higher than system test. To sum up, the unit test recording method is a viable unit test generation method. And the automatic unit test recording framework has a good value. It can well meet the development team's testing needs.
Keywords/Search Tags:Automatic Test, Unit Test, Framework, Data Flow Analysis, Automatic Test Data Generation
PDF Full Text Request
Related items