Automatic Generation and Reduction of Random Test Case

Author
CaoQing
Advisor
ZengFanPing
School
University of Science and Technology of China
Major
Computer System Architecture
Classification
TP311.53 Software Maintenance
Degree
Master's thesis
Year
2010
Downloads
165
Citations
2

Request the full text

Abstract

Software as the soul of the computer, plays a pivotal role in the national economy and social life. The problem of software quality directly affect the normal operation of the industry, the software error ranging from inconvenience to the user, while causing huge economic losses and even casualties. Software testing is an important means to guarantee the quality and reliability of software is an integral part of software development. With the increasing demands of the users of the software product quality as well as the increasing maturity of software engineering technology, the growing proportion of software testing throughout the software development cycle. Design test cases is the core issue of software testing, software testing is good or bad depends largely on the quality and quantity of the test cases. Design test cases often need to be done manually, time-consuming and inefficient. Therefore, designed to achieve a high-quality test cases automated generation tool for improving the efficiency and quality of software testing has important research significance and application value. Generate the core issue of this paper, test cases, integration of random testing and the invariant extraction technique, designed to achieve a fully automated test case generation framework tools. On the basis of analysis of the advantages and disadvantages of random testing, focusing on the advantages of a high degree of test automation using random 1) use the default value of technology to improve the coverage of random testing, and support for user-defined default value, scalability; 2) complex data types recursively generate a wider range of applications; 3) the introduction of error test case filtering mechanism to ensure normal execution of test cases; 4) invariants remains constant during program execution logic assertions, is a description of the program attributes. With this feature, the reduction algorithm based on variable changes, effective reduction of randomly generated test cases, and eventually generate test cases appropriate scale; 5) new termination criterion for test case generation, to solve the disadvantages of the previous time as the limiting condition. The final program output includes three parts: the normal test cases for manual troubleshooting or regression testing can reveal a procedural defect error test cases, and reveal the invariants of the program attribute. Proved by experiments, this paper realized random test case generation technique to generate an appropriate scale can no human intervention in the case of a fully automated test cases; prominent invariants technology-based test case reduction algorithm results; output of the error test use cases can reveal errors in the program; significantly improved compared with pure random test case code coverage, with a default value; mutation testing fully reaches not less than the level of similar test case generation tool.

Table of contents

Abstract 4-5 ABSTRACT 5-7 directory 7-10 Figures 10-11 Table directory 11-12 Chapter 1 Introduction 12-24 1.1 Background and Significance topics 12-14 1.1.1 Background nbsp topics ; 12-13 1.1.2 test the importance 13-14 1.2 Random Testing with program invariant 14-16 1.2.1 random test 14-15 1.2.2 program invariant 15-16 1.3 Status Quo and Development Trend 16-21 1.3.1 Development of software testing and future 16-18 1.3.2 Development Status and Future random test 18-19 1.3.3 invariants status and future 19 -21 1.4 This work 21-22 1.5 The paper is structured organization 22 1.6 Chapter Summary 22-24 first Chapter 2 the theory and practical foundation 24-32 2.1 Java reflection mechanism 24-25 2.1.1 reflex mechanism introduced 24 2.1. two related classes and functions form 24-25 2.2 Daikon tools introduced 25-27 2.3 design patterns 27-29 2.4 Existing random testing tools 29-31 2.4.1 Randoop 29-30 2.4.2 JCrahser 30 2.4.3 Eclat 30 -31 2.5 Chapter Summary 31-32 Chapter 3 random test case generator 32-46 3.1 JRT Overview 32-35 < br /> 3.1.1 JRT Use About 32-33 3.1.2 JRT factory method design pattern 33-35 3.2 test case generation 35 - 37 3.2.1 Builder design 35-36 3.2.2 build step 36-37 3.3 default settings 37 -39 3.4 generates random values ??and complex data types generated 39-41 3.5 erroneous use cases filtration 41-43 3.6 data structures used 43-44 3.7 Chapter Summary 44-46 Chapter 4 based on dynamic invariant reduction 46-54 4.1 Daikon implementation of automation 46-48 4.2 reduction algorithm 48-50 4.3 reduction algorithm example 50-51 4.4 program invariant 51 -52 4.5 Chapter Summary 52-54 Chapter 5 experimental analysis and evaluation 54-68 5.1 experimental platform and test objects 54 - 55 5.2 threshold value N experiments 55-59 5.2.1 Threshold N JRT results on the impact of 55-58 5.2.2 How to set the threshold N 58-59 5.3 reduction algorithm experiment 59-61 5.4 error test filtration experiments 61-63 5.5 default experiment 63-65 5.6 mutation test adequacy analysis 65-67 5.7 Chapter Summary 67-68 Chapter 6 summarizes 68 - 70 6.1 Full Summary 68-69 6.2 future research prospects 69-70 References 70-73 Thanks 73-74 papers published during the reading and research achievements 74

Related dissertations

  1. Research and Implementation of Automated Testing Platform Based on Andorid
  2. GMTAF Testing Automation Framework Design and Implement
    GaoQiu ·Zhejiang University ·2007 ·Master's thesis
  3. Based on expert system automatically generates test cases Method
    GaoGongGe ·Guizhou University ·2009 ·Master's thesis
  4. Research on Software Automatio Test Case Generation Based on GA
    ZhangYuZhong ·Chengdu University of Technology ·2011 ·Master's thesis
  5. Research on the Impact of Human Resource Management on Employees Performance
  6. Design and Implementation of Automated Test Case Generator
  7. Design and Implementation of Electricity Management System in Dongying Estuary Area Power Supply Company
  8. Office Automation System Testing Research Based on QTP
    ShiJing ·Xi'an University of Petroleum ·2013 ·Master's thesis
  9. Reliability Computing of Concurrent Software Based on Program Invariants
    ZhouHui ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  10. The Research and Design of Software Component Testing Framework Based on Date-driver
    PengShunShun ·Shenyang Normal ·2014 ·Master's thesis
  11. Research of Malware Dynamic Detection Technology Based on Android Platform
    ZhangJi ·Tianjin University ·2012 ·Master's thesis
  12. Technology Discussion of TD-LTE SAE
    LiDongHua ·South China University of Technology ·2013 ·Master's thesis
  13. Research and Realization of Interoperability Test Testing Based on TTCN
    XuQinDong ·Chinese Geology University (Beijing) ·2014 ·Master's thesis
  14. The Study on the Expansion of Judgment of Test Case
  15. Route Control Process Oriented Highly Efficient Testing Method of Railway Signal Interlocking Software
    ShiYanMin ·Beijing Jiaotong University ·2014 ·Master's thesis
  16. Scenario-based Test Cases Generation for Onboard Subsystem
    ZhaoWeiHui ·Beijing Jiaotong University ·2014 ·Master's thesis
  17. Parallel Test Research and Tool Development Based on Colored Petri Net
  18. Research on Script-driven Based RBC Functional Testing Method
    TangHuiDong ·Beijing Jiaotong University ·2012 ·Master's thesis
  19. The Study to the Method of Test Cases and Test Sequence’s Generation Based on the RBC Test Platform
    ZhangXiaoQing ·Beijing Jiaotong University ·2012 ·Master's thesis
  20. Research on Web Service Testing Model and Testing Approach Based on Agent
    LiuShengLan ·Hunan University ·2011 ·Master's thesis