A Method of Test Data Generation Based on UML Sequence Diagrams

Author
YangZuo
Advisor
HuangZhiQiu
School
Nanjing University of Aeronautics and Astronautics
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2008
Downloads
83
Citations
0

Request the full text

Abstract

Software testing is an important technique which assures the quality of software product, and generating valid test data is one of the key factors which guarantees the quality of software testing.With the development of model-based test, generating test data based on UML sequence diagrams is vital for integrate test to be feasible and efficient. By the research of UML2.0 sequence diagram and the path-wise test data generation, we propose a method of test data generation based on UML sequence diagrams.Firstly, in this dissertation we analyze control-flow of UML2.0 sequence diagrams(SD). It is not straight-forward to derive control-flow from SD, because of UML2.0 activity diagrams(AD) are good at describing SD control-flow feature, we select it to prompt a SD control-flow model:SDCFG, and define the consistency mapping rules between SD and SDCFG.Secondly, UML class diagrams, OCL constraints and SDCFG is combined to define a CIG model and propose rules to construct CIG. CIG pathes are generated from CIG and coverage criterias. A CIG path contains an interaction process and object constraints, we generate test constraints for CIG paths and discuss how to remove redundant constraints due to OCL navigation expressions.Finally, we divide test constraints into persistent constraints and variable constraints, solves persistent constraints according to OCL expression semantics, and adopts constraint processing and boundary value analysis to solve variable constraints. Persistent constraint solutions are combined with variable constraint solutions to generate test data.Throughout this paper, we use an example of ATM to illustrate the test data generation method we proposed.

Table of contents

Abstract 4-5 ABSTRACT 5-12 The first chapter 12-16 1.1 research background 12-13 1.2 research status 13-15 1.2.1 UML-based software testing 13-14 1.2.2 path-oriented test data generation 14-15 1.3 thesis work and organizational structure 15-16 chapter sequence diagram test data generation method 16-25 2.1 UML sequence diagram 16-21 2.1.1 UML2.0 sequence diagram 16-19 2.1.2 sequence diagram interaction 19-21 2.2 UML class diagrams and OCL 21-22 2.3 sequence diagram based test data generation process 22-24 2.3.1 right sequence and class diagrams convention 22-23 2.3.2 test data generation process 23-24 2.4 Summary 24-25 chapter sequence diagram control flow analysis 25-41 3.1 sequence diagram control flow analysis, based 25-28 3.1.1 control flow analysis status 25 3.1.2 UML2.0 sequence diagram control flow characteristics 25-28 3.2 sequence diagram of the control flow model 28-33 3.2.1 concurrency control flow graph (CCFG) 28-30 3.2.2 UML sequence diagram control flow graph (SDCFG) 30-33 3.3 sequence diagrams to SDCFG graph transformation rules 33-38 3.4 Case Study 38-40 3.5 Summary 40-41 Chapter IV test constraint generation 41-58 4.1 UML class diagram OCL constraints analysis 41-43 4.1.1 invariant constraint 41-42 4.1.2 Front, Rear constraint 42-43 4.2 class diagrams and sequence diagrams integrated information model 43-48 4.2.1 CIG Figure 44-45 4.2.2 CIG graph construction rules 45-48 4.3 Test constraint generation 48-52 4.3.1 build CIG path 48-49 4.3.2 generating test constraints 49-51 4.3.3 Normalization navigation path 51-52 4.4 Case Study 52-57 4.5 Chapter Summary 57-58 chapter test constraint solving 58-68 5.1 Test constraint solving process 58-59 5.2 fixed constraint solving 59-61 5.3 Variable Constraint Solving 61-66 5.3.1 using constraint solving method 62-64 5.3.2 using boundary value analysis 64-66 5.4 Fixed and variable binding constraints Xie Xie combination 66-67 5.5 Chapter Summary 67-68 Chapter VI Conclusion 68-70 6.1 paper summarizes 68-69 6.2 further work 69-70 References 70-75 Thanks 75-76 during the study period of research 76-77 Appendix 77-81

Related dissertations

  1. Research on Path-oriented Test Data Generation
    WangShiTao ·Hunan University ·2013 ·Master's thesis
  2. Theories and Methods of Evolutionary Generation of Test Data for Path Coverage
    ZhangYan ·China University of Mining and Technology ·2012 ·Doctoral dissertation
  3. Research on Test Data Automatic Generation
    ShiLiang ·Southeast University ·2006 ·Doctoral dissertation
  4. Research of Test Data Generation Based on Evolutionary Testing
  5. Theory of Evolutionary Generation of Test Data for Complex Software and Applications
    YaoXiangJuan ·China University of Mining and Technology ·2011 ·Doctoral dissertation
  6. Test Data Generation Using Annealing Immune Genetic Algorithm
    XuXiuMei ·Beijing Jiaotong University ·2008 ·Master's thesis
  7. And the realization of software testing reuse management subsystem design
  8. Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
    XiongLiPing ·Hunan University ·2013 ·Master's thesis
  9. Research on software testing technology based on complex network theory
  10. Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
    FuLiYu ·Shanghai Jiaotong University ·2013 ·Master's thesis
  11. The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
    YaoZuo ·Harbin University of Commerce ·2013 ·Master's thesis
  12. Research of Software Testing Method Based on Cloud Computing
  13. Research on Process Improvement in Y Co. Based on CMM
    FengFei ·China Academy of Railway Sciences ·2013 ·Master's thesis
  14. Method Research and System Development of Software Automatic Testing
    LiangYueYuan ·Chang'an University ·2013 ·Master's thesis
  15. Research and implementation of TaaS test management services
    YangDan ·Northwestern University ·2013 ·Master's thesis
  16. The Design and Implementation of Banking Software Testing Based on Bugfree
  17. Automatic Generation of Test Data Based on Heuristic Search Algorithm
    LiuJia ·Tianjin University ·2012 ·Master's thesis
  18. Research on Combinatorial Testing Technique and Its Application
    ChenXiang ·Nanjing University ·2011 ·Doctoral dissertation
  19. Study and Practice of Independent Software Testing and Validation Based on RTCA DO-178B
  20. A Study to Improve CFL Based on TheDiscovery of Coincidental Correctness Test Cases
    FengLuLu ·Zhejiang Sci-Tech University ·2014 ·Master's thesis