Cases Statute Z language test cases generation method

Author
LiuJinPeng
Advisor
WeiChangJiang
School
Qingdao University
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2008
Downloads
155
Citations
2

Request the full text

Abstract

Software testing is a very important phase in the lifecycle of software; it can impact the quality of the software greatly. To a large extent, adequate testing can guarantee the success of the software. Test cases generation, which is the key of software testing, will affect the quality and efficiency of testing. Generating test cases manually will spend a lot of effort and money, and the situation will be more serious when the development time is very limited. So, it is very important to research on the approach of generating test cases automatically. With the advantages of automation, test cases can be generated more quickly and precisely. As a result, the research on the method of generating test cases of high quality is quite valuable.Firstly, this article analyzed the research on this field, then, an efficient approach of generating test cases is proposed by the author. This article gives out the method of generating the formal specification written in Z notation from the use case specification. In order to describe the requirement of the system more clearly, the method of refining the use case specification is given out. To some extent, the refined use case specification can contribute more on the clarity. Based on the refined use case specification, the activity diagram is produced. After that, a method of abstracting the activity diagram is proposed to gain the directed graph and by traversing the graph all the use case scenarios can be generated. Then, the formal specification can be written according to the use case scenarios.Secondly, the approach of generating test cases from the formal specification is studied in this article. Test cases set are obtained from the formal specification and sequencing of the test cases is also studied in order to generate less test cases sequences that can cover the maximum use case scenarios. An extended test criterion called the maximum loop free efficient coverage criterion is introduced and the algorithm of generating test cases that conforms to this criterion is also given out. In order to verify the ability of detecting errors for the new criterion, a case study is completed and the result indicates that the new criterion is efficient on detecting errors in the complex predicates. Based on all the above, a framework of test cases generation tool is proposed.

Table of contents

Abstract 2-3 Abstract 3-6 Chapter Introduction 6-10 the a 1.1 research purposes and significance 6-7 1.2 research advances 7-8 1.3 main content and innovation 8-9 1.4 papers organizational structure 9-10 use case analysis techniques and formal methods of analysis 10-16 2.1 use case analysis technology 10-12 2.1.1 of the advantages and disadvantages of case analysis technique to analyze 11-12 2.2 Formal Methods 12-15 2.2.1 Z Language Introduction 12-14 2.2.2 formal methods advantages and disadvantages of 14-15 2.3 This chapter Summary 15-16 Chapter generate Z formal specification based on use cases Statute Description 16-31 3.1 Statute of refined use cases 16-19 3.2 activity diagram basic concepts 19 3.3 activity diagram to describe use cases 19-20 3.4 generates use case scenarios 20-23 of 3.4.1 on activities chart abstraction 20-21 3.4.2 Use Case Scenario generation algorithm 21-23 3.5 the writing the Z language forms Statute 23-28 3.6 Z-language editor and type checking tool 28-30 3.7 This chapter Summary 30-31 Chapter generated test cases based on formal specification 31-47 4.1 based on formal specification Description generate test cases 31-33 4.2 test cases to instantiate 33-34 4.3 test case sequence generated 34-37 4.3.1 Use Case Scenario acyclic the effective coverage sequence 35-36 4.3.2 case scenario Preconditions acyclic effective to cover sequence 36-37 4.4 Case Study 37-46 4.4.1 construct test cases sequence 37-44 4.4.2 results assessment 44-46 4.5 of this chapter Summary 46-47 The fifth chapter test cases automatically generated tool framework 47-49 5.1 overall framework 47 5.2 functional modules 47-48 5.3 This chapter Summary 48-49 Chapter Summary and Outlook 49-50 the References 50-53 studying for a degree during the research 53-54 Acknowledgements 54-55

Related dissertations

  1. Research into Information Streamline and Z Specification for Virtual Manufacturing Environments
    ZhaoXiaoFeng ·Shandong University ·2010 ·Doctoral dissertation
  2. Research on the Impact of Human Resource Management on Employees Performance
  3. Research on C/S Architectural Style Based on XYZ/SE
    LiuManXia ·Hunan University ·2013 ·Master's thesis
  4. Design and Implementation of Automated Test Case Generator
  5. Design and Implementation of Electricity Management System in Dongying Estuary Area Power Supply Company
  6. Research and Implementation of Automated Testing Platform Based on Andorid
  7. The Research and Design of Software Component Testing Framework Based on Date-driver
    PengShunShun ·Shenyang Normal ·2014 ·Master's thesis
  8. Technology Discussion of TD-LTE SAE
    LiDongHua ·South China University of Technology ·2013 ·Master's thesis
  9. Research and Realization of Interoperability Test Testing Based on TTCN
    XuQinDong ·Chinese Geology University (Beijing) ·2014 ·Master's thesis
  10. The Study on the Expansion of Judgment of Test Case
  11. Route Control Process Oriented Highly Efficient Testing Method of Railway Signal Interlocking Software
    ShiYanMin ·Beijing Jiaotong University ·2014 ·Master's thesis
  12. Scenario-based Test Cases Generation for Onboard Subsystem
    ZhaoWeiHui ·Beijing Jiaotong University ·2014 ·Master's thesis
  13. Research on Script-driven Based RBC Functional Testing Method
    TangHuiDong ·Beijing Jiaotong University ·2012 ·Master's thesis
  14. The Study to the Method of Test Cases and Test Sequence’s Generation Based on the RBC Test Platform
    ZhangXiaoQing ·Beijing Jiaotong University ·2012 ·Master's thesis
  15. Research on Web Service Testing Model and Testing Approach Based on Agent
    LiuShengLan ·Hunan University ·2011 ·Master's thesis
  16. Web Based Metwork-Security Tool Testing and Analysis
  17. The Formal Modeling of Network Protocols and Discovery of Attacks Based on Model Checking
    MengGuoZhu ·Tianjin University ·2012 ·Master's thesis
  18. Research on Model Driven Penetration Test for SQL Injection Vulnerability in Web Applications
    TianWei ·Nankai University ·2012 ·Doctoral dissertation
  19. Study on Theory and Applications of Security Protocols Formal Analysis
  20. Formal Research of UML Behavior Diagram Based on Description Logic
    RongXianQiu ·Lanzhou University of Technology ·2012 ·Master's thesis