Research on Object-Oriented Integration Testing Based on MM Path
- Author
- LinLing
- Advisor
- ZhaoRuiLian
- School
- Beijing University of Chemical Technology
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 88
- Citations
- 0
Abstract
The rapid development of object-oriented software technology makes new challenges to object-oriented software testing, especially to object-oriented integration testing. Object-oriented integration testing emphasizes on the problems such as whether the performances of the activating methods are right and whether the order of methods or messages is legal. MM Path, Method/Message Path, is a sequence of method executions linked by messages, which can solve theses problems above well. Thus this thesis researches on object-oriented integration testing based on MM path, and this work has significant theory meanings and broad application outlooks.After systematically summarizing the relevant research based on object-oriented integration testing and MM path; this thesis does classification research to MM path from the reason of producing MM path, the effect scope of MM path and the structure of MM path; carries out an formalized representation of MM path to support integration testing based on MM path.Generation of MM path is a key to integration testing based on MM path. This thesis obtains relevant information about branch and call of program code, through the analysis of morphology and grammar, and realizes the auto-generation of MM path. Besides, the thesis researches on the generation of MM path based on UML specification. A method to generate atomic MM path form UML statechart diagram has been put forward, which uses message response table to record interactive information of object-oriented system. This work makes a solid foundation for object-oriented integration testing research based on MM path.Criterion of test coverage decides how to generate test cases and when to stop testing. The thesis puts forward criterion of MM path coverage, and compares it with criteria based on the UML statechart diagram, such as criterion of state coverage, criterion of transition coverage, and criterion of transition-pairs coverage. On the basis of that, this thesis puts forward a test generation method based on MM path coverage, which performs the state recognition and generation for test, through stubbing state observation function and state preset function. This method can efficiently test interchange information of methods inside a class.
Table of contents
Abstract 4-6
ABSTRACT 6-14
first chapter 14-19
1.1 research background and significance 14-15
1.2 research status 15-17
1.3 of this paper work and organization structure 17-19
the
UML and object-oriented software testing 19-29
2.1 object-oriented software testing 19-21
2.1.1 testing object-oriented technical features 19-20
2.1.2 object-oriented testing division and 20-21
2.2 object-oriented integration testing methods 21-23
2.2.1 Object-oriented integration testing content 21-22
2.2.2 basic object-oriented integration testing method 22-23
2.3 UML and object-oriented integration testing are found; 23-26
2.3.1 the UML Profile 23-24
2.3.2 UML diagrams in object-oriented software testing 24-25
2.3.3 Integration Testing UML support 25-26
2.4 MM path and object-oriented integration testing 26-28
2.4.1 path-based integration testing 26-27
2.4.2 MM path defined 27-28
2.5 This chapter subsections 28-29
classification and formalization of the
MM path research 29-36
3.1 MM path classification research 29-31
3.1.1 classify the causes of the path from the MM 29-30
3.1.2 the path from MM scope, classification 30
3.1.3 from the structure of the composition of the MM path classification 30-31
3.2 MM path formal representation 31-35
the
formalization of 3.2.1 atoms MM The path method 33-34
The
formal 3.2.2 composite MM path representation 34-35
3.3 This chapter Summary 35-36
Chapter MM path generation method 36-49
4.1 MM path based on the program code generated 36-41
4.1.1 method based on the MM path of the program code generated 36
4.1.2 algorithm to achieve 36-39
4.1.3 Case Study 39-41
4.2 based on UML specifications generated MM path are found; 41-48
4.2.1 generation method based on the path of UML state diagram MM 42-44
4.2.2 algorithm to achieve 44-46
4.2.3 Case Study 46-48
4.3 This chapter subsections 48-49
the MM path-based test coverage criteria and test cases generated research 49-62
5.1 test adequacy criteria 49-50
5.2 test coverage criteria 50-55
5.2.1 state coverage criteria 50-51
5.2.2 Migration coverage criteria 51-52
5.2.3 migration of coverage criterion 52
5.2.4 MM path coverage criteria 52-53
5.2.5 Several coverage criteria 53-55
5.3 generated test cases based on the MM path coverage 55-61
5.3.1 test case generation method 55-58
5.3.2 instance analysis 58-61
5.4 This chapter subsections 61-62
Chapter VI Conclusion 62-64
main contribution of this article 6.1 62-63
6.2 further work 63-64
the
References 64-67
Acknowledgements 67-68
studying for a degree during the published papers directory 68-69
the
author and mentor Introduction 69-70
the
Graduate Thesis respondent Commission resolution book 70-71
Related dissertations
- UML Statechart Slicing Based on Dependency Analysis in the Regression Testing
- Research on Software Test Case Automatic Generation Based on UML Statecharts
- UML - based formal auxiliary object-oriented software test case generation technology
- The Automatic Generation of MM Paths Based on the Polymorphism of Object-Oriented Software