Research on Software Test Case Automatic Generation Based on UML Statecharts
- Author
- ZhangBaoGuo
- Advisor
- ZouBeiZuo
- School
- Hunan University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2004
- Downloads
- 248
- Citations
- 4
- Software test
- test criteria
- Automatic test case generation
- UML Statechart diagram
- Operational Semantics
- hierarchy
Abstract
With the development of all kinds of large software systems, the number of errors resulted from them have also increased. So it is necessary to explore some methods to inspect these errors, which are called as software test. And software test plays a very important role in reducing the cost of software development, and it is also a key part in Software Engineering. Especially in some software systems with a lot of human-machine interactive operations, such as CAD system, auto-generating test cases are one of the best methods to test themOur research is supported by a national 863 research project which is named as Research on Automatic Test Technology for 3-Dimensions CAD System (Project No. is 2002AA411510). And in this thesis we present our methods to generate software test cases automaticlly, which are based on UML Statecharts specification of software. And the operational semantics about UML Statecharts and its hierarchy structure are described in this thesis. Our main works are listed as follows,(1) On the bases of Li LiuYing’s definitions on operational semantics of UML Statecharts, we add some definitions on transition linked by junction pseudostate, and describe the transition definition as transition structure, which will make it more suitable for software testing and the formal semantics, and these definitions are much easier to be expanded.(2) Based on structural definition of transition relationship, we present our methods used in testing compound transition linked by fork, join, junction, choice pseudostate etc. in this thesis.(3) Based on hierarchical structure of UML Statechart, a hierachical test cases generation method for UML Statechart according to its hierarchy is presented. Conflicted transitions in statues’ enabled transition set may influence test cases execution. Accordingly, a new method that inserting sub-sequence in test case is set forth to deal with this problem.(4) In order to satisfy testing requirements, state coverage criterion, transitioncoverage criterion, predicate coverage criterion, full predicate coverage criterion and predicate partition coverage criterion are defined. With these coverage criterions, algorithms for automatic generating test cases are brought forward. To assist test case generation, split tree algorithm for DNF formal is presented in the thesis.(5) Based on research work listed upon, the author implemented an automatic test cases generation system for UML Statecharts.
Table of contents
Summary 6-7
ABSTRACT 7-11
Chapter 1 Introduction 11-20
1.1 Introduction to Software Testing 11-13
1.1.1 What is software testing 11
1.1.2 software testing technology 11-13
the 1.1.3 test data selection criteria 13 < br /> 1.2 issues raised as well as domestic and foreign research status 13-18
1.2.1 issues raised 13-15
1.2.2 subject sources 15 -16
1.2.3 research status 16-18
1.3 In this paper, the work done 18-19 the 1.3.1 this article
main research content and Features 18-19
1.3.2 The paper is structured arrangements 19
summary in 19-20
Chapter 2 the UML Statechart Syntax its level semantics 20-33
2.1 UML Profile 20
2.2 UML Statechart About the 20-24 2.3 UML a Statechart-level model
24-32
2.3.1 state (State) 24-26
the 2.3.2 transition relation (Transition) 26-30
2.3.3 formalization, operational semantics (Formal Operational Semantics) 30-32
Summary 32-33
Chapter 3 the UML Statechart test case generation method 33-54
3.1 UML Statechart test the 33-39 3.1.1 UML the Statechart-level state machine malfunction
33
3.1.2 UML the Statechart diagram migration relationship test method 33-36 < br /> 3.1.3 UML Statechart diagram test case generation method 36-39
3.2 UML Statechart diagram test criteria and test case generation algorithm nbsp to; 39-52
3.2. 1 state coverage criteria 40-42
the 3.2.2 transition relation coverage criteria are found; 42-43
3.2.3 transition relation predicate coverage criteria 43-45
3.2.4 transition relation predicate coverage criteria the 45-47 3.2.5 migration relationship
divided coverage criterion the 47-52
3.3 test criteria test and evaluation 52-53
Summary the demo 53-54
Chapter 4 System Design and Implementation 54-61
4.1 system modules 54 - 59
4.1.1 model read module 54-55
4.1.2 automata module 55-57
4.1.3 predicate parsing module 57-58
4.1.4 test cases automatically generated module 58-59
4.2 system interface, and instructions for use 59-60
Summary 60 - 61
conclusion 61-63
Reference 63-67
Acknowledgements 67-69
Appendix A degree during the complete papers and to participate in the project 69-71
Appendix B event monitoring predicate expression syntax paradigm 71-72
Related dissertations
- The Automation Generation of Case Based Simulated Annealing Genetic Algorithm
- Corporate Culture Structure
- Research and design of on-board control universal testing platform software
- Design and Implementation of Automated Test Case Generator
- The Design and Implementation of Public Client Business System of Internet Bank Based on J2EE
- Shandong Unicom Online Self-service Research and Design
- Mao Zedong to promote Chinese by hierarchical society to the equality of the research of social transformation
- The Phonetic Research of Qin'an Dialect
- Chinese Proper Name System and the Hierarchy Distribution in Lexical System
- Choice in Dilemma
- Port-user Supply Chain Coordination: a Bi-level Programming Approach
- The Waterlogging Prevention and Control Technology Research of Small Bridge and Culvert
- Research and Implementation on the Data Standardization of Guangzhou Urban Rail Network
- Methods of Measuring the Spatial Information Content of a Map
- Design and Analysis of Algorithms for Two Kinds of Parallel Machine Scheduling Problems
- A Study of the Newspaper Hierarchy and the New Visualization
- Web Based Metwork-Security Tool Testing and Analysis
- The Diagnosis and Treatment Assistant System of Visual Function Based on Expert Knowledge
- Software development for a launch vehicle
- Research on Software Automatic Testing and Its Application in Online Bank System