Research on Software Test Case Generation Method Based on UML Statecharts
- Author
- DuXiuJuan
- Advisor
- GuoYuanShu
- School
- Chang'an University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 125
- Citations
- 3
Abstract
Software testing is playing a more and more important role in the process of software development, which penetrates the whole life cycle of software definition and development. And the key point in software testing is the design of test cases, which mainly depends on the software requirement and design and should satisfy the adequacy criteria of testing. The research in this paper belongs to the category of software testing based on specification description.Test case design based on specification is a new technique and to a certain extend is better than the former testing techniques. This paper mainly studies the test case generation technique based on UML statecharts specification description. UML is a semi-formal language and cannot be described by precise semanteme, so OOZS should be used to formalize the statecharts. Through the above method, the UML statecharts is transformed into FREE model. FREE model is an extended finite state machine, whose compound state migration parallels the one in UML statecharts and the states configuration is just an abstraction of UML states. Definitely, UML statecharts is equal to FREE model.Graph Theory has accumulated a lot of theories after more than 200 year’s development. In the material meaning, UML statecharts can be viewed as graph of graph theory, so this paper introduces graph theory to guide test cases generation. For the adequacy criteria of testing, the paper still adopts the classical criteria proposed by A.J.Offutt, namely states coverage criteria, migration coverage criteria, migration cross coverage criteria and complete decision coverage criteria. In order to illuminate the method, an example-Drink vending machine-is used in this paper.
Table of contents
Abstract 4-5
Abstract 5-9
first chapter 9-14
1.1 this study significance 9-10
the 1.2 research status and the main problems 10-11
1.3 In this paper, the research and work 11-12
1.4 In this paper, the organizational arrangements 12-14
graph theory and software testing 14-26
2.1 Graph Theory Introduction 14-18
2.1.1 Graph Theory 14
2.1.2 Graph Theory basic concept 14-17
Theorem and Corollary 2.1.3 Graph Theory 17-18
2.2 software testing 18-21
2.2.1 software testing purposes and principles 18-19
2.2.2 software testing process 19-20
2.2.3 software testing 20-21
important and difficult
2.2.4 software testing: selection of test cases 21
2.3 object-oriented software testing 21-23
2.3.1 information hiding and encapsulation test 22
2.3.2 inheritance test 22
2.3.3 polymorphism and dynamic binding test 22
2.3.4 testing object-oriented hierarchy 22-23
2.4 model-based testing methods 23-24
2.4.1 Typical test model 23-24
2.4.2 UML model advantages in testing 24
2.5 This chapter Summary 24-26
Chapter formalization of UML state diagram 26-46
3.1 UML basics 26-29
3.1.1 UML's composition 27
3.1.2 UML architecture 27-28
3.1.3 UML view and Figure 28-29
3.2 UML state diagram formalization 29-42
3.2.1 OOZS About 29-30
3.2.2 state diagram the model elements OOZS said 30-35
3.2.3 on the operational semantics of UML state diagram is formalized 35-42
3.3 instance research 42-44
3.3.1 Status Figure instance 42-43
3.3.2 state configuration 43
3.3.3 composite migration 43-44
3.4 This chapter Summary 44-46
Chapter test adequacy criteria 46-56
4.1 software testing full 46-49
4.1.1 test adequacy criteria defined 47
4.1.2 test adequacy criteria classification 47-48
4.1.3 adequacy criteria should have nature 48-49
the 4.1.4 test adequacy criteria between the relatively 49
4.2 UML state diagram-based test adequacy criteria 49-54
4.2.1 state coverage criteria 50
4.2.2 Migration coverage criteria 50
4.2.3 migration of coverage criterion 50-51
4.2.4 completely determine the coverage criteria 51-54
4.3 This chapter Summary 54-56
the
graph theory test case generation process 56-72
5.1 state coverage criteria for the next generation of test cases 56-60
5.1.1 Graph Theory in the state covering the application guidelines 56-58
5.1.2 state coverage criteria, test case generation 58-60
5.2 migration coverage criteria for test case generation 60-68
5.2.1 Graph Theory in migration application coverage criteria 60-64
5.2.2 migration coverage criteria for test case generation 64-68
5.3 migration generated test cases coverage criteria 68-71
5.3.1 Graph Theory in the migration of the coverage criteria 68-69
5.3.2 migration test case generation for coverage criteria 69-71
5.4 This chapter Summary 71-72
concluded 72-74
the
References 74-77
Appendix 77-83
Acknowledgements 83
Related dissertations
- Research of Testing Method Based on UML Statecharts
- Research of Test Generation Based on UML Statecharts
- Coordinated Motion Control of Multiple Mobile Robots via Geometric Approach
- Study of Plant Image Segmentation Based on Level Set Method and Graph-cut Algorithm
- Research on Classification Method for Esophagus Endoscopic Ultrasonography Image Based on Graph Theory
- Research on the Interference Coordination for Heterogeneous Cellular Networks
- The Research and Algorithm Analysis of Vehicle Planning Based on Wireless Sensor Network
- Research on Resource Allocation Strategy in Wireless Regional Area Network
- Algorithm Research of Dynamic Spectrum Management in Cognitive Radio
- The Stability and Its Governance of Network Production System with Uncertain Environment
- Research on automatic segmentation and quantitative analysis of retinal symptomatic effusion associated disorders
- Efficient Equalization Topology and Efficiency Analysis of Energy Storage Power Pack Series
- Based on Graph Theory and Heuristic Algorithm of Distribution Network Fault Processing Method Research
- Study on Fast Searchingactive Splitting Surface of the Power System Based on the Multilevel Partitioning Algorithm
- The Research of Integrated Protection Algorithm Based on Digital Substation
- Optimization Study on Zoning Management Technology of Urban Water Supply Network
- Research on Close-valve Strategy of Multiple Accident Points and Safety Guarantee of Urban Water Supply Network
- Optimal Research on Methods of Pressure Control of Variable Air Conditioning Systems
- The Research and Application of the Lathe Remanufacturing Scheme Design and Assessment Techniques
- The Study of Strips Reconstruction Oriented Data Processing Methodology in Low-altitude Photogrammetry