Research on Testing Method for Parallel Software Based on Colored Petri Nets

Author
SunTao
Advisor
YeXinMing
School
Inner Mongolia University
Major
Applied Computer Technology
Classification
TP311.53 Software Maintenance
Degree
Doctoral dissertation
Year
2012
Downloads
9
Citations
0

Request the full text

Abstract

Nowadays, with rapid development in software industry, parallel software has become a kind of mainstream software, which plays an important role in the social production and life. Most of network based software systems, such as software systems based on cloud computing or internet of things, are always with parallel characteristics.It is very difficult to test parallel software, because parallel behaviors lead to exponential scale in the state space of the system model for parallel software. The manual testing method in industry cannot easily handle the parallel software testing, while other automatic testing method based on formal models in aca-demic also cannot deal with parallel software testing effectively, because of the state explosion problem. Some formal methods are not suitable for parallel software modeling, such as Finite State Machine (FSM). So classical testing method based on this kind of models may not apply to parallel software testing. Some formal methods, such as Colored Petri Net (CP-Nets) and Labeled Transi-tion System (LTS) are suitable for parallel software modeling. However, testing methods based on these models almost do not consider corresponding technol-ogy for testing those parallel behaviors, so we have to generate very large num-ber of test sequences, but with low testing coverage and high redundant test cases, which makes the parallel software testing non-effectively. Thus, this dis-sertation argues that to solve the testing problem of parallel software, two as-pects should be paid more attention. On one hand, we need a formal modeling language suitable for parallel behavior modeling and testing. On the other hand, effective testing method based on this formal language should be proposed, which has high coverage rate, low redundancy rate, and high efficiency for par-allel behaviors.In this dissertation, CP-nets is used for parallel software system modeling, and a complete solution for parallel software testing problem is presented. First, a model reduction algorithm based on trace equivalence is shown, which reduce the scale of state space without changing testing results, and testing efficiency is improved. Secondly, a test cases generation algorithm based on the linear be-havior sequence is presented, which generate test cases efficiently with full cov-erage for the linear behavior sequence. Finally, test sequence optimization algo-rithms are given, which remove redundancy sequences in test cases, and im-prove the test efficiency further. These algorithms constitute a complete test method for the parallel software testing. It effectively performs the parallel software testing, which has full coverage, without redundancy, and high effi-ciency.The main contributions of this dissertation are listed as follows:1. A CP-nets model reduction algorithm based on trace equivalence. First, the Testing-oriented CP-nets (ToCPN) model is defined. In the ToCPN model of software, the part of implementation under testing and the part of test simulation environment are separated, where port places and port transitions connecting these two parts are marked as observable places and observable tran-sitions. Secondly, the trace of an occurrence sequence is defined. In fact, it is a sequence of observable elements from the whole occurrence sequence. Finally, a parallel software model reduction algorithm based on the trace equivalence is proposed, where we need to remove places, transitions and other model ele-ments which meet the conditions, and whose functions are merged into the nearby model elements. It is proved that the reduced model and the original model are trace equivalence, also called external behaviors equivalence. The state space scale of the reduced model will be greatly decreased and the number of states and the number of occurrence sequences are reduced significantly. Therefore, the reduction algorithm improves the test efficiency without changing test results.2. A test cases generation algorithm for linear behavior sequence based on CP-nets model. First, the Linear Behavior Sequence (LBS) under testing is defined, which is used to describe behaviors under testing and the test purpose. Secondly, a test cases generation algorithm based on the LBS is shown. It could automatically generate test cases that cover LBS, using the state projection op-eration, the max and min state matching operation, and the sub sequence and the complete sequence search operation. Finally, we prove that test cases generated by this algorithm could fully cover occurrence sequences in the system model, which contain LBS. In this algorithm, we do not generate the whole state space of the model, but only locate the states before and after the LBS behaviors using the state projection operations, then search in this subgraphs between these states and generate testing sequences. The algorithm dose not search the other part of the state space besides whese subgraphs, because this part is not related to LBS. It ensures the algorithm has low redundancy rate and high efficiency. Our algorithm generated test cases with full coverage, low redundancy and high efficiency.3. Test sequences optimization algorithms for redundancy sequences based on CP-nets model. When LBS behavior appeared in the parallel structure with three-way and above, or the system contains many internal behaviors, our test cases generation algorithm based on LBS will generate many redundant test sequences and internal behavior information. The more of parallel structure and the more of internal behaviors, the redundancy rate is higher. To deal with these problems, two test sequences optimization algorithms for redundancy sequences are proposed. First, the test sequence optimization algorithm for multiple ways parallel behaviors focuses on the state space subgraphes gained from projection operation, and searches sequences based on firing behaviors of LBS. It could remove redundancy sequences in multiple ways parallel behaviors. Second, the test sequence optimization algorithm for internal behaviors extracts observable behaviors for test sequences, and deletes similar sequences after extraction. It could remove the redundant sequences and internal behavior information in se-quences caused by internal behaviors. After performing two optimization algo-rithms, test cases still keep the complete coverage for LBS, but without redun-dancy, so the testing efficiency is improved. At the same time, the test sequence only contains input/output behaviors and no internal behavior, which is more ef-ficient to the practical testing execution.

Table of contents

Summary 4-7 ABSTRACT 7-11 directory 11-13 LIST 13-15 Table directory 15-16 acronyms directory 16-17 Chapter 1 Introduction 17-25 1.1 dissertation research significance 17-21 1.1.1 confirm the correctness of parallel software problem 17 1.1.2 model -based software testing technology to solve the problem of software to confirm the correctness of the main technical 17-18 1.1.3 colored Petri net is an important model to describe the behavior of parallel software 18-19 1.1.4 study has important significance nbsp software testing method based on parallel colored Petri net model ; 19-21 1.2 thesis contribution 21-23 1.3 thesis organization 23-25 ?? research outlined in Chapter 2 25-35 2.1 parallel research status of software testing technology 25-27 2.2 colored Petri Nets 27-31 2.3 Situation testing methods based on Petri nets research questions 31-33 2.4 article 33-34 2.5 Summary 34-35 Chapter 3 based on trace equivalent CP -nets model simplification algorithm proposed 35-63 3.1 issues 35-37 3.2 based on trace equivalent CP-nets model simplification algorithm and its equivalence prove 37-51 3.2.1 CP-nets and related definitions extensions review this chapter 37-41 3.2.2 trace -based equivalent CP-nets modeling reduction algorithm 41-46 3.2.3 simplification Algorithms trace equivalence proof 46-51 3.3 model simplification algorithm simplification effect analysis 51-58 3.3.1 model simplification algorithm simplification effect analysis and sample 51-55 3.3.2 applicability of model simplification algorithm model fragments in different structures simplification and effect analysis 55-57 3.3.3 model simplification algorithm simplification effectiveness analysis concluded 57-58 3.4 Case Study : BT software simplification instance 58-60 3.5 Summary 60-63 Chapter 4 test cases to be tested against the behavior of a linear sequence generation algorithm 63-89 4.1 issues raised 63-64 4.2 test sequence generation algorithm prior knowledge 64-73 4.3 generation algorithm based on their coverage test cases to be tested to prove nbsp linear sequence of behavior ; 73-82 4.3.1 behavior of a linear sequence of test cases based on the test generation algorithm described 73-76 4.3.2 behavior of a linear sequence of test cases based on the test generation algorithm proof of coverage 76-79 4.3.3 test case generation algorithm behavior tested the efficiency of a linear sequence analysis 79-82 4.4 Case Study : BT software testing examples of cases generated 82-87 4.5 Summary 87-89 Chapter 5 for the test sequence redundant sequence optimization algorithm 89-111 <br / > 5.1 issues raised 89-91 5.2 for multi-channel parallel behavior test sequence optimization algorithm 91-101 5.2.1 multi-channel parallel behavior test sequence redundancy I analyzed 91-95 5.2.2 test sequence for multiple concurrent redundant sequence optimization algorithms used in concept and operation of 95-98 5.2. 3 optimized for multiple concurrent test sequences redundant sequence algorithm description and application examples 98-101 5.3 for the internal behavior of the test sequence optimization algorithm 101-103 5.4 Case Study : BT software test sequence optimization instance 103-108 5.5 Summary 108-111 Chapter 6 Conclusion 111-115 6.1 This work summarizes 111-112 6.2 next research 112-115 References 115-125 Thanks 125 - 127 period of research and doctoral awards 127-128

Related dissertations

  1. Design and Implementation of Measuirng Instrument Detection System Based on ASP.NET
    ZhuLi ·Hunan University ·2013 ·Master's thesis
  2. Reliability Computing of Concurrent Software Based on Program Invariants
    ZhouHui ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  3. The Design and Verification of Configurable Host Port Interface on DSP64X
  4. Design and Implementation of Floating Arithmetic Unit in FT-Matrix DSP
  5. Research on Design and Fabrication of EUV Source Collector
    ZhuDongYuan ·Harbin Institute of Technology ·2012 ·Master's thesis
  6. Putonghua Training and Testing Survey and Research in Sichuan Multiethnic Areas
    LiuKai ·Sichuan Normal University ·2013 ·Master's thesis
  7. Research of Greenhouse-type Electric Tobacco Shearer
    LiuLi ·Shandong Agricultural University ·2013 ·Master's thesis
  8. The Design and Development of the Self-propelled Rice Seedling Combined Machine
    MengYuanYuan ·Ningxia University ·2014 ·Master's thesis
  9. Research on Testing System of Direct-drive Wind Turbine Generator
    ZhangXiaoShan ·Hunan University of Technology ·2013 ·Master's thesis
  10. Finite Element Analysis and Testing Research of Temperature Stress of Nuclear Reactor Plant Raft with Merge Concreting
    ZhangZhong ·Tianjin University ·2012 ·Doctoral dissertation
  11. Energy-saving Analysis and Study of the Electronics Industry
    LiuYingJun ·West China University ·2012 ·Master's thesis
  12. Detection and Reinforcement of a Station in Shenyang of the Reinforced Concrete Frame Structure
  13. Multi-domain Simulation and Optimization Design of Magnetorheological Brake
  14. Research and Application on the Simulation Testing and Verification Techniques in the Railway Signaling System
    WangDong ·Zhejiang University ·2014 ·Doctoral dissertation
  15. Study of the Establishment of Quality Management System the Aircraft Manufacturing Company
  16. Toric Lens Processing and Testing Technology Research
  17. Study on the Dynamics of the Large Centralized Driving Flip-flow Screen Surface
    DongHaiLin ·China University of Mining and Technology ·2013 ·Doctoral dissertation
  18. Study on Foxconn OEM Manufacture Test Improvement
    LiangGuoZuo ·Tianjin University ·2012 ·Master's thesis
  19. A Research on Implementing the Model of Qualification Management in Foxconn Server Testing Team
    LiuYiHong ·Jilin University ·2012 ·Master's thesis
  20. Research and design of automatic detection device of the dial indicator
    YinZhiGang ·Heilongjiang University ·2011 ·Master's thesis