Research on Software Test Case Automatic Generation Based on UML Statecharts

Author
ZhangBaoGuo
Advisor
ZouBeiZuo
School
Hunan University
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2004
Downloads
248
Citations
4

Request the full text

Abstract

With the development of all kinds of large software systems, the number of errors resulted from them have also increased. So it is necessary to explore some methods to inspect these errors, which are called as software test. And software test plays a very important role in reducing the cost of software development, and it is also a key part in Software Engineering. Especially in some software systems with a lot of human-machine interactive operations, such as CAD system, auto-generating test cases are one of the best methods to test themOur research is supported by a national 863 research project which is named as Research on Automatic Test Technology for 3-Dimensions CAD System (Project No. is 2002AA411510). And in this thesis we present our methods to generate software test cases automaticlly, which are based on UML Statecharts specification of software. And the operational semantics about UML Statecharts and its hierarchy structure are described in this thesis. Our main works are listed as follows,(1) On the bases of Li LiuYing’s definitions on operational semantics of UML Statecharts, we add some definitions on transition linked by junction pseudostate, and describe the transition definition as transition structure, which will make it more suitable for software testing and the formal semantics, and these definitions are much easier to be expanded.(2) Based on structural definition of transition relationship, we present our methods used in testing compound transition linked by fork, join, junction, choice pseudostate etc. in this thesis.(3) Based on hierarchical structure of UML Statechart, a hierachical test cases generation method for UML Statechart according to its hierarchy is presented. Conflicted transitions in statues’ enabled transition set may influence test cases execution. Accordingly, a new method that inserting sub-sequence in test case is set forth to deal with this problem.(4) In order to satisfy testing requirements, state coverage criterion, transitioncoverage criterion, predicate coverage criterion, full predicate coverage criterion and predicate partition coverage criterion are defined. With these coverage criterions, algorithms for automatic generating test cases are brought forward. To assist test case generation, split tree algorithm for DNF formal is presented in the thesis.(5) Based on research work listed upon, the author implemented an automatic test cases generation system for UML Statecharts.

Table of contents

Summary 6-7 ABSTRACT 7-11 Chapter 1 Introduction 11-20 1.1 Introduction to Software Testing 11-13 1.1.1 What is software testing 11 1.1.2 software testing technology 11-13 the 1.1.3 test data selection criteria 13 < br /> 1.2 issues raised as well as domestic and foreign research status 13-18 1.2.1 issues raised 13-15 1.2.2 subject sources 15 -16 1.2.3 research status 16-18 1.3 In this paper, the work done 18-19 the 1.3.1 this article main research content and Features 18-19 1.3.2 The paper is structured arrangements 19 summary in 19-20 Chapter 2 the UML Statechart Syntax its level semantics 20-33 2.1 UML Profile 20 2.2 UML Statechart About the 20-24 2.3 UML a Statechart-level model 24-32 2.3.1 state (State) 24-26 the 2.3.2 transition relation (Transition) 26-30 2.3.3 formalization, operational semantics (Formal Operational Semantics) 30-32 Summary 32-33 Chapter 3 the UML Statechart test case generation method 33-54 3.1 UML Statechart test the 33-39 3.1.1 UML the Statechart-level state machine malfunction 33 3.1.2 UML the Statechart diagram migration relationship test method 33-36 < br /> 3.1.3 UML Statechart diagram test case generation method 36-39 3.2 UML Statechart diagram test criteria and test case generation algorithm nbsp to; 39-52 3.2. 1 state coverage criteria 40-42 the 3.2.2 transition relation coverage criteria are found; 42-43 3.2.3 transition relation predicate coverage criteria 43-45 3.2.4 transition relation predicate coverage criteria the 45-47 3.2.5 migration relationship divided coverage criterion the 47-52 3.3 test criteria test and evaluation 52-53 Summary the demo 53-54 Chapter 4 System Design and Implementation 54-61 4.1 system modules 54 - 59 4.1.1 model read module 54-55 4.1.2 automata module 55-57 4.1.3 predicate parsing module 57-58 4.1.4 test cases automatically generated module 58-59 4.2 system interface, and instructions for use 59-60 Summary 60 - 61 conclusion 61-63 Reference 63-67 Acknowledgements 67-69 Appendix A degree during the complete papers and to participate in the project 69-71 Appendix B event monitoring predicate expression syntax paradigm 71-72

Related dissertations

  1. The Automation Generation of Case Based Simulated Annealing Genetic Algorithm
    LeZuoXi ·Wuhan University of Technology ·2005 ·Master's thesis
  2. Corporate Culture Structure
    ZhangHaiFeng ·Shanxi University of Finance ·2014 ·Master's thesis
  3. Research and design of on-board control universal testing platform software
  4. Design and Implementation of Automated Test Case Generator
  5. The Design and Implementation of Public Client Business System of Internet Bank Based on J2EE
    XuYingJun ·Tianjin University ·2011 ·Master's thesis
  6. Shandong Unicom Online Self-service Research and Design
    LiWeiXia ·Shandong University ·2013 ·Master's thesis
  7. Mao Zedong to promote Chinese by hierarchical society to the equality of the research of social transformation
    ZhuZuo ·Southwest Petroleum University ·2013 ·Master's thesis
  8. The Phonetic Research of Qin'an Dialect
    WuYinXia ·Northwest Normal University ·2013 ·Master's thesis
  9. Chinese Proper Name System and the Hierarchy Distribution in Lexical System
    LvChangFeng ·Nankai University ·2012 ·Doctoral dissertation
  10. Choice in Dilemma
    ZhaoDan ·Hebei Normal ·2013 ·Master's thesis
  11. Port-user Supply Chain Coordination: a Bi-level Programming Approach
    BaiYaNan ·Yanshan University ·2013 ·Master's thesis
  12. The Waterlogging Prevention and Control Technology Research of Small Bridge and Culvert
    GaoMingYong ·Chang'an University ·2013 ·Master's thesis
  13. Research and Implementation on the Data Standardization of Guangzhou Urban Rail Network
    LiMeiLing ·South China University of Technology ·2013 ·Master's thesis
  14. Methods of Measuring the Spatial Information Content of a Map
    LiuHuiMin ·Central South University ·2012 ·Doctoral dissertation
  15. Design and Analysis of Algorithms for Two Kinds of Parallel Machine Scheduling Problems
    ZhangQingHui ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  16. A Study of the Newspaper Hierarchy and the New Visualization
    WuMei ·Guangxi University ·2013 ·Master's thesis
  17. Web Based Metwork-Security Tool Testing and Analysis
  18. The Diagnosis and Treatment Assistant System of Visual Function Based on Expert Knowledge
    YuDong ·Zhejiang University of Technology ·2008 ·Master's thesis
  19. Software development for a launch vehicle
  20. Research on Software Automatic Testing and Its Application in Online Bank System
    AiWen ·Jilin University ·2012 ·Master's thesis