Research and implementation of automatic generation method for test case two and based on the contract

Author
GuoHuaYang
Advisor
JiangZuo
School
Kunming University of Science and Technology
Major
Applied Computer Technology
Classification
TP311.53 Software Maintenance
Degree
Master's thesis
Year
2013
Downloads
1
Citations
0

Request the full text

Abstract

Under normal circumstances, in the process of testing the test object, the quality of testing cases is the key factor that will direct impact whether to find some potential problems in the process of the testing, but the nature of software testing is to determine a set of test cases to test, the size of the test cases will directly affect the cost of the testing process and the testing cycle, so the method of generating the test cases and how to improve the quality of the test cases is the core issue of the sofeware tesing.A program always has the input variables and output variables, and the output variable is often subject to the constraints of the number of input variables, to form a corresponding relationship. Using this correspondence to design test cases can reduce the redundancy of test cases, so as to improve the efficiency of the test.Departure from the individual characteristics of the black box testing and white box testing, considering the advantages of black box and white-box testing, which is proposed to automatically generate test cases based bipartite graph and contract Research and implementation. In this paper, by using the Bipartite Graph mapping properties. We linked the Bipartite Graph and the structure of the test program, using the input field and output field of the testing program to constitute the Bipartite Graph, thus grouped the variables of the input field, formation of the corresponding input set for the each output variable by using a uniform random number generation algorithm, using the Descartes algorithm processing each input set, finally, to generate the initial set of test cases. In the test cases optimization, in this paper uses the concept of pre-conditions and post-conditions of the Contract, removed the test cases that not meet the pre-conditions, removed the test cases that correspond to output which not meet the requirements of the post-condition, further substantial reduction in the scale of the test cases.This article has achieved the suppor tools of basing on a test case of Bipartite Graph and Contract generation and optimization by using the Java programming language. The testers can use this tool to generate and optimizate the test cases for the program, this tool can reduce the size of the test cases, shorten the test cycle.Finally, through a large number of experiments to verify the validity of the method of the based on a test case of Bipartite Graph and Contract automatical generation and optimization.

Table of contents

Summary 3-4 Abstract 4-6 directory 6-9 Chapter 1 Introduction 9-17 <br / > 1.1 Background 9-10 1.2 significance of the topic 1.3 Status domestic and foreign research 10 study abroad 10-13 1.3.1 Status 11-12 1.3.2 Research Status domestic 12-13 1.4 problems 13 1.5 the main contents of this article 13-14 1.6 dissertation organization 14 1.7 Summary 14-17 chapter bipartite graph -based test case generation 17-29 2.1 to get the program input and output domain information domain information 17-18 2.1.1 program input and output mapping 17-18 <br / > 2.2 generates two chart 18-23 2.2.1 bipartite graph defined 18-20 2.2.2 bipartite graph generation algorithm 20-22 2.2.3 two graphs generation process 22-23 2.3 to generate test cases 23-27 2.3.1 generates a Cartesian product 23-24 2.3.2 input variables grouped 24-25 2.3.3 test case generation 25-27 2.4 Summary 27 - 29 Chapter III contract based test optimization 29-37 3.1 test optimization 29 3.2 contract Analysis 29-32 <br / > 3.3 using contract screening test 32-36 3.4 Summary 36-37 Chapter IV system requirements analysis and design 37-45 <br / > 4.1 Requirements Analysis 37-38 4.2 system design 38-44 4.2.1 summary of design 38-40 4.2.1.1 system structural design 39-40 4.2.2 detailed design 40-44 4.2.2.1 system activity graph 40-42 4.2.2.2 random test case generation 42-44 4.3 Summary 44-45 Chapter V system implementation and experimental 45-57 5.1 system implementation 45-48 5.1.1 interface and related functions 45-48 5.2 experiments and results analysis 48-56 5.2.1 single set of experiments 49-52 5.2.1.1 experiment 49 5.2.1.2 experiment II 49-50 5.2.1.3 experiment III 50-51 5.2.1.4 experiment four 51-52 5.2.2 analysis of experimental results 52-55 5.2.3 multiple sets of experimental analysis 55-56 5.3 summary 56-57 Chapter VI summary and Outlook 57-59 6.1 This article summarizes the main work 57 6.2 the next phase outlook 57-58 6.3 Summary 58-59 Thanks 59-61 references 61-65 published in Appendix a graduate thesis and during the research 65

Related dissertations

  1. Study on Automatic Software Functional Test Case Generation and Optimization
    HuangYing ·South China University of Technology ·2012 ·Master's thesis
  2. Study on the principal and agent David Gusmn science and technology activities in the science of political theory of contract
    WuLei ·Nanjing Normal University ·2013 ·Master's thesis
  3. On Supply Chain Coordination with Price-Quality Dependent Demand
  4. Appropriable Quasi Rent of Relationship Specific Investment and Its Regulation
    WangYaoYao ·Dongbei University of Finance ·2013 ·Doctoral dissertation
  5. Study of Fresh Agricultural Product Supply Chain Coordination under Emergency
    LiaoChunPing ·Hunan University ·2012 ·Master's thesis
  6. Research on the Control Mechanism of the Relationship between Agricultural Products Processing Company and Peasant Household
    CuiHuanHuan ·Dongbei University of Finance ·2013 ·Master's thesis
  7. Study on Valuation System of the Transfer of Management Rights to Contracted Rural Lands Based on Delphi
    LiuQi ·Sichuan Agricultural University ·2012 ·Master's thesis
  8. Based on the Psychological Contract of FJ Real Estate Company Core Employee Incentive Problem Research
    XuLei ·Liaoning University ·2012 ·Master's thesis
  9. The Reform of China’s Public Spending Management System Research: a Contract Theory Analysis
    LiuYu ·Nankai University ·2012 ·Doctoral dissertation
  10. Research on Anonymity Techniques for Privacy-preserving Data Publishing in Social Networks
    WuHongWei ·Harbin Engineering University ·2013 ·Doctoral dissertation
  11. Granular Computing Based on Quotient Space and Its Application in KDD
    LiangYuanYin ·Sichuan Normal University ·2013 ·Master's thesis
  12. Fujian Electric Power Design Institute Contract Management System Design and Implementation
  13. Model Based Testing Automation Framework of Data Pocessing System
  14. Design and Implementation of Contract Statistical Analysis System for a Company
    YangHuaLi ·Xiamen University ·2013 ·Master's thesis
  15. Impact of Psychological Contract on Teachers' In-role Performance Behavior in University-school Partnerships
  16. The construction of civil litigation contract
    LiBin ·Heilongjiang University ·2013 ·Master's thesis
  17. Financial Product Contract Risk and Legal Regulation
  18. Study on Issues of the Crime of Contract Fraud
    Li ·Southwest University of Political Science ·2012 ·Master's thesis
  19. The Crime of Fraud of the Contract Problems Explored
    DongJunFeng ·Lanzhou University ·2013 ·Master's thesis
  20. On Several Issues about the Identification of the Contract Fraud Crime
    GuoYaZuo ·Jilin University ·2013 ·Master's thesis