On Software Architecture-based Test Cases Generation
- Author
- YeJunMin
- Advisor
- WangZhenYu
- School
- Harbin Engineering University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Doctoral dissertation
- Year
- 2005
- Downloads
- 870
- Citations
- 5
- Software architecture
- Architecture description language
- timed state process
- Operational Semantics
- Distributed Real-Time System
- Test Case
Abstract
Software architecture techniques have increasingly been used in research and industry since 1990s. In fact, software architectural design is of vital importance to the development of software system. The importance embodies not only in software development, but also in the fact that they can guide software testing. Therefore, it is necessary to study the specification-based software architecture testing techniques in order to improve the quality of software architectural design and guide software testing. While software architecture has raised many challenging questions for testing, relatively little work has been done to address how software architecture should be tested. Undoubtedly, the ultimate successful application of software architecture techniques largely depends on whether or not effective testing techniques suitable for software architecture are available.The core of researches on the testing techniques of the specification-based software architecture is to generate test cases automatically. To do that, it is necessary to select or design an appropriate software architecture description language to describe Implementation Under Test (IUT) at software architecture level from which to look for appropriate viewpoints, test criteria and test cases generation algorithms.Our research work starts with software test viewpoints to achieve the goal of testing software architecture from multi-viewpoints. In the first part of this dissertation, we propose a multi-viewpoint demand concerning software architectural basic model, namely, structural viewpoint and behavioural viewpoint and their corresponding models. We also discuss the testability of the models. Based on the information from structural model, we can decide weather. the links between software architectural elements are appropriate or not, interfaces match or not, we can also test the interaction paths between software architectural elements; based on the process algebra specifications of behavioural model, we can test the behaviours of software architectural elements and the interactions between elements.In the second part of this research work, we propose and design a distributed real-time system architecture description language (DRTSADL) in which a timed process algebra TSP (Timed State Processes) model is embedded. The operational semantics of TSP is also discussed to support behaviour description of distributed real-time system. On the basis of FSP (Finite State Processes), by means of amplification and deletion, TSP is defined. TSP mainly includes Constants Process, Action Prefix Process, Overtime Process, Reset Clock Process, Guarded Action Process, Non-determinant Choice Process, Send Process, Receive Process, Composite Process and Sequence Process. Compared with FSP, TSP can support communications between timed features and components/processes. In this research work, we define Simple Component, Composite Component, Connector and Port. From the style of components and connectors, we discuss how to use DRTSADL to describe applied software architecture. By taking MMI (Man Machine Interface) of C~3I as an example, we give a general description of the MMI software architecture.In the third part of this research work, a method to generate test cases of a distributed real-time system is designed, which includes the following contents:(1) presenting a set of test criteria according to software architecture configuration information and defining their corresponding computational rules;(2) presenting, from structure viewpoint, corresponding test cases generation algorithm on the basis of configuration information of DRTSADL specification;(3) presenting an algorithm to generate distributed system test cases on the basis of DRTSADL specifications and asynchronous network distributed system model;(4) by using Timed Wp-algorithm of A.En-Nouaary, on the basis of DRTSADL specifications and a timed automata model, presenting an algorithm to generate real-time system test cases, with the termination of this algorithm being proved.In the fourth part of this research work, a DRTSADL-based test cases generation environment prototype is implemented to validate methods (2) and (4) mentioned above. The environment prototype supports the visual mode modelling and textual mode modelling of DRTSADL. This prototype generates test cases from structural and behavioural viewpoints according to the described IUT. Experiments with MMI indicate that the environment prototype is able to generate test cases according to the demands of users.
Table of contents
Abstract 5-7
Abstract 7-10
directory 10-14
illustrated catalog 14-16
form directory 16-17
Chapter 1 Introduction 17-31
1.1 Research Activity 17
1.2 software system structural test technology 17 -18
1.3 software architecture testing technology Research 18-28
1.3.1 software testing technology research course 18-22
1.3.2 of the software test analysis of the status of architecture 22-28
1.4 problems 28
1.5 research goals 28-29
1.6 of this paper work and organization arrangements 29-31
1.6.1 In this paper, 29
1.6.2 In this paper, relevant research projects 29
1.6.3 this article the organizational structure of 29-31
Chapter 2 Software Architecture test basis and research instance 31-63
2.1 software architecture test basis 31-57 < br /> 2.1.1 software architecture definition 31
2.1.2 test object 31
2.1.3 software architecture layer test coverage criteria 31 - 32
2.1.4 finite-state process (FSP) 32-34
2.1.5 notation system and timing label migration system (TLTS the) 34-35
2.1 operational semantics conclusions the a .6 S.Schneider part of TCSP process 35-41
2.1.7 2.1.8 model-based software architecture dependence analysis techniques 41-42
test technology base 42-43
2.1.9 configuration information test basis, 43-44
2.1.10 distributed system test basis 44-47
2.1.11 real-time system test basis 47-57
2.2 the MMI instance 57-63
Chapter 3 testability of software-based architecture model 63 -71
3.1 software architecture model 64
3.2 software system structure of the basic model 64-67
3.3 architecture design space concept 67-68
3.4 multiview software architecture model 68-69
3.5 software architecture description model for testability analysis 69-70
3.6 Summary 70-71
Chapter 4 TSP and the operational semantics model 71-81
4.1 Basic of TSP 71-76
4.1. 1 of TSP in the time model 71-72
4.1.2 an extension on the FSP 72-73
4.1.3 of TSP basis 73-74 <br / > 4.1.4 of TSP instance 74-76
4.2 TSP, the operational semantics 76
4.3 TSP's operational semantics 76-79
4.4 Summary 79-81
Chapter 5 DRTSADL architecture description language design research 81-95 <br to /> 5.1 DRTSADL architecture description language design ideas 81-82 < br /> 5.2 software architecture description 82-84 the
5.2.1 DRTSADL is the overall structure 82-83
5.2.2 software architecture schema 83
5.2.3 software architecture behavior description 83
5.2.4 configuration of the software architecture description 83-84
5.3 software architecture of the basic ingredients description 84-85
5.3.1 simple component description 84
5.3.2 composite member 84-85
5.3.3 connector 85
5.3.4 System structure style 85
5.4 the MMI description 85-93
5.4.1 the basic components of the MMI description 86 -90
5.4.2 the MMI configuration description 90
5.4.3 the overall structure of the MMI Description Framework 90-93
5.5 Summary 93 -95
6 test cases based on software architecture configuration information generation algorithm 95-109
6.1 to configure the behavior map and its instance description 95-97 <br / > 6.2 software architecture coverage criteria and the calculation rules 97-100
6.3 configuration information based on the architecture described in the test case generation algorithm 100-107
6.3.1 based system test case generation process of the structural configuration information . 100-101
6.3.2 Based on the configuration information of the test case generation 101-106
6.3.3 generated test cases based on configuration information Algorithm Analysis 106-107
6.4 experimental conditions 107-108
6.5 Summary 108-109
Chapter 7 based on the asynchronous network model distributed system test case generation . 109-117
7.1 generated test cases based on an asynchronous network model of distributed systems the idea 109-111
7.1.1 Distributed Systems test cases 109
7.1.2 Algorithm thinking 109-110
7.1.3 A simple example 110-111
7.2 to generate a distributed system test case algorithm 111-116,
7.2.1 basic algorithm 112
7.2.2 from DRTSADL specifications of the export process time diagram of PTG 112-113
7.2.3 based on logical time snapshot of the global state graph generation algorithm 113-116
7.2.4 test case generation is based on the global state 116
7.3 Summary 116-117
Chapter 8 DRTSADL-TSP behavioral model-based test case generation techniques 117-135
8.1 T-TIOA 117-118
8.2 T-TIOA description instance 118-127.
8.2.1 using the TIOA and DRTSADL-TSP describes the self-induction electric light 118-120
8.2.2 T-TIOA description Induction lamps 120-121
8.2.3 use DRTSADL-TSP describes the behavior of MMI 121-127
8.3 DRTSADL-TSP-based specifications described in test case generation 127-133
8.3.1 DRTSADL-TSP describes the conversion of T-TIOA description 127-128
8.3.2 from T-TIOA to build the grid automaton 128 -129
8.3.3 grid automaton transforms into a NTFSM 129
8.3.4 generated from NTFSM, test cases 129-131
8.3.5 DRTSADL -TSP test case generation algorithm complexity analysis 131
8.3.6 experimental conditions 131-133
8.4 Fault Model 133
8.5 Summary of 133-135
Chapter 9 test tools ADLTester design and achieve 135-141
9.1 ADLTester integrated environmental design principles 136
9.2 ADLTester system structural design 136-137
9.3 ADLTester user interface design 137-138
9.4 ADLTester the application 138-139
9.5 Summary 139-141
conclusions 141-145
1 In this paper main contribution 141-142
future research 142-145
Reference literature 145-155
published during the PhD thesis and the achievement of scientific research 155-157
thank 157-159
Appendix A DRTSADL language 159-163
Appendix B DRTSADL-TSP-based test case generation algorithm termination proof . 163-164
Related dissertations
- Theory and Method of Component Based Software Reliability Analysis
- Study on Formal Description of Software Architecture
- Research on Software Architectural Formalism Based on π Calculus
- XML-based distributed software architecture research
- Research on Aspect-Oriented Software Architecture Modeling
- Software architecture and its description preliminary study
- UML - based formal auxiliary object-oriented software test case generation technology
- Component-oriented software distribution management model
- The Design and Implementation of a Software Architecture Description Language CCJava
- A Design and Development Method of Software Architecture Based on .Net
- Research on Refinement of Architecture Description Language Based on B Method
- Research on the Impact of Human Resource Management on Employees Performance
- And the realization of software testing reuse management subsystem design
- Research on Architecture-Based Software Reliability Demonstration Testing Method
- Research on the Domain-oriented Software Architecture and Variability
- Research on Architectural Degeneration of Software System from Defect Analysis Perspective
- Design and Implementation of Automated Test Case Generator
- Design and Implementation of the Yunnan Arts University School of Music Office Automation System
- Design and Implementation of Electricity Management System in Dongying Estuary Area Power Supply Company
- Design and application of emergency response training platform software architecture