Research of Test Based on UML Sequence Diagram and Implementation of Supporting Tool

Author
JiangZhiLong
Advisor
XuLiPing
School
Huazhong University of Science and Technology
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2007
Downloads
92
Citations
0

Request the full text

Abstract

During the while lifecycle of software development, software testing is one of the key steps to ensure the high quality of software. With the popular application of Object-Oriented technology focus on Object-Oriented testing more and more. But some characters of Object-Oriented programs, such as encapsulation, inheritance, polymorphism, and exception handling mechanism, bring some new challenging problems to software testing. Exploiting a new system of testing theory and technology for these new specialties is essentially important. Object-Oriented software testing can be classified into four different levels: method level, class level, cluster level, and system level. There is no significant different between the methods in class and the procedures in traditional program, while the class and cluster level testing encounter the new problems.UML is a powerful language for modeling. It provided a method mechanism and a set of visual diagrams to help developing and managing systems. UML describes the system in concise and accurate way, so it is popular used. So testing abased UML diagrams have realistic meaning. As the result, people are considering UML in testing. A testing method base on UML sequence diagram can product the testing cases at the time of making specification. This can provide test cases at the beginning of development, and let the test cases are consistent with the software design.This paper proposes an approach for object-oriented testing at cluster-levels. According to sequence diagrams, this approach can pick up class interaction information, generate testing case. And this approach can generate test stub for class and insert some probe function into source code to generate a testing instruction. Finally, it run the testing instruction by test driver and generates test result. This approach includes solution for sequence diagrams new characters presented in UML2.0.Finally, implement the correspondence arithmetic in Visual C++2005 base on the theory.

Table of contents

Abstract 4-5 ABSTRACT 5-9 1 Introduction 9-15 1.1 software testing 9-13 1.1.1 method level test 11 1.1.2 class-level test 11-12 1.1.3 Cluster Level test 12 1.1.4 system-level test 12-13 1.2 object-oriented programming testing tools 13-14 1.3 The paper is organized 14-15 2 UML and software testing 15-26 2.1 the UML Profile 15-17 2.1.1 UML concept 15 2.1.2 UML composition 15-17 2.2 UML-based test 17-22 2.2.1 class diagram 17-18 2.2.2 Use Case Diagram 18-19 2.2.3 state diagram 19-20 2.2.4 Activity Diagram 20-22 2.2.5 interaction diagram 22 2.3 UML sequence diagram 22-24 2.3.1 UML sequence diagram syntax 22-23 2.3.2 sequence diagram notation and semantics 23-24 2.3.3 sequence diagram formalization 24 2.4 This chapter Summary 24-26 3 testing based on UML sequence diagram 26-40 3.1 test sequence diagram 26-27 3.2 based on the concept of test sequence diagram test 27-31 3.2.1 test cases 27-28 3.2.2 object state initialization 28-29 3.2.3 test drive 29 3.2.4 test piles 29-31 3.2.5 program instrumentation 31 3.3 test method based on the test sequence diagrams 31-34 3.3.1 Test Method 31-32 3.3.2 on UML2.0 extended 32 3.3.3 test efficiency 32-33 3.3.4 Test Method expansion 33-34 3.4 test cases 34-38 3.5 Chapter Summary 38-40 prototype system design and implementation 40-53 the framework of 4.1 overall system 40-41 4.2 system module design 41-43 4.3 system functions to achieve 43-51 4.3.1 extraction sequence diagram 43-46 4.3.2 to generate test cases 46-48 4.3.3 pretreatment with static analysis 48-49 the of 4.3.4 generate test piles 49 4.3.5 Instrumentation 49-50 4.3.6 generate test drive 50-51 4.4 test environment visualization 51-52 4.5 Summary 52-53 5 Summary and Outlook 53-55 5.1 summarizes 53 5.2 Looking 53-55 Acknowledgements 55-56 the References 56-61 the Appendix (published catalog) during the study for a degree

Related dissertations

  1. Design and implementation of hotel management system based on UML
  2. Design and Implementation of Ji’nan Waterconservancy Bureau Covers Security Information System
    MaShiTao ·Shandong University ·2013 ·Master's thesis
  3. Analysis and design of student information management system
    WuShaSha ·Yunnan University ·2013 ·Master's thesis
  4. The Design and Implementation of Member Management System for Technical Title Evaluation Committee of WeiFang City
    LiQing ·Shandong University ·2013 ·Master's thesis
  5. The Analysis and Implementation of Laboratory Equipment Management System Based on WEB of Zhangjiakou Education College
    WangXiaoZheng ·Shandong University ·2013 ·Master's thesis
  6. County-Township-Village Operation Management Information System for the Rural Work Base on C/S Architecture
    ZhangXiaoHua ·Tianjin University ·2012 ·Master's thesis
  7. The Design and Implementation of an Network Teaching Platform in a Vocational Technical College
    WangNing ·Jilin University ·2012 ·Master's thesis
  8. Air Disinfector Design Based on Rhapsody
    ZhangZhiWei ·Jilin University ·2012 ·Master's thesis
  9. Research on Business Process Modeling with Uml and Implementation of Development Tools’ Integration Based on Eclipse
  10. Study and Application of Distance Education Platform Based on UML
  11. Catering Management System Design and Implementation Based on WEB
    ZhuBaoFeng ·Zhengzhou University ·2013 ·Master's thesis
  12. Based on the Web Army Personnel Information Management System Design and Implementation
  13. Design and Implementation of Dynamic Monitoring System for Budget Enforcement Based on J2EE
    WangZhiJun ·Xiamen University ·2014 ·Master's thesis
  14. The Design and Implementation of Statistical Data Collection and Process System of Dujiangyan Statistical Bureau
  15. Software Design for Control System of Electro-hydraulic Three-axis Flight Simulator
    KongJie ·Harbin Institute of Technology ·2012 ·Master's thesis
  16. The Design and Implementation of Website Construction Based on OpenCms Technology
  17. Study on conversion and UML testing and model based on AADL
    LiuBo ·Shaanxi Normal University ·2013 ·Master's thesis
  18. Analysis of Design and Implementation of B2C E-business Store System
  19. Designing and Implementing for Guizhou Huaxi Guest House Information Management System
  20. Design and implementation of the Qilu Petrochemical Industries Co bidding management system