Research of Automated Generation of Test Oracles from Real-Time Specification
- Author
- WangZuo
- Advisor
- QiZhiChang
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP311.52 Software Development
- Degree
- Doctoral dissertation
- Year
- 2005
- Downloads
- 181
- Citations
- 1
Abstract
Real-time systems have been widely used in many safety-critical areas such as aviation, spacecraft, medical treatment monitors, military command and weapon equipment control systems. In these fields, the requirements for the safety and timing constraints of real-time systems are very strict. Once some control-related errors occur at run-time, the consequence may be disastrous. So the correctness of real-time software must be guaranteed before their release. Real-time logic have obtained more and more attentions of software engineering researchers and system engineers, because their accurate syntax and semantic are able to quantitatively characterize the timing constraints of real-time systems.Due to the urgent needs for high quality software, the testing-centric quality guarantee techniques have been widely applied. Test oracle is a method for verifying whether a system under test is running as desired on a particular execution, and also an indispensable stage of software testing. However it has not been thoroughly investigated in software testing research. . This thesis proposes an approach to automatic generation of test oracle from restricted MITL (Metric Interval Temporal Logic). Firstly, a linear-causal MITL_[0, b] formula is automatically translated into a TAAS (Timed Automata with Accepting States) which acts as the test oracle using the tableau idea in model checking. Secondly, MITL_[0, b] is extended to MITL_[a, b]. The thesis proposes a method for automatic generation of test oracle based on the syntax and semantic of MITL_[a,b].The size of the state space of TAAS determines the efficiency of the run-time verification of the systems under test. The larger the state space and the transition set are, the larger the overhead of testing will be. This thesis proposes some optimized technologies for TAAS to reduce redundant and unreachable states. Moreover, an optimized refinement method is proposed for timed state sequence to reduce the extra state-interval tuples produced by the refinement.The inputs of test oracles are the traces of real-time systems. Two methods can be used to acquire the traces: one is to monitor the systems from outside, and the other is to insert assertions into the systems and observe their outputs. Each method has its advantage and weakness. The former method will not disturb the running of the systems, but it cannot acquire all the system events. The latter method does the opposite. In order to reduce or even remove the timing impact of the inserted assertions during testing, the thesis advances a new monitoring schema which has less time intrusiveness than software motoring and can test the tested system completely.
Table of contents
Summary 10-11
ABSTRACT 11-13
first chapter 13-23
§ 1.1 real-time systems 14 -15
§ 1.2 formal methods are found; 15-17
§ 1.3 software testing and test prophecy 17-19
§ 1.4 this article The main contents 19-21
§ 1.5 The structure of this paper 21-23
Chapter II test oracle technology 23-45
§ the 2.1 converter prophecy 24-25
§ 2.2 predicted based on the testing of embedded assertions 25-28
2.2.1 Preprocessor the 26-27 2.2.2 Direct program coding method
2.2.3 Summary on the 27th 27-28
§ 2. 3 test prophecy based on the external interface contract 28-30
2.3.1 dedicated interface contract 28-29
2.3.2 existing Statute symbol modify 29-30
2.3.3 Summary 30
§ 2.4 track inspection and log file analysis 30-32
2.4. the 1 trajectory inspection 31
2.4.2 log file analysis are found; 31-32
2.4.3 Summary 32
§ 2.5 The formal specification-based testing predicted 32-42
2.5.1 prophecy based on Z and Object-Z test generation technology automatically 32-33
2.5. 2 test based on temporal logic prophecy generate technical 33-39
2.5.3 timed automata-based testing prophecy 39-40
2.5.4 the SCR method 40
2.5.5 prophecy petri net-based test generation technology 40-42
2.5.6 multi-language Statute 42
§ 2.6 the problems and the future direction of development 42-45
real-time Statute and time automata 45-59
§ 3.1 real-time systems and form of the Statute nbsp 45-49
3.1.1 timing constraints of real-time systems; 45-47
3.1.2 Formal Specification 47-49 < br /> § 3.2 real-time Statute Statute 49-54
3.2.1 Real-time time domain 49-52
3.2.2 Real-time Statute MITL 52-54
§ 3.3 time automata 54-59
fourth chapter. of based MITL_ ([0, b]) test prophecy automatically generated 59 -88
of § 4.1 real-time Statute MITL_ ([0, b]) 59-62
§ 4.2 based MITL_ ([0, b]) test prophecy automatically generated 62-83
the timed automata 4.2.1 Structural Thought the 62-66
4.2.2 Extended MITL_ ([0, b]) (EMITL_ ( [0, b])) the 66-74
4.2.3 formal rewrite rules 74-76
4.2.4 with the receiving state time automaton constructed 76-81
4.2.5 algorithm complexity analysis 81-83
§ 4.3 example 83-88
Chapter MITL_ ([a, b]) test predictions automatically generated the 88-109
§ 5.1 real-time Statute MITL_ ([a, b]) 88 - 90
The § 5.2 tests prophecy automatic generation algorithm 90-106
5.2.1 test prophecy construct ideological expansion 90-91
5.2 the .2 expansion MITL_ ([a, b]) (EMITL_ ([a, b])) the 91-98
5.2.3 formal rewrite rules 98 - 100
5.2.4 with the receiving state automata build 100-104
5.2.5 algorithm complexity analysis 104-106 <br / > § 5.3 sample 106-109
Chapter test oracle automatically generated the technical optimization the time automata 109-117
§ 6.1 optimized 109-115
§ 6.2 φ-fine process optimization to access 115-117
Chapter VII of the real-time behavior of the system trajectory 117-133
§ 7.1 WECT analysis technology the 117-118
§ 7.2 real-time system trajectory Get 118-122
7.2.1 based on the trajectory of the Statute of the content and system characteristics Get 120-121
7.2.2 new tracks get way time behavior of real-time systems 121-122
§ 7.3 Cartridge assertion analysis and compensation 122-128
7.3.1 Cartridge assertion time of the system under test impact analysis 122-124
7.3.2 Cartridge assertion constructor 124-126
7.3.3 Cartridge assertion to. 126-127
7.3.4 target time calculation and correction 127 -128
§ 7.4 sample the model 128-133
7.4.1 Introduction the 7.4.2 experimental environment 128-129
129
7.4.3 simulation program 129-131
7.4.4 131
7.4.5 Experimental results 131-133
Chapter VIII test prophecy automatic generation of tool design and implementation the 133-139
§ 8.1, AutoTO architecture 133-134
nbsp the § 8.2 AutoTO design and Implementation; 134-139
8.2.1 system use case diagrams are found; 134-135
8.2.2 system design 135-137
8.2.3 sequence diagram 137
8.2.4 Experimental results 137-139
ninth. chapter Conclusion 139 -142
§ 9.1 of this paper main contribution 139-140
§ 9.2 Next research 140-142
Acknowledgements 142 -144
studying for a doctorate during the published papers 144-145
Reference 145-164
Related dissertations
- Research and implementation of TaaS monitoring system
- Design and Application of Taxation Administration Accounting System
- Research and implementation of TaaS test management services
- Research on the WCET Analysis of Real-time Systems in Multi-core Platform
- Research on Hard Real-time Multi-core Architecture Based on Shared Sram Automotive Control Applications
- Real-time Analysis and Verrification of Real-Time Cyber Physical Systems
- WCET Analysis of Multicore Real-Time Systems with Shared Buses
- Worst-Case Execution Time Analysis of Real-Time Systems
- Research and Design the Grade Module of Teaching Affair Administration System
- Research and Application of Fast Program Flow Analysis Method
- Research and Implementation of Test Oracle Techniques Based on Log File Analysis
- Design and Implementation of a DSP Modeling and Timing Analysis Tool
- Research on WCET Analysis of the μC/OS-Ⅱ Real-Time Kernel