Research on the Combination of UML Technology and Test-Driven Development Technology
- Author
- ZhangHaiFeng
- Advisor
- JiangGuoHua
- School
- Nanjing University of Aeronautics and Astronautics
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 121
- Citations
- 2
Abstract
Both the Unified Modeling Language (UML) and the Test-Driven Development (TDD) are the excellent achievements, which were put forward in the development process of software engineering. All the time, people rarely use both of them into the same software development process. However, practices indicate that, combining OOA/D with XP will be the extremely effective development pattern, and UML is the main technology of OOA/D. So, the researching on the combination of UML and TDD has important significance.First, this paper discusses unit test case generation based on UML state diagram and test coverage criteria. On this basis, studies the unit test case generation based on UML class diagram and its OCL invariant constraint and pre-/post- condition and the criteria of test coverage. Following that, this paper discusses and analyses the relation between UML and TDD, and gets a conclusion that TDD can not be separated from UML in many circumstances of actual development.On the basis of above research, this paper proposes an approach to combine UML with TDD to develop software. This approach lets UML class diagram with its OCL constraint and the automated unit-testing framework introduced into TDD as a bridge between UML and TDD.Therefore, this paper has a further study on the method of unit test cases automatically generating from UML class diagram and its OCL constraint. We can use this method to generate NUnit assertion format test code based on OCL invariant constraint supplemented with class and OCL pre-/post- condition supplemented with class method respectively by parsing UML class diagram and its OCL constraint. The generated test code can be run under NUnit framework automatically.Finally, this paper designs and develops a test case generation system based on above research. And the feasibility of the topic of this paper is verified by this system.
Table of contents
Abstract 4-5
ABSTRACT 5-11
The first chapter 11-15
1.1 dissertation research background 11-12
1.2 research status and main contents 12-13
1.3 dissertation chapters arranged 13-15
Chapter UML elements and their descriptions 15-19
2.1 UML description of the unit and Introduction 15-16
2.2 UML state diagram 16-17
2.3 OCL ( Object Constraint Language ) 17-19
Chapter UML-based unit testing 19-30
3.1 unit testing based on state diagram Methods 19-21
3.2 based on UML state diagram of the test coverage criteria 21-23
3.3 Test Case Generation Based on OCL study criteria 23-27
3.3.1 Testing Based on OCL Research 23-24
3.3.2 OCL constraints constant testing criteria 24-25
3.3.3 OCL pre- , post-conditions test guidelines 25-27
3.4 OCL -based unit testing 27-29
3.4.1 OCL constraints generate constant test 27-28
3.4.2 Preconditions generate test cases 28
3.4.3 Front, Rear conditions combined to produce test 28-29
3.5 Summary 29-30
Chapter Test Driven Development Introduction 30-43
4.1 Test-driven development process 30-32
4.2 Test Driven Development and unit testing 32-33
4.3 NUnit Profile 33-34
4.4. NET environment, test-driven development process 34-42
4.4.1 NUnit usage rules 35
4.4.2 in . NET (C #) project with NUnit 35-38
4.4.3 TDD Case - achieve Fibonacci 38-42
4.5 Chapter Summary 42-43
Chapter UML relationships with test-driven development and integration 43-55
5.1 Test Driven Development of design 43-44
5.2 UML and test -driven development 44-46
5.2.1 UML relationship with test-driven development 44-45
5.2.2 UML techniques combined with test-driven development techniques 45-46
5.3 UML class diagrams and OCL grammar analysis 46-49
5.4 NUnit assertions in 49-51
5.5 with NUnit test cases based on OCL assertion conversion studies 51-54
5.5.1 OCL constraints constant test conversion 51-52
5.5.2 OCL pre- , post-conditions test conversion 52-54
5.6 Chapter Summary 54-55
Chapter VI test case generation system design and implementation and examples of analysis 55-73
6.1 System Functional Overview 55-57
6.2 kernel module design 57-66
6.2.1 UML class diagram parsing module 57-58
6.2.2 OCL parsing module 58-61
6.2.2.1 constant constraint unit analysis 58-60
6.2.2.2 resolve class method unit 60-61
6.2.3 test case generation module 61-63
6.2.4 test conversion module 63-66
6.2.4.1 constant constraint unit conversion 64-65
6.2.4.2 class method unit conversion 65-66
6.3 system implementation and case analysis 66-72
6.3.1 system implementation and use of 66-69
6.3.2 Using test 69-72
6.4 Chapter Summary 72-73
Chapter Summary and Outlook 73-75
7.1 Full Summary 73-74
7.2 Prospects 74-75
References 75-78
Thanks 78-79
during the study period and the results of research papers published 79
Related dissertations
- The Research of Software Testing on Bank Automatic Teller System
- Research on Activity Diagram Polymorphic Test Method with OCL Constraints
- Design and Implementation of Dynamic Monitoring System for Budget Enforcement Based on J2EE
- The Design and Implementation of Statistical Data Collection and Process System of Dujiangyan Statistical Bureau
- Study on conversion and UML testing and model based on AADL
- Analysis of Design and Implementation of B2C E-business Store System
- Designing and Implementing for Guizhou Huaxi Guest House Information Management System
- Design and implementation of the Qilu Petrochemical Industries Co bidding management system
- Design and implementation of hotel management system based on UML
- Design and Implementation of Personnel Management System of University
- The Design and Implementation of Labor Resource Management and Employment Placement System for Somewhere
- Design and Implement of Telematics System Service Center Subsystem
- The Design and Realization of Motor Vehicle Pre-registration System
- Design and Implementation of Subjects Teaching Performance Monitoring and Analysis System
- Design and Implementation of Ji’nan Waterconservancy Bureau Covers Security Information System
- The architecture of B/S auto repair technical support system design and Implementation Based on
- Design and Implementation of Emergency Command System for Digitizing Prison Based on Contingency Plans
- Design and Implementation of Chengdu Bank Credit Decision Support Information Systems
- Design and Implementation of Sichuan Province Security Technology Center PPE Examining Information Management System
- Based on B/S Mode of Tibetan and Qiang Style Shopping Site Design and Implementation