Research on Specification and Slicing in Generating Test Cases for Component-Based System

Author
LiFuXin
Advisor
FuHeGang
School
Chongqing University
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2007
Downloads
90
Citations
0

Request the full text

Abstract

With component-based software technology widely used in software system development, the guarantee of system quality become more and more important, this put the new challenge to software test. Some characteristics of component-based system make it hardly to be test by traditional way. It is in urgent to find some new testing methods to fitting for the component-based software system.In the software testing, test case design and generation is the key and challenging problem, the core of it is to develop effective test cases based on exact software specifications. At present, most test cases are written by testers. Therefore, the quality of test cases completely depends on tester’capacity. On this point, it is difficult to ensure the quality of software testing. Furthermore, it will influence the quality of software product. Therefore, it is significant in application that how to generate test cases automatically.The generation test case based on specification, comparing with the other methods of generation test case, is propitious to improve the standardization and automation and is of advantage to generate test case of component-based system. The activity diagram of UML, as one of the specification, has two characters and which is visualization and formalization. So the generation test case based on specification is more suitable method than the others. This thesis analyzes the technology of slicing and activity diagram of UML, and research on the characters of component-based system. At last, the method for generation integration test case is brought up based on slicing and activity diagram of UML in this paper. Our main works list as follows:(1) First, by analyzing the character of component-based system, the hierarchical model is brought up to component-based system based on slicing and activity diagram of UML. Described method dependence、component dependence and system dependence, the model could describe relation dependence between component and other component.(2) Because the important step of generation test case automatically is that the structure model is built in component-based system. The thesis expands the description of activity diagram of UML, which is not completely formalize description, and defined the component-based system by formalization.(3) We propose a forward slicing algorithm for the system dependence model of a component-based system, this algorithm improve that the slicing is not as precise as possible in the traditional slicing algorithm.(4) We give a test tool model based on the methods we discussed in this paper and some suggestions on software testing process improvement. We also have laid the foundation for the further tool development.(5) Implement a generate test cases automatically tool, and we experiment with several typical component-based systems, and then these systems are tested by test cases which are generated by the tool. Comparing with the traditional methods, our method is proved that it is more feasible and effective with the result of experimentation.

Table of contents

Abstract 3-4 ABSTRACT 4-9 1 Introduction 9-14 1.1 Introduction 9-10 1.2 Research purpose and significance 10-11 1.3 the research and development status 11-12 1.4 paper tissue 12-13 1.5 This chapter Summary 13-14 2 based on the Statute of the software test case analysis 14-19 2.1 based on formal specification of the software testing 14-15 2.2 the Statute based testing techniques and code-based testing techniques 15-17 2.3 test requirements and test cases 17-18 2.4 software test cases automatically generated 18 2.5 This chapter Summary 18-19 3-slice technology 19-28 slice 3.1 Technical Overview 19-20 3.2 program slicing technology applications Overview 20-21 3.2.1 regression testing 20 3.2.2 reverse engineering 20 3.2.3 software maintenance 20-21 3.2.4 program debugging 21 3.3 program slicing definition 21-22 3.4 program slicing classification 22-23 3.4.1 static slicing and dynamic slicing 22 3.4.2 before to slice to slice and after 22-23 process within 3.4.3 slice and process slice 23 3.5 program slicing criteria 23-24 3.6 program slicing algorithm 24-27 3.6.1 static slicing algorithm 24-26 3.6.2 dynamic slicing algorithm 26-27 3.7 This chapter Summary 27-28 4 component system test cases based on the activity diagram generation 28-42 4.1 test cases automatically generated 28 4.2 UML activity diagram 28-32 4.2.1 the UML Profile 28-29 4.2.2 UML activity diagrams Profile 29-30 The basic elements of 4.2.3 UML activity diagram 30-32 4.3 UML activity diagram formal description 32-33 4.4 test case coverage criteria and parallel processing 33-35 4.4.1 test adequacy 33-34 4.4.2 activity diagram-based test case coverage criteria 34 4.4.3 Activity Diagram parallel processing 34-35 the the 4.5 test scenarios extraction and test cases generated 35-41 4.5.1 test case generation process model 35-38 4.5.2 test scenario generation algorithm 38-40 4.5.3 test case extraction algorithm 40-41 4.6 This chapter Summary 41-42 5 selected slice-based component system test cases 42-50 5.1 component system testing V model 42-44 5.2 component system test case generation and selection model 44-45 5.3 slice components regression test selection 45-49 5.3.1 slicing technology dependency graph expansion of UML activity diagram 45-47 5.3.2 on component systems slices 47 5.3.3 the component regression testing, test cases, select 47-49 5.4 This chapter Summary 49-50 6 experiments and analysis 50-58 6.1 system environment 50 6.2 simulation tools to achieve 50-57 6.2.1 System Architecture 50-52 6.2.2 tool main flow 52-53 6.2.3 simulation tools to achieve 53-57 6.3 This chapter Summary 57-58 7 summarizes 58-59 Acknowledgements 59-60 the References 60-63 Appendix 63

Related dissertations

  1. Research on the Impact of Human Resource Management on Employees Performance
  2. Design and Implementation of Automated Test Case Generator
  3. Design and Implementation of Electricity Management System in Dongying Estuary Area Power Supply Company
  4. Research and Implementation of Automated Testing Platform Based on Andorid
  5. The Research and Design of Software Component Testing Framework Based on Date-driver
    PengShunShun ·Shenyang Normal ·2014 ·Master's thesis
  6. Technology Discussion of TD-LTE SAE
    LiDongHua ·South China University of Technology ·2013 ·Master's thesis
  7. Research and Realization of Interoperability Test Testing Based on TTCN
    XuQinDong ·Chinese Geology University (Beijing) ·2014 ·Master's thesis
  8. The Study on the Expansion of Judgment of Test Case
  9. Route Control Process Oriented Highly Efficient Testing Method of Railway Signal Interlocking Software
    ShiYanMin ·Beijing Jiaotong University ·2014 ·Master's thesis
  10. Scenario-based Test Cases Generation for Onboard Subsystem
    ZhaoWeiHui ·Beijing Jiaotong University ·2014 ·Master's thesis
  11. Design and application of component transmission imaging spectrometer
  12. Research on Script-driven Based RBC Functional Testing Method
    TangHuiDong ·Beijing Jiaotong University ·2012 ·Master's thesis
  13. 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
  14. Research on Web Service Testing Model and Testing Approach Based on Agent
    LiuShengLan ·Hunan University ·2011 ·Master's thesis
  15. Web Based Metwork-Security Tool Testing and Analysis
  16. Research on Model Driven Penetration Test for SQL Injection Vulnerability in Web Applications
    TianWei ·Nankai University ·2012 ·Doctoral dissertation
  17. Formal Research of UML Behavior Diagram Based on Description Logic
    RongXianQiu ·Lanzhou University of Technology ·2012 ·Master's thesis
  18. Research on Embedded Systems Simulation Platform Based on SPARC
    AiShanBin ·Dalian University of Technology ·2013 ·Master's thesis
  19. The Design and Implementation of Software Auto Test System Based on Enodeb Control Plane
  20. Research of Public Meteorological Service Platform Test Case Generation Based on Rough Set