UML Consistency Checking and Test Case Generation Based on Model Checking

Author
DuJie
Advisor
JiangGuoHua
School
Nanjing University of Aeronautics and Astronautics
Major
Computer Software and Theory
Classification
TP311.53 Software Maintenance
Degree
Master's thesis
Year
2012
Downloads
93
Citations
0

Request the full text

Abstract

Along with the application of computer software development, people propose higherrequirement of software quality and reliability. System modeling and software testing are usually usedto ensure them. Model checking, as a formal verification technique, has many advantages, such asautomation and providing counterexamples and so on. So this paper mainly studies the modelchecking used in checking the UML consistency and the automatic generation of test cases, so as toensure the software high reliability.UML is a visualized graphical modeling language with powerful ability and intuitionisticmeaning. However, there is existing a certain amount of information redundancy andcross-interleaving among models corresponding to each aspect of the resulted representation system,some unconsistency problems will possibly appear between UML models. This paper puts forward aconversion rule from sequence diagram and state diagram in UML2.0to SMV language, solving thesequence diagram characteristics of combination fragments and asynchronous message. The statediagram and sequence diagram are expressed as SMV language model and CTL temporal logic, andthen using model checking tool NuSMV checks the consistency. Finally, based on the above reaserchwork, this paper designs and develops a UML checking consistency tool.Software testing is a critical step to ensure software quality, and its core issue is the automatictest case generation. After researching a method of automatic generation of test cases based on modelchecking, this paper puts forward a fast generation algorithm based on binary tree to construct thetemporal logic. Combined with a test process of automatically generating test cases which is based onsoftware requirement and takes use of model checking, generate test cases to meet MC/DC coveragecriterion. Finally, this paper designs and realizes an automatic generation tool of test cases based onthe model checking. Combined with the avionics system, uses the existing tools, TestBed, to verifythe test cases validity and the coverage of test cases.

Table of contents

Summary 4-5 ABSTRACT 5-12 first chapter 12-16 1.1 Background and Significance 12 - 13 1.2 research status 13-14 1.3 dissertation research 14-15 1.4 thesis structure 15-16 <br / > The second chapter the theoretical background 16-28 2.1 model checking theory 16-17 2.1.1 model detection principle 16 2.1.2 model checking process 16-17 nbsp 2.1.3 Kripke structure ; 17 2.2 temporal logic 17-19 2.2.1 Computation Tree Temporal Logic CTL * 17-18 2.2.2 linear Temporal Logic LTL 18 2.2.3 branching temporal logic CTL 18-19 2.3 model checking tool NuSMV 19-22 2.3.1 NuSMV basic structure 19-21 2.3.2 NuSMV input language SMV 21-22 2.4 UML Overview 22-24 2.4.1 UML Profile 22 2.4.2 UML language architecture 22-24 2.4.3 UML model consistency 24 2.5 software testing 24-27 2.5.1 software testing methods 24-26 2.5.2 automatic generation of test cases method 26-27 2.6 Summary 27-28 Chapter UML sequence diagram and state diagram consistency test 28-49 3.1 UML modeling and model checking technology combined 28-29 3.2 UML state diagrams 29-34 3.2.1 state diagram describes 29-30 3.2.2 state diagram syntax 30-31 3.2.3 state diagram conversion 31-34 3.3 UML sequence diagrams 34-37 3.3.1 sequence diagram describes 34 3.3.2 sequence diagram syntax 34-35 3.3.3 sequence diagram conversion 35-37 <br / > 3.4 sequence diagrams and state diagrams of consistency test achieve 37-38 3.5 model checking tools 38-43 3.5.1 testing tool designed achieve 38-39 3.5.2 testing tools 39-43 3.6 examples of application 43-48 3.7 Summary 48-49 Chapter IV meet MC / DC criterion test case generation 49-73 4.1 to generate test cases using model checking approach 49-51 4.1.1 generate test cases using model checking principle 49-50 4.1.2 the main technical approaches 50-51 4.2 based on temporal logic structure MC / DC criterion method 51-57 4.2.1 MC / DC criteria 51-52 4.2.2 MC / DC criterion formal definition 52 4.2.3 MC / algorithm design nbsp DC criteria ; 52-55 4.2.4 algorithm analysis and verification 55-57 4.3 to generate test cases using model checking process 57 - 64 4.3.1 Requirements Specification based on formal modeling 57-59 4.3.2 according to MC / DC criterion construct sequential logic 59-60 4.3. 3 using model checking tools to verify 60-62 4.3.4 extracted from the counter-example test 62-64 4.4 tools to achieve automatic test case generation and verification 64-72 4.4.1 avionics system testing process 64-65 4.4.2 test case generation tool designed 65-66 4.4. 3 implementation and verification test case generation tool 66-70 4.4.4 execute test cases in TestBed in 70-72 4.5 Summary 72-73 Chapter summary and Outlook 73-75 5.1 Full Summary 73 5.2 future 73-75 references 75-79 Thanks 79-80 research and published during the school 's academic 80

Related dissertations

  1. Design and Implementation of Dynamic Monitoring System for Budget Enforcement Based on J2EE
    WangZhiJun ·Xiamen University ·2014 ·Master's thesis
  2. The Design and Implementation of Statistical Data Collection and Process System of Dujiangyan Statistical Bureau
  3. The Research of Image De-noising and Fusion Algorithms Based on Wavelet Transform
    ChenXuJun ·Wuhan University of Technology ·2013 ·Master's thesis
  4. Study on conversion and UML testing and model based on AADL
    LiuBo ·Shaanxi Normal University ·2013 ·Master's thesis
  5. Analysis of Design and Implementation of B2C E-business Store System
  6. Designing and Implementing for Guizhou Huaxi Guest House Information Management System
  7. Design and implementation of the Qilu Petrochemical Industries Co bidding management system
  8. Design and implementation of hotel management system based on UML
  9. Design and Implementation of Personnel Management System of University
    WangJianLong ·Shandong University ·2013 ·Master's thesis
  10. The Design and Implementation of Labor Resource Management and Employment Placement System for Somewhere
    WangFeng ·Shandong University ·2013 ·Master's thesis
  11. Design and Implement of Telematics System Service Center Subsystem
    WangHuaChen ·Northeastern University ·2013 ·Master's thesis
  12. The Design and Realization of Motor Vehicle Pre-registration System
    ZhangFuFeng ·Hebei University of Technology ·2013 ·Master's thesis
  13. Design and Implementation of Subjects Teaching Performance Monitoring and Analysis System
    SunQing ·Shanghai Jiaotong University ·2013 ·Master's thesis
  14. Design and Implementation of Ji’nan Waterconservancy Bureau Covers Security Information System
    MaShiTao ·Shandong University ·2013 ·Master's thesis
  15. Research on Trustworthiness of Resource Adaptability for Internetware
    XiaZuo ·Anhui University of Engineering ·2013 ·Master's thesis
  16. The architecture of B/S auto repair technical support system design and Implementation Based on
  17. Design and Implementation of Emergency Command System for Digitizing Prison Based on Contingency Plans
    LiChunLong ·Sun Yat-sen University ·2013 ·Master's thesis
  18. Design and Implementation of Chengdu Bank Credit Decision Support Information Systems
  19. Design and Implementation of Sichuan Province Security Technology Center PPE Examining Information Management System
  20. Based on B/S Mode of Tibetan and Qiang Style Shopping Site Design and Implementation