Research on Automatic Generation of Test Case Based on Model
- Author
- ZhangMiao
- Advisor
- LiuLei
- School
- Jilin University
- Major
- Software Engineering
- Classification
- TP311.53 Software Maintenance
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 129
- Citations
- 0
Abstract
With the rapid development of computer and Internet technology, the computerhas been applied to various sectors of the society, and the software as a very importantpart of the computer system, plays a vital role in the normal operation of the variousindustries. Currently, with the scale of software system expanding and softwaredevelopment technology becoming complex, the quality of the software hasincreasingly attracted more and more attention. Software testing is an importantmeans to ensure software quality, and designing and generating effective test case isthe key of software testing. Presently software testing is mainly carried out by manualand it takes enormous cost, therefore, achieving the automation of software testing isone of the important means to reduce the cost of test and improve software quality.Automatically generating test cases becomes the top priority of softwareautomatically testing.UML (Unified Modeling Language) is a common modeling language, andbecoming the de facto standard object-oriented modeling. The market has a variety oftools to support UML modeling. UML model combines the advantages of the model.UML can describe the software system from different angle. It not only has powerfulability to describe and manage system, but also has universal applicability and gooddefinition. It has gradually become a hot research. UML is adopted by many softwarecompanies and developers, and is widely used in the test field.With the development of bionics, genetics and artificial intelligence, intelligentalgorithm, such as genetic algorithm, ant colony algorithm and simulated annealingalgorithm has been developed rapidly. The algorithm provides a new way of thinkingto solve complex problems, and gradually applied to the test areas.In this context, this paper has done extensive and in-depth research, and made use of UML model and ant colony algorithm to generate test cases automatically, themain work as follows:(1)Studying and giving the formal definition of the UML sequence diagram,eliminating ambiguity and consistency of the sequence diagram, making the sequencediagram easier analyze.(2)Studying the method of converting the sequence diagram into sequencedirected diagram SDG, giving the data structure and conversion process and givingthe name of the converted nodes.(3)Studying and developing ant colony algorithm, giving the improvedalgorithm, the classification processing the path including circular structure, whentraversing directed diagram, using the developed ant colony algorithm will get allpossible paths.(4)Combining the order directed graph SDG and the developed ant colonyalgorithm, and using it in the test case generation techniques based on the sequencediagram. Designing and implementing a prototype tool to automatically generate atest case.According to the analysis and verification of the events of "borrow books”, theresults show that using the UML sequence diagram model and the improved antcolony algorithm to generate test cases, not only effectively control the generation ofthe redundant test cases, making the number of test cases generated reasonable andeffective, but also able to meet the demand of the test.
Table of contents
Summary 4-6
Abstract 6-10
Chapter 1 Introduction 10-13
1.1 Background and Significance 10 - 11
1.2 research papers 11-13
Chapter 2 software Testing basics Overview 13-27
Definition 2.1 software testing 13 -14
2.2 software testing technology classification 14-15
2.2.1 static test 14-15
2.2.2 dynamic test 15 <br / > 2.3 based testing model 15-17
2.3.1 commonly used test model 16-17
2.3.3 model -based testing process 17
2.4 UML technology 17-24
2.4.1 UML -based classification nbsp 17-19
2.4.2 UML model ; 19-21 <br / > sequence diagram 2.4.3 Overview 21-24
2.5 appropriate research methods 24-26
Summary 26-27
Chapter 3 formal studies sequence diagram and model conversion algorithms 27-38
3.1 UML sequence diagram testability analysis 27-28
3.2 sequence diagrams formal definition 28-29
3.3 sequence diagram of the scene 29-31
3.4 sequence diagrams conversion 31-37
3.4.1 UML sequence diagram model transformation the rules for the SDG 32-33
3.4.2 UML sequence diagrams model the process of converting SDG 33-36
3.4.3 sequence directed graph SDG naming 36-37
Summary 37-38
Chapter 4 improved ant colony algorithm 38-49
4.1 ant colony algorithm 38-40
4.1.1 Introduction ant colony algorithm 38
4.1.2 ant colony algorithm processes 38-40
4.2 improved ant colony algorithm description 40-48
4.2.1 improved ant colony algorithm process 42-45
4.2.2 improved ant colony algorithm data structure 45-47
4.2.3 update process memory components 47-48
Summary 48-49
Chapter 5 ant colony algorithm based on sequence diagrams and generate test cases 49-60
5.1 test 49
5.2 -based test coverage criteria UML sequence diagram model 49-50
5.3 to generate test sequence diagram based use cases 50-51
5.4 the basic framework for test case generation 51-52
5.5 Case Study 52-59
Summary 59-60
Chapter 6 Conclusion 60-61
References 61-64
Thanks 64
Related dissertations
- Aresearchbased on UML Diagrams and Dynamic Slicing of Regression Testing
- Research and Application on Mobile Entertainment Device Software Testing Technologies
- Function Test in Call Arrival Module of Call Center System
- Research on UML Sequence Diagrams Model Based Software Testing
- Design and Implementation Mobile Software Testing in the Scrum Mode of the Multi-cultural
- The Research of Test-suite Reduction Technology Based on Improved Ant Colony Algorithm
- Research on Test Suite Reduction and Construction
- Research & Implementation of Test Method Based on UML Sequence Diagram
- Study of Component-Based Software Testing and Supporting Tool
- Study on the Optimization of the Land Use Stucture in Daqing City
- Research on Band Selection for Hyperspectral Imagery
- Hybrid Genetic Algorithm and Their Applications
- Optimization Analysis of Compact Storage and Retrieval System Picking Path Based on Ant Colony Algorithm
- Study on fresh agricultural products supply chain negotiation system based on Multi-Agent
- Research and Application on the Hybrid Colony Algorithm
- A Research on Ant Colony Algorithm for Path Planning Problem
- Research on improved ant colony algorithm and its application
- Research and Application of Customer Segmentation Based on Ant Colony Clustering Algorithm
- Application Research of Ant Colony Algorithm in Traveling Agent Problem
- Research on Autonomous Mobile Robot