A Method of Test Data Generation Based on UML Sequence Diagrams
- Author
- YangZuo
- Advisor
- HuangZhiQiu
- School
- Nanjing University of Aeronautics and Astronautics
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 83
- Citations
- 0
- Software Testing
- test data generation
- UML2.0 sequence diagrams
- control-flow analysis
- OCL constraints
Abstract
Software testing is an important technique which assures the quality of software product, and generating valid test data is one of the key factors which guarantees the quality of software testing.With the development of model-based test, generating test data based on UML sequence diagrams is vital for integrate test to be feasible and efficient. By the research of UML2.0 sequence diagram and the path-wise test data generation, we propose a method of test data generation based on UML sequence diagrams.Firstly, in this dissertation we analyze control-flow of UML2.0 sequence diagrams(SD). It is not straight-forward to derive control-flow from SD, because of UML2.0 activity diagrams(AD) are good at describing SD control-flow feature, we select it to prompt a SD control-flow model:SDCFG, and define the consistency mapping rules between SD and SDCFG.Secondly, UML class diagrams, OCL constraints and SDCFG is combined to define a CIG model and propose rules to construct CIG. CIG pathes are generated from CIG and coverage criterias. A CIG path contains an interaction process and object constraints, we generate test constraints for CIG paths and discuss how to remove redundant constraints due to OCL navigation expressions.Finally, we divide test constraints into persistent constraints and variable constraints, solves persistent constraints according to OCL expression semantics, and adopts constraint processing and boundary value analysis to solve variable constraints. Persistent constraint solutions are combined with variable constraint solutions to generate test data.Throughout this paper, we use an example of ATM to illustrate the test data generation method we proposed.
Table of contents
Abstract 4-5
ABSTRACT 5-12
The first chapter 12-16
1.1 research background 12-13
1.2 research status 13-15
1.2.1 UML-based software testing 13-14
1.2.2 path-oriented test data generation 14-15
1.3 thesis work and organizational structure 15-16
chapter sequence diagram test data generation method 16-25
2.1 UML sequence diagram 16-21
2.1.1 UML2.0 sequence diagram 16-19
2.1.2 sequence diagram interaction 19-21
2.2 UML class diagrams and OCL 21-22
2.3 sequence diagram based test data generation process 22-24
2.3.1 right sequence and class diagrams convention 22-23
2.3.2 test data generation process 23-24
2.4 Summary 24-25
chapter sequence diagram control flow analysis 25-41
3.1 sequence diagram control flow analysis, based 25-28
3.1.1 control flow analysis status 25
3.1.2 UML2.0 sequence diagram control flow characteristics 25-28
3.2 sequence diagram of the control flow model 28-33
3.2.1 concurrency control flow graph (CCFG) 28-30
3.2.2 UML sequence diagram control flow graph (SDCFG) 30-33
3.3 sequence diagrams to SDCFG graph transformation rules 33-38
3.4 Case Study 38-40
3.5 Summary 40-41
Chapter IV test constraint generation 41-58
4.1 UML class diagram OCL constraints analysis 41-43
4.1.1 invariant constraint 41-42
4.1.2 Front, Rear constraint 42-43
4.2 class diagrams and sequence diagrams integrated information model 43-48
4.2.1 CIG Figure 44-45
4.2.2 CIG graph construction rules 45-48
4.3 Test constraint generation 48-52
4.3.1 build CIG path 48-49
4.3.2 generating test constraints 49-51
4.3.3 Normalization navigation path 51-52
4.4 Case Study 52-57
4.5 Chapter Summary 57-58
chapter test constraint solving 58-68
5.1 Test constraint solving process 58-59
5.2 fixed constraint solving 59-61
5.3 Variable Constraint Solving 61-66
5.3.1 using constraint solving method 62-64
5.3.2 using boundary value analysis 64-66
5.4 Fixed and variable binding constraints Xie Xie combination 66-67
5.5 Chapter Summary 67-68
Chapter VI Conclusion 68-70
6.1 paper summarizes 68-69
6.2 further work 69-70
References 70-75
Thanks 75-76
during the study period of research 76-77
Appendix 77-81
Related dissertations
- Research on Path-oriented Test Data Generation
- Theories and Methods of Evolutionary Generation of Test Data for Path Coverage
- Research on Test Data Automatic Generation
- Research of Test Data Generation Based on Evolutionary Testing
- Theory of Evolutionary Generation of Test Data for Complex Software and Applications
- Test Data Generation Using Annealing Immune Genetic Algorithm
- And the realization of software testing reuse management subsystem design
- Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
- Research on software testing technology based on complex network theory
- Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
- The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
- Research of Software Testing Method Based on Cloud Computing
- Research on Process Improvement in Y Co. Based on CMM
- Method Research and System Development of Software Automatic Testing
- Research and implementation of TaaS test management services
- The Design and Implementation of Banking Software Testing Based on Bugfree
- Automatic Generation of Test Data Based on Heuristic Search Algorithm
- Research on Combinatorial Testing Technique and Its Application
- Study and Practice of Independent Software Testing and Validation Based on RTCA DO-178B
- A Study to Improve CFL Based on TheDiscovery of Coincidental Correctness Test Cases