Automatic Test Cases Generation Based on UML State Diagrams

Author
MiHaiRong
Advisor
DuanZhenHua
School
Xi'an University of Electronic Science and Technology
Major
Computer Software and Theory
Classification
TP311.53 Software Maintenance
Degree
Master's thesis
Year
2011
Downloads
62
Citations
0

Request the full text

Abstract

Software testing is more and more important in the process of softwaredevelopments, which penetrates the whole life cycle of software definition anddevelopment. And the key point in software testing is the design of test cases, whichmainly depends on the software requirements and designs and should satisfy theadequacy criteria of testing. The research in this thesis belongs to the category ofsoftware testing based on specification description.Test case design based on specification is a new technique, especially Modelbased Testing, to a certain extend is better than the traditional testing techniques. Thisthesis mainly studies the test case generation techniques based on UML State Diagrams.Firstly, the UML State Diagrams are transformed into Petri nets which have formalsemantics and mature analysis technology and are checked by some Petri net tools.Then, some graph techniques and the alternating variable methods are applied togenerate test cases, including test paths and test data. At last, this thesis designs andrealizes a transform tool and test cases generation tool for UML State Diagrams.

Table of contents

Summary 3-4 Abstract 4-7 first chapter 7-13 1.1 Background 7-8 1.2 Research Status Status 1.2.1 study abroad 8-10 8-9 1.2.2 the main problem exists 9-10 1.3 the main content of this paper 10-11 1.4 thesis structure 11-13 chapter related technical theory 13-21 <br / > 2.1 Introduction to model -based test 13-17 2.1.1 What is a model -based test 13 2.1.2 concept model 13-14 2.1.3 the main test model 14-16 2.1.4 advantages of model -based testing and problems 16-17 2.2 unified Modeling Language (UML) 17-20 2.2.1 UML view in Fig 17-19 advantage 2.2.2 UML model 19-20 2.3 Summary 20-21 Chapter UML state diagrams to Petri nets (P / T Network ) conversion 21-43 3.1 UML state diagrams 21 -24 3.2 Petri net theory 24-27 3.2.1 Petri nets definitions 24-25 3.2.2 of library / transition nets (P / T Network ) important properties of 25-26 3.2.3 Petri nets 26-27 3.3 state diagram to convert Petri nets 27-39 3.3.1 UML state diagrams to Petri net mapping rules 27-32 3.3.2 UML state diagrams to Petri nets conversion algorithm 32-34 3.3.3 model Conversion tool design and Implementation 34-39 3.4 examples of application 39-43 fourth chapter based on UML state diagram automatically generates test cases 43-57 4.1 coverage criteria 43-45 4.2 test 45-47 4.2.1 test role in software testing 45-46 4.2.2 test case design 46-47 4.3 test cases based on UML state diagram generation method 47-53 4.3.1 test path generation nbsp 48-51 4.3.2 generated test data ; 51-53 4.4 test case generation tool design and implementation of 53-55 <br / > 4.5 Chapter Summary 55-57 design and Implementation Chapter Uml_mbt testing tool for 57-63 5.1 Uml_mbt testing tool overall design 57-58 implementation 5.2 Uml_mbt testing tool for 58-62 5.3 summary 62-63 Chapter VI summary and Outlook 63-65 6.1 This work summarizes 63-64 6.2 Prospects 64-65 Thanks 65-67 References 67 -71 research 71-72

Related dissertations

  1. An Automatic Test Cases Generation Method Based on UML Activity Diagrams
  2. The Procurement Process Optimization of L Group Hotel in Preparatory Period
    XuSongLi ·Xiamen University ·2014 ·Master's thesis
  3. Design of Liveness-enforcing Supervisor and Enumeration of Reachable States for Petri Nets
  4. A Method Based on Workflow to Detect the Radio Frequency Identification’s Error
  5. Research and design of lightweight workflow engine
    LiuMuChun ·Shaanxi Normal University ·2013 ·Master's thesis
  6. Research on Emergency Management Flow of Oil Industry Based on Petri Net
    HanNa ·Dalian Polytechnic University ·2012 ·Master's thesis
  7. The Research on Business Process Model Based on Object-oriented Resources Petri-Nets
    TangYingYing ·Harbin Institute of Technology ·2012 ·Master's thesis
  8. Service Composition Requirement Model Based on Environment Ontology and Petri Net and Its Key Technology Reaserch
    ChenZhiJuan ·Zhejiang Normal University ·2013 ·Master's thesis
  9. The Research on the Scheduling and Execution Engine for Web Service Composition Based on Petri Net
    XiangDongMing ·University of Jinan ·2013 ·Master's thesis
  10. Research on the Method of Credible Web Service Composition Based on Petri Net
  11. Panoramic Information Modeling and Model Application of Power Transmission and Transformation Equipments
    HuangJingYu ·Hunan University ·2013 ·Master's thesis
  12. A Research on the Fault Diagnosis of Power Grid Based on the High-Level Petri Net
    HuangJun ·Anhui University of Engineering ·2013 ·Master's thesis
  13. Research on the Online Intelligent Dispatching and Aided Decision Making System for the Power Grid
    LiuMingChao ·Shandong University ·2013 ·Master's thesis
  14. Research and Implementation of Fault Diagnosis for Distribution Network
    ZhaoYuanPeng ·Xi'an University of Petroleum ·2013 ·Master's thesis
  15. Research on Production Logistics Simulation of J Company Based on Flexsim Platform
    ShiZuoQian ·Xiamen University ·2014 ·Master's thesis
  16. Optimization and Simulation of Foshan Sanshui Port Operation Process
    DanSuDan ·South China University of Technology ·2013 ·Master's thesis
  17. Safety Analysis of Fully Automatic Operation System Based on Petri Net
    SunJingWei ·Beijing Jiaotong University ·2014 ·Master's thesis
  18. Research on Stacker Process Model Base on Petri Net
  19. Research on Adaptive Scheduling for Hybrid Flow Shop Problem in the Internet of Manufacturing Things
    WangMeiLin ·Guangdong University of Technology ·2013 ·Doctoral dissertation
  20. On Intrinsically Live Structure and Deadlock Control of Generalized Petri Nets Modeling Flexible Manufacturing Systems