The Research and Implementation of Automatic Unit Test Recording Framework

Author
CaiWeiZheng
Advisor
ZhangYu
School
South China University of Technology
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2010
Downloads
87
Citations
1

Request the full text

Abstract

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.

Table of contents

Abstract 5-6 ABSTRACT 6-11 first chapter 11-19 1.1 subject background and significance of 11 1.2 Software Testing Overview 11-13 1.2.1 software testing methods 12 1.2.2 software testing technology 12-13 1.3 Test Automation Overview 13-15 1.3.1 system test automation 13-14 1.3.2 unit test automation 14-15 1.4 Test Automation Research 15-16 1.5 argument basis 16-17 1.6 of this paper work 17-18 1.7 papers organizational structure 18-19 recorded in the second chapter of the unit test framework design and 19-34 2.1 framework designed 19-20 2.2 framework of the overall process 20-23 2.2.1 read into the system test scripts 20 2.2.2 recording unit test scripts 20-21 2.2.3 playback unit test scripts 21-23 2.3 system overall architecture 23-24 2.4 data-driven testing framework 24-28 2.4.1 Data driven testing framework for role 24 Design and Implementation of 2.4.2 data-driven testing framework 24-28 2.5 Dynamic Analyzer 28-30 2.6 static analyzer 30 2.7 Test Script Builder 30-32 2.7.1 script to generate technical presentations 30-31 2.7.2 Test Script Builder to achieve 31-32 2.8 Summary 32-34 test data automatically generated 34-49 3.1 test case design 34-46 3.1.1 equivalence partitioning method 34-37 3.1.2 orthogonal design 37-40 3.1.3 paired combinations covering method 40-41 3.1.4 Heuristic Algorithm (IPO) 41-42 3.1.5 Heuristic Algorithm (AETG) 42-43 3.1.6 Improved orthogonal design 43-45 3.1.7 Comparison 45-46 3.2 test data generator design 46-48 3.2.1 Overall design 46-47 3.2.2 algorithm selection strategy 47-48 3.3 Summary 48-49 recorded in the fourth chapter of the unit test process 49-62 4.1 unit test to record the overall process 49-52 4.2 static analysis 52-55 4.2.1 three-address code, said 53-54 4.2.2 control flow graph 54-55 4.3 data flow analysis 55-56 4.3.1 data flow analysis mode 55-56 4.4 Symbolic Analysis 56-60 4.4.1 reference variable affine expression 56-58 4.4.2 to generate a variable expression 58-59 4.4.3 symbolic expressions simplify 59-60 4.5 process analysis 60-61 4.6 Summary 61-62 Chapter V of the application of the framework and experimental analysis 62-69 5.1 in the test platform 62-63 5.2 test adequacy criteria 63-64 5.2.1 Coverage Analysis 63 5.2.2 coverage 63-64 5.3 experiment 64-65 5.3.1 experimental environment 64 5.3.2 subjects 64 5.3.3 experimental procedures 64 5.3.4 Experimental results 64-65 5.4 second experiment 65-67 5.4.1 experimental environment 65 5.4.2 subjects 65-66 5.4.3 experimental procedures 66 5.4.4 Experimental results 66-67 5.5 Experimental summary 67 5.6 Summary 67-69 Summary and Outlook 69-71 Summary 69 next step 69-71 References 71-74 Acknowledgements 74

Related dissertations

  1. Automatic path-oriented test data generation method
  2. Motor vehicle management information system development
    LiuJiangTao ·Zhejiang University ·2004 ·Master's thesis
  3. Research and Design of Unit Test Framework Based on Brew Technology
  4. The Master Plan of YC Enterprise Information
  5. Research on Registeration Access System of Structural Engineer
    ZuoGuangXing ·Harbin Institute of Technology ·2012 ·Master's thesis
  6. Research on Institutional Innovation for Promoting China’s Urban-rural Integration
    ZhangJun ·Northeast Normal University ·2013 ·Doctoral dissertation
  7. The Frame of News Commentary Writing Medthods Critic in the Chinese Academic Journals’ Papers during Lately Decade
  8. Research on Batch Testing Platform Technology of the Acceleration Sensor
    XueYanHui ·University of North ·2014 ·Master's thesis
  9. Design and Implementation of Network Management Integrated Test System
  10. Key Technology Research of Ontology Mapping for the Semantic Web
    ZhaoHongJie ·Harbin Engineering University ·2013 ·Master's thesis
  11. Design and Implementation of the System of China Mobile "Easy Workers" Business Support System
  12. Research and Design of Test Paper Generation System Based on Genetic Algorithm
  13. The Research of Java EE Framework and Designed on the E-Commerce Pattern of OAO
    MaHuiBin ·Chang'an University ·2013 ·Master's thesis
  14. Design and Implementation of the Bussiness Support System for China Telecom
  15. Automated Software Testing and Implementation Based Cube
  16. Design and Implementation of Nanchang Qingyunpu Area Management Information System of Discipline Inspection Work
  17. The Design and Implementation of Agricultural Distribution Information Management System Based on J2EE
  18. Emergency Command System Client Pluggable Design and Implementation
    WangXu ·Tianjin University ·2012 ·Master's thesis
  19. Design and Implementation of a Server-side mashup Framework
    LiSaiNan ·Huaqiao University ·2013 ·Master's thesis
  20. Design and Implementation of Human Resource Management System