Research on the Models and Tools of Automated Regression Testing Based on FitNesse
- Author
- YangWeiMing
- Advisor
- ZhangCong
- School
- Chongqing Jiaotong University
- Major
- Applied Computer Technology
- Classification
- TP311.53 Software Maintenance
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 17
- Citations
- 0
Abstract
Software testing is one of the crucial steps in quality assurance engineering and robustness improvement. It plays a critical role in the whole software development process. In light of that test automation is trend in software testing, lots of relative work has been done. Many automated testing tools are developed for automated test. But most of early software testing tools display some common shortcomings, such as manual designation of system under test and testing methods, manual compilation and debugging of generated test scripts. It may cause poor reusability and maintainability about test scripts. In other words, original test scripts could not be performed if the system under test changed.To design and generate test case which play a important part in the process of software testing. It requires a lot of test cases for comprehensive testing, but the way of manually generate test case is very difficult. Therefore, the automatic generate of test case which has become an important issue in software testing.In this paper, the technology of automatic generate test cases and the algorithms of automatic test case generation have been researched. Inspired by the algorithm of optimization parameter’s probability distribution proposed by Simon Poulding and John A.Clark, this paper proposes an approach for test case generation based on optimization of parameter and boundary value analysis(short for TCG-OPBVA). Compared with the the algorithm of optimization parameter’s probability distribution proposed by Simon Poulding and John A.Clark, the key differences are as follows:(1) Bayesian network structure automatic derived by control flow graph. It construct the control flow graph of program by tools. Then, it automatic build the Bayesian network structure of program’s parameter from control flow graph.(2) The fitness function. Because of the structure of bayesian network has automatic constructed, the search algorithm only need to the parameter of bayesian network, so the diversity constraint can be removed, while reducing the effect made by the coverage constraint and the diversity constraint.(3) The combination of boundary value analysis. After sampling the test set, it will combine with the right amount of test cases generated by boundary value analysis to form the final set of test cases, to form the final set of test cases.To implement better automated regression testing, this paper analyzes the acceptance testing framework, FitNesse. In this paper, a automated regression testing model is proposed. And then, a practical FitNesse-based tool for automated regression testing (Automated Regression Testing Tool, short for ARTT) in Java programs is designed and implemented. It has the following characteristics:(1) Test cases automatic generation. The tool parsed system under test and extracted information from those tested classes. Meanwhile, it generated the XML documents which used to store the information of the parameters. And then, ARTT edited the information of the parameter values. Applied the algorithm of TCG-OPBVA, ARTT could generate test cases with the parameter values automatically.(2) Fit tables automatic generation. With the information of tested classes and generated test cases, ARTT could produce Fit tables with test cases in the FitNesse environment.(3) Test code automatic generation. With the information of tested classes Fit tables, ARTT could generate test code in the FitNesse environment. It stored input values and expected output in the Fit table alone which similar to the data-driven script. It was easy to add, delete and modify the test data. In addition, test on an approach can be done repeatedly without test code modification. Moreover, ARTT could generate test code with more readability, reusability, maintainability and so on.Then, this paper used an example to verifying the function of ARTT. Experimental results show that the automated regression testing model proposed in this paper is advisable, and show that apply the algorithm of TCG-OPBVA, this tool could easily perform automation of regression testing for java programs.
Table of contents
Summary 4-6
ABSTRACT 6-10
first chapter 10-26
1.1 research background and significance 10-11
1.2 research status the 11-24
1.2.1 software testing and automated testing overview 11-21
1.2.2 automated testing tools Research 21-23
1.2.3 FitNesse, framework, Research 23-24
1.3 In this paper, the main research contents 24
1.4 papers nbsp organizational structure; the FitNesse framework of 24-26
second chapter 26-37
2.1 Fit framework 26-29
2.1.1 Fit Profile 26
2.1.2 Fit works 26-27
2.1.3 Fit the Fixture 27-29
2.2 FitNesse, framework of 29 - 36
2.2.1 FitNesse About the 29-31
2.2.2 Slim testing system Fit Form 31-33
2.2.3 FitNesse, testing process 33-36
2.3 Chapter Summary 36-37
a new statistical test case generation algorithm 37-54
3.1 statistical tests 37-38
3.2 parameter distribution optimization algorithm 38-42
3.3 new statistical test case generation algorithm 42-50
3.3.1 Probability expression 43
3.3.2 fitness function 43-44
3.3.3 Bayesian network structure generation algorithm 44-45
3.3.4 parameter distribution function learning algorithm 45-47
3.3.5 combination of boundary value coverage test case generation algorithm the 47-50 3.4 Case Study
50-53
3.5 Chapter Summary 53-54
Chapter automated regression testing tool based the TCG-OPBVA algorithm ARTT 54-75
4.1, a new model of automated regression testing 54-55
4.2 ARTT The, overall design the 55-63
4.2.1 ARTT target, 55-56
4.2.2 ARTT, function module design are found; the 56-61
4.2.3 ARTT interface, design 61-62
4.2.4 ARTT of application range 62-63
4.3 the ARTT functionality to achieve 63-68
4.3.1 ARTT achieve, environment 63
4.3.2 SUT parsing module 63
4.3.3 test information storage module 63-66
4.3.4 Fit form building blocks 66-67
4.3.5 Fixture building blocks 67-68
4.4 the ARTT application 68-74
4.4.1 configure a test environment the 68-69 information extraction system under test
4.4.2 69-70
4.4.3 Editing parameter value information 70-71
4.4.4 build Fit Form and test code 71-72
4.4.5 execute test 72-74
4.5 Chapter Summary 74-75
Chapter Summary and Outlook 75-77
5.1 Full Summary 75-76
5.2 the research prospects 76-77
Acknowledgements 77-78
Reference 78-85
Appendix A storage test information document DTD description file ClassInfo . dtd 85-88
Appendix B grammar file ClassInfo.g 88-92
Appendix C test class Maths.java 92-95
papers published during the school 95
Related dissertations
- And the realization of software testing reuse management subsystem design
- Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
- Research on software testing technology based on complex network theory
- Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
- The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
- Research of Software Testing Method Based on Cloud Computing
- Research on Path-oriented Test Data Generation
- Research on Process Improvement in Y Co. Based on CMM
- Method Research and System Development of Software Automatic Testing
- Research and implementation of TaaS test management services
- The Design and Implementation of Banking Software Testing Based on Bugfree
- Automatic Generation of Test Data Based on Heuristic Search Algorithm
- Research on Combinatorial Testing Technique and Its Application
- Theories and Methods of Evolutionary Generation of Test Data for Path Coverage
- Study and Practice of Independent Software Testing and Validation Based on RTCA DO-178B
- A Study to Improve CFL Based on TheDiscovery of Coincidental Correctness Test Cases
- Software Reliability Oriented Performance Test Model Research and Application
- The Study and Realization of the Android Tablet Stability Automated Test
- Research on Testing Technology of Video Codec
- High Precise Local Gravity Field Computing Platform Integrated Development and Test