The Research and Implementation of Test Suite Generation for TTCN-3 Compiler
- Author
- JinZuo
- Advisor
- JiangFan
- School
- University of Science and Technology of China
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 48
- Citations
- 0
- TTCN-3
- compiler testing
- Automated Test Case Generation
- Hierarchical method of generating
- Attribute grammar
- Parse tree
Abstract
TTCN-3 language compiler implementation complexity , hand - constructed test suite can not be a powerful guarantee for the quality of the compiler . The introduction of the test cases automatically generated , has become an inevitable choice . By summing up the experience of manual testing , combined with compiler construction , programming language design , test data generation , and TTCN-3 language features , a hierarchical , structured and flexible set of test cases automatically generated programs . The program is in strict accordance with the TTCN-3 language specification requirements. Entire generation process , given the language specification EBNF based the EBNF decomposed into hierarchical sub- set of rules in accordance with the language features , and then attribute code , adding semantic description , formation properties for test case generation subgrammar . Recursive parse tree generator to generate an intermediate representation of the analysis of sub- tree set ; syntactic and semantic constraints , the analysis the subtree combined , test cases exist in the form of a parse tree . The coverage analysis guidance to generate test cases , test suite automatically generated . The experiments show that the set of test cases both high coverage , the program generated strong test targeted , can handle complex syntactic and semantic constraints TTCN-3 language specification given . The integrated use of a variety of techniques to ensure the efficient generation process , a reference for other language compiler test .
Table of contents
Abstract 4-5
ABSTRACT 5-8
Introduction 8-9
Chapter 1 Introduction 9-19
1.1 Background 9-16
1.1.1 Software Testing Overview 9-12
1.1.2 compiler test 12-14
1.1.3 TTCN-3 compiler 14-16
1.1.4 this paper work 16
1.2 Review of literature 16-17
1.3 research purposes, meaning 17-18
1.4 Terms and Abbreviations 18-19
Chapter 2 theoretical basis 19-30
2.1 TTCN-3 language specification 19-22
2.1.1 complex type system 19-21
2.1.2 complex scope concept 21
2.1.3 flexible state transition 21-22
2.2 compiler test theoretical foundation 22-25
2.2.1 compiler classification and structure 22-25
2.2.2 compiler quality metrics 25
2.3 programming language theory 25-28
2.4 TTCN-3 compiler structure 28-30
Chapter 3 solution 30-46
3.1 program overview 30-31
3.2 generation process is described in detail 31-39
3.2.1 Rules decomposition 31-32
3.2.2 attribute code to add 32-34
3.2.3 recursive generator 34-35
3.2.4 Properties calculated 35-36
3.2.5 subtree combination 36-38
3.2.6 test case output 38
3.2.7 coverage results get feedback 38-39
3.3 technical difficulties with the approach 39-46
3.3.1 test case syntax and semantics of the guarantee 39-40
3.3.2 identifier generation and scope namespace 40-42
the
the 3.3.3 state transition diagram test 42-44
3.3.4 value generated 44-45
3.3.5 generation efficiency 45
3.3.6 the anomaly test case generation 45-46
Chapter 4 Design and Implementation of a prototype system 46-57
4.1 development environment and tools 46
4.2 system design 46-47
4.3 sub-function modules design and implementation of 47-55
4.3.1 Rules decompose and attribute add modules 47
4.3.2 grammar said module 47-49
4.3.3 Analysis tree module 49-51
4.3.4 attribute code execution module 51-52
4.3.5 parse tree generation module 52-53
4.3.6 the type of support and value generation module 53-54
4.3.7 Analysis the tree combination and test cases output module 54-55
4.4 Experiments and results analysis 55-57
Chapter 5 Summary and Outlook 57-59
5.1 research results and innovation 57-58
5.2 future work and research directions 58-59
the
References 59-61
Acknowledgements 61-62
the
graduate student papers, and participate in the project 62
Related dissertations
- TTCN-3 compiler test coverage metrics research
- The Research on Test Case Generation Methods for Testing Syntax Analysis of Compiler Implementation
- Design and research of testing system of MPLS L2VPN protocol based on TTCN-3
- TTCN-3Test Suits Generation Approach for Corba Network Management Interfaces
- Research on Conformance Testting of LDP Protocol Based on E-Lotos
- Design and Implementation for Consistency Test Tool of DSRC Standard Based on ETC
- The Research and Implementation of Realtime Testing in TTCN-3System
- Reconstruction of the Tool of TTCN-3Test Suite Automatic Generation Based on GFT
- Design and Implementation of TTCN-3Adapter Library Management System
- Design and Codec Sotfware Implementaiton of Testing System for High Performance Network over Coax
- The Research on TTCN-3CoDec Automatically Generator
- Research of Automated Testing Techniques for Safety-critical Software
- Design and Implementation of TTCN-3Code Generation Platform Based on Model Driven Testing
- Testsing Concurrent Software Behavior Based on Cpn and TTCN-3
- The Research and Implementation of ERP Testing Based on TTCN-3
- Test Case Generation and Management
- Design and Implementation of Az Interface Test Cases in TETRA Digital Trunked System
- Design and Implement of Codec Scheme of Adapter in Td-Lte Terminal Test System Based on Ttcn-3
- The Study and Design of Lte Network Interfaces Conformance Test Based on TYCN-3
- Implementation of Cell Reselection Test Cases Based on Ttcn-3in Td-Lte Rrm Conformance Test System