Automatic Cases Generation for Classes Test

Author
ZhangXia
Advisor
CuiDongHua
School
Taiyuan University of Technology
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2008
Downloads
226
Citations
2

Request the full text

Abstract

Object-oriented software testing is an extremely important part of object-oriented software development process, ensure the quality of the software, the key to improve software reliability. With the rapid development-oriented the object software development technology, object-oriented features makes traditional software testing technology can not meet the need, therefore research and application-oriented the object software test technology has become a top priority. Object-oriented software testing is divided into four: the method level test, class-level testing, cluster-level testing and system level testing. Class level testing is the key to testing object-oriented software. The selection of test cases is a problem of the test, test cases suitable or not directly related to the error can not be expected to be measured. For the test case automatic generation method, although there are a number of methods have been proposed and used, but also because of its limitations, in practice there is no perfect solution, only by virtue of experience in engineering judgment. Paper in the automatic generation of technical literature review of test cases based on an object-oriented class test cases automatically generated, and this method successfully developed a class test cases automatically generated system. Specific analysis of the test cases automatically generated class test case design method and class level testing strategy discussed part of class test case: test sequences and test data, test sequence generation method based on UML state diagram based on genetic algorithm for automatic test data generation method. In this paper will be a concurrent structure UML state diagram flattened the the concurrent structure extended finite state machine is constructed the transfer coverage based on extended finite state machine to meet the state test sequence, and explore the use of genetic algorithms for a given test sequence the basic realization of ideas generated test data as the core search strategy, genetic algorithm and testing only interface - the structure of the fitness function method, and use the fitness scaling method to improve the genetic algorithm, not only to solve the \\In this paper, genetic algorithm as the core algorithm design and implementation of the system based on the class of the specified test sequences test data automatically generated, and use an automatic coffee vending machines to verify the system through experiments to prove the superiority of the system.

Table of contents

Abstract 3-5 ABSTRACT 5-9 first chapter 9-13 a 1.1 research background and significance 9-10 1.2 research status 10-11 1.3 This article mainly work 11 1.4 thesis structure 11-13 the second chapter of the test method and case generation technology 13-22 2.1 Test Method 13-14 2.1.1 static test and dynamic test 13 2.1.2 white box and black box testing 13-14 2.1.3 manual testing and automated testing 14 2.2 test case generation method 14-16 2.2.1 test cases based on code generated 15 2.2.2 specification-based test cases generation 15-16 2.3 test cases automatically generated 16-20 2.3.1 function-oriented automated test data generation technology 16-17 2.3.2-oriented structure of the automatic test data generation techniques 17-20 2.4 test case design method 20-21 2.5 This chapter Summary 21-22 object-oriented software testing 22-33 3.1 object-oriented features of the software testing 22-25 3.1.1 information hiding and encapsulation testing 22-23 3.1.2 inheritance test 23 3.1.3 polymorphism and dynamic binding test 23-24 3.1.4 test some other problem 24-25 3.2 object-oriented software testing model 25-26 3.3 level object-oriented software testing division 26-32 3.3.1 test level divided 26-27 3.3.2 layers test strategy 27-32 3.4 This chapter Summary 32-33 the the Chapter object-oriented software class test cases automatically generated 33-53 4.1 test cases automatically generate strategy 33-35 4.2 UML state diagram converted to extended finite state machine 35-41 4.2.1 UML state diagram 35-37 4.2.2 Extended Finite State Machine 37-38 4.2.3 UML state diagram converted to extended finite state machine 38-41 4.3 test sequences generated 41-43 4.3.1 state covering set of test sequences 41-42 4.3.2 migration covering set of test sequences 42-43 4.4 class object test data automatically generated 43-52 4.4.1 basic genetic algorithm 43-46 the 4.4.2 class object test data encoding 46 4.4.3 class fitness function object test data 46-51 4.4.4 class of genetic manipulation of the object test data 51-52 4.5 of this chapter Summary 52-53 test system implementation and application 53-65 5.1 test cases automatically generated system to achieve 53-56 5.1.1 test sequence generation 54 5.1.2 test environment constructed 54-55 5.1.3 genetic algorithm package 55-56 5.1.4 test case generation system using a process 56 5.2 test cases 56-61 5.2.1 draw and format of the state diagram 56-58 5.2.2 state diagram file to EFSM conversion 58-59 5.2.3 status cover set generated 59 5.2.4 state conversion coverage sets generated 59-60 the the 5.2.5 target test sequence selected 60 the 5.2.6 test data generation 60-61 5.3 experimental results analysis 61-64 5.3.1 change the parameter settings performance comparison 61-63 5.3.2 fitness improved before and after the performance is 63-64 5.4 This chapter Summary 64-65 Chapter Summary and Outlook 65-67 the References 67-71 Acknowledgements 71-72 studying for a degree during the thesis 72

Related dissertations

  1. Formalization-based Methed to Generate Test Sequence of UML
    LiuWei ·Harbin Engineering University ·2011 ·Master's thesis
  2. The Logistics Center Location Planning of Tralin Group Straw Supply
    ZhouXuan ·Nanjing Agricultural College ·2013 ·Master's thesis
  3. Research on Elevator Group Control System Scheduling Policy and Simulation Design
  4. Study on MDF Continuous Press Position Servo System Modeling and Intelligent Control
    HuangXiaoZhou ·Northeast Forestry University ·2013 ·Master's thesis
  5. Study on Modeling and Optimizing of Supply Chain Multi-time Periods Integrated Plan Under Uncertain Environment
    ZhuYanBo ·Northeastern University ·2013 ·Master's thesis
  6. Research and Application on the Hybrid Colony Algorithm
  7. The Research and Application of Shuffled Frog Leaping Algorithm Based on Average Value
    SongLei ·Gansu Agricultural University ·2013 ·Master's thesis
  8. Research on Production Scheduling Problem Based on Order Disturbance
  9. Decision and Analysis of Metallurgical Products Price Based on Artificial Neural Networks
  10. Modified Shuffled Frog Leaping Algorithms and the Application of Multi-objectives Optimization
    WangZuoRan ·Gansu Agricultural University ·2013 ·Master's thesis
  11. Research on Closed-loop Logistics Network Design Based on Low Carbon Economy
    ZhangPeng ·Yanshan University ·2013 ·Master's thesis
  12. Friction Compensation and Adaptive Control for the Linear Single Inverted Pendulum
  13. Design of H2/H∞Robust Control Based on Multi-objective Genetic Algorithms
    WangZuo ·Northeastern University ·2013 ·Master's thesis
  14. T-S Fuzzy Modeling and Control for Nonlinear Network Control Systems
  15. The Intrusion Detection System Research Based on Adaptive Genetic Algorithm
  16. Research on Recommender System Applied in Open Network Learning Environment
    FangFei ·Anhui University ·2014 ·Master's thesis
  17. Simulation and Optimization of Crankshaft Production Line Based on Discrete System Simulation
    ZhangMin ·Hunan University ·2013 ·Master's thesis
  18. Evolution method in image processing
    YangGuoRong ·Guizhou National University ·2012 ·Master's thesis
  19. Research on image matching degree function search strategies and adaptation
    SongFangFang ·Guizhou National University ·2012 ·Master's thesis
  20. Research on Database Schema Matching Based on Instances Clustering
    ZhangZuoXin ·Harbin Engineering University ·2013 ·Master's thesis