Generating test cases based on the UML sequence diagram of the scene
- Author
- ZuoRuiJuan
- Advisor
- LiJinHua
- School
- Qingdao University
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 257
- Citations
- 1
Abstract
The anima of software is quality. Software testing is a crucial stage during the software development. It’s the key to ensure the software quality and to improve the software reliability. The research on software testing theories and effective testing approaches has become an active topic in the field of software engineering. In software testing, test case generation is the most difficult, expensive and tedious task. Software testers need methodologies and tools to facilitate test case generation. And the automation of the process could significantly improve the software quality and reduce the costs of software development.UML is a standard software modeling language in object-oriented system analysis and design. UML uses a series of views to describe different aspect of software systems. UML sequence diagram is used to describe dynamic behaviors of a software system through the message transmission’s time order of the interactive objects, can serve as a valuable information source in software integration test. Because UML model can be created at design stage, test case generation from UML models can reuse the existing design results and reduce the total costs of software test. Accordingly, it is significant to industry in which UML has been widely applied.This paper describes an approach to automatically generate scenario test cases based on UML sequence diagrams with the combination of state diagrams and class diagrams. First of all, the paper gives a formal definition of UML sequence diagrams. Then the paper describes the algorithms of automatically generating scenario test cases form a UML sequence diagram. A sequence diagram is converted to a DAG graph whose nodes are events in the sequence diagram. During a depth-first search in the DAG graph, all testing scenarios can be derived. The issues of the branches and loops in UML sequence diagrams are taken into consideration. Then, the method analyzes each scenario and applies the category-partition method to find environmental conditions related to each scenario and combine them with method call sequence, input and output to construct a test case for each scenario. The method is shown with a case study. Finally, the designs of scenario test case generator (STCG.) which generate test cases automatically are presented.
Table of contents
Abstract 2-3
Abstract 3-5
Introduction 5-8
In 1.1 Introduction
at home and abroad 1.2 Analysis 5-7
1.3 the purpose and meaning of the topics
In 1.4 papers main research content and framework 7-8
Chapter II software testing 8-16
2.1 software testing , 8-10
2.2 object-oriented software testing strategy 10-12
2.3 scene The technology 12-13
2.4 code-based and specification-based software testing 13-15
2.5 Summary 15-16
Chapter Unified Modeling Language UML and its test 16-25
the
UML 3.1 Profile 16-20
3.2 UML-based software testing 20-25
Chapter UML sequence diagram generated the scene test cases 25-39
In 4.1 Overview
4.2 UML sequence diagram definition 25-28
4.3 sequence diagram of the scene 28-29
the
4.4 status The Diagram and Sequence Figure relationship between 29-30
4.5 Test The measure 30-31
In 4.6 category - division method 31-32
4.7 algorithm steps 32-33
The
instance 4.8 Analysis 33-39
the scene test case system design 39-46
5.1 system overall structure 39
5.2 core module design 39-40
5.3 STCG achieve 40-46
Chapter VI Conclusion 46-47
6.1 46
6.2 future research 46-47
the
References 47-50
the
degree during research 50-51
the
Acknowledgements 51-52
Related dissertations
- Design and implementation of hotel management system based on UML
- The Study to the Method of Test Cases and Test Sequence’s Generation Based on the RBC Test Platform
- The Research of Software Testing on Bank Automatic Teller System
- Research on Business Process Modeling with Uml and Implementation of Development Tools’ Integration Based on Eclipse
- OO Software Testing Method Study Based on UML
- The Research and Application on Key Technique of Software Test Based on Use Case Driven
- Scenario-Based Automatization Testing Tool of Software Components Research and Realization
- Integration Testing Research for Component-Based Software
- Based on UML use case diagrams and activity diagrams test case generation method
- Research on the Impact of Human Resource Management on Employees Performance
- 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
- Agent-based Research and Implementation on Simulation Modeling and Scenario in Battlefield Environment
- The Research and Design of Game Platform Based on Scenario Experience
- 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 Personnel Management System of University
- The Design and Implementation of Labor Resource Management and Employment Placement System for Somewhere