Research of Testing Method Based on UML Statecharts
- Author
- ZhanXueDe
- Advisor
- ZuoHuaiKou
- School
- Shanghai University
- Major
- Control Theory and Control Engineering
- Classification
- TP311.52 Software Development
- Degree
- Doctoral dissertation
- Year
- 2005
- Downloads
- 464
- Citations
- 1
- UML statecharts
- formal semantics
- Free Model
- specification based software testing
- test criteria
- Automatic Generation of Test Case
Abstract
Unified Modeling Language (UML) is a graphical modeling language with powerful ability and intuitionistic meaning. It provides various diagrams to depict system characteristics and complex environment from different viewpoints and different application layers. UML-based software developing process and modeling environments have been widely accepted in the industrial community, which includes the safety areas such as spaceflight, national defense, and automobile, etc.How to guarantee and improve the software quality becomes the main concerned point in the field. As one of the key techniques of guaranteeing software quality, software testing can effectively detect the faults in the system. Thus, software testing based on UML has become an important research direction of software engineering. The key of software testing is to generate test cases. This paper discusses an approach to generating test cases from UML statecharts.It’s difficult to generate test cases of class directly from the UML statecharts diagrams that contain hierarchical and concurrent structure. This paper presents test framework based on UML statecharts: The first, UML statechart diagram is drawn using existing UML tools (such as ArgoUML etc.), and, its specification document of XMI (XML Metadata Interchange) format is generated. Afterward, according to precise semantics of UML statechart, the specification XML document of UML statechart diagram can be transformed into the specification information of FREE model. The hierarchical and concurrent structure of states is flattened in the resulting FREE state model. Finally, according to the specification information of FREE model, test case set of class is generated based on different coverage criterion.UML statechart diagram is a notation for describing behaviours in the framework of UML. UML statechart diagram is an important part of the standard UML language. However, UML statecharts lack precisely defined syntax and semantics. This paper provides a method of formalizing syntax and semantics of UML statecharts with Z. According to this precise semantics, UML statecharts are transformed into FREE (Flattened Regular Expression) state models. Not only the model helps to determine whether the software design is consistent, unambiguous and complete, but also it is beneficial to software testing.The core of software testing is test adequacy criteria. The generating test cases are directly determined test adequacy criteria. This paper presents these adequacy criteria that are generated test cases based on UML diagram. They are state coverage criterion, transition coverage criterion, full predicate coverage criterion and transition-pair coverage criterion. It isn’t very complete that a loop is executed only
Table of contents
Abstract 6-8
ABSTRACT 8-15
first chapter 15-22
1.1 Background 15-16 < br /> 1.2 the study of the status quo and lack of 16-19
1.2.1 UML statecharts semantics of necessity 16-17
1.2.2 based on statecharts test the status quo and insufficient 17-18
1.2.3 test adequacy criteria and automatic test generation tool of the status quo and the lack of 18-19
1.3 of this paper work 19 - 21
1.4 This paper is organized arrangement 21-22
Chapter II UML, Z language and software testing 22-35
2.1.U the ML basis 22-26
2.1.1.U ML syntax and semantic 22-24
2.1.2.U the content of the ML 24-25
2.1.3 The main features of the U-ML 25-26
2.2 formal specification language-Z 26-29
2.2.1.Z Language Overview 27-28 < br /> 2.2.2.Z the composition 28-29
2.3 software testing foundation 29-34
2.3.1 software testing objectives and strategies 29 - 30
2.3.2 software software testing, specification-based testing technology 30-31
2.3.3 31-33
2.3.4 object-oriented software testing 33-34
2.4 Summary 34-35
Chapter III the UML STATECHARTS of formal semantics 35-51
3.1 of the UML STATECHARTS Overview 35-37
3.2 Formal syntax of the UML STATECHARTS 37-41
3.2.1 state level 37-39
3.2.2 simple migration 39-40
3.2.3. well-formed UML statecharts 40-41
3.3 formal semantics of UML STATECHARTS the 41-50
3.3 .1 state configuration 41-43
3.3.2 composite migration 43-46
3.3.3 of Statecharts situation 46-47
3.3. implementation to complete the step 47-48
3.3.5.F of REE state model 48-50
3.4 Summary 50-51
Chapter based on UML state diagram test criteria 51-67
4.1 test adequacy criteria 51-53
4.2 based on UML state diagram of the test the adequacy of criteria 53-60
4.2.1 state coverage criteria 53-54
4.2.2 migration coverage criteria 54
4.2.3 full predicate formula coverage criteria 54-56
4.2.4 Migration 4.2.5 ZOT coverage criteria 56-57
loop coverage criterion, 57-59
4.2.6 full ZOT path coverage criterion, 59-60
4.3 based on the application of the UML state diagram test criteria 60-65
4.3.1 state coverage criteria 61
4.3 predicate formula. migration coverage criteria 61
4.3.3 coverage criteria 61-62
4.3.4 migration coverage criteria 62-63 <br / 4.3.5 ZOT cycle coverage criteria 63-64
4.3.6 full ZOT path coverage criteria 64-65
inclusion relations between the 4.4 testing criteria 65-66
4.5 Summary 66-67
Chapter test case generation based on UML STATECHARTS 67-87
5.1 based on UML STATECHARTS the test case derivation 67-71
5.1.1 parse XML files 68-69
5.1.2 to generate FREE model 69-70
5.1.3 generate test cases 70-71
5.2 migration-based coverage test case generation 71-74
5.2.1 migration sequence generated 71-73
5.2. two test case generation 73-74
5.3 full predicate-based formula to cover the test case generation 74-81
5.3.1 Select the test value 75-77
5.3.2 migration sequence generation 77-80
5.3.3 test cases generated 80-81
5.4 based on migration on the coverage of test cases to generate 81-83
5.4.1 migration sequence generated 81-82
5.4.2 test cases generated 82-83
5.5 based on ZOT path coverage test case generation 83-86
5.5.1 migration sequence generated 83-85
5.5.2 test cases generated 85-86 < br /> 5.6 Summary 86-87
Chapter VI system design and 87-98
6.1 system design 87-88
6.2 data structure and class 88-94
6.2.1. design of PXML parser module 88-90
6.2.2 the S2F conversion module design 90 -93
6.2.3 test cases automatically generate the design of the module TCG 93-94
6.3. UMLSTG system interface 94-97
6.4 Summary 97-98
Conclusion to Chapter VII 98-101
7.1 In this paper main contribution 98-99
7.2 future work 99-101 < br /> References 101-105
during the PhD published papers 105-106
participation during the PhD research projects 106-107 < br /> thank 107-108
Appendix I: coffee vending machines, XML files 108-110
Appendix II: migration test cases covered 110-113
Appendix III: 113-116
Appendix IV in the migration sequence of the three test criteria: the test case specification language syntax 116-117
Appendix V: Migration covered by the test case files 117-123
On Dissertation agreed to issue the statement 123-124
submissions 124
Related dissertations
- Research of Test Generation Based on UML Statecharts
- Research on Software Test Case Generation Method Based on UML Statecharts
- Representation and Verification of Ontology Evolution
- Research and Application of Data Model for Sharing System
- UML Consistency Checking and Test Case Generation Based on Model Checking
- Nuclear power software testing research based on local continuity
- Some Applications and Formal Semantics of DNA Computing
- Modeling and Analyzing Web Transactions
- UML model of the semantic model
- Study on Formal Description of Software Architecture
- Quantitative expansion of the system Z and processing of discourse representation theory
- Research on Formal Architectural Semantics and Transformational Consistency Supporting Model Driven Development
- Research on Key Techniques of Incremental Software Product Line
- Visual Implementation of Operational Semantics of Procedural Programming Languages
- Disjunctive Proposition model theory
- Semantics Description of UML2.0 Sequence Diagrams Using the Temporal Logical Language XYZ/E
- Research on Software Test Case Automatic Generation Based on UML Statecharts
- Modality in English: A Systemic-Functional Approach
- A Formal Semantic Study of the Work Flow Based on Activity Graph Model
- Incomplete information database study