Research and Design of C/C++ Automatic Unit Coverage Testing Framework
- Author
- SunHuaZuo
- Advisor
- GongYunZhan
- School
- Beijing University of Posts and Telecommunications
- Major
- Computer Science and Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 92
- Citations
- 0
Abstract
With the advance of information technology , the field of software applications are more and more widely , also will increase the complexity of the software itself . How to ensure software quality has been a hot research field of computer technology . Unit testing is an important part of ensuring the quality of software . How to solve the unit test testability and test automation is the key to the implementation of unit testing . This paper studies the C / C unit automated testing technology , how to solve the unit testability issues as well as how to create a set of automated unit covers testing framework . In this paper, the framework of an automated unit covering the framework for automatic analysis of program code , abstract syntax tree generated code , control flow graph , symbol table , the function call graph , treat measurement unit divided , automatic transformation program code to generate automatically generated test cases , the driver file , the final monitoring management execute test cases , the cycle of death and abnormal detection test , the test report is given at the same time . This article is based on abstract interpretation theory, the proposed method automatically calculate the expected value of the stub function function summaries and path interval reduced to piling . At the same time through the the cartridge source code , test coverage analysis , coverage calculation , path coverage while selecting new test target element to generate new test cases . In this paper, the test of 10 open source C / C works to verify the performance and the role of the unit automation coverage testing framework . The experiments show that the framework can automatically create a test environment ; the C program different way of piling prove reduced function summaries and path intervals to automatically calculate the expected value of the stub functions , unit test testability problems solved to some extent and improve coverage effect.
Table of contents
Abstract 4-5
ABSTRACT 5-9
first chapter 9-13
1.1 Background 9-11
1.2 research 11-12
1.3 thesis structure and main content 12-13
research 13-21
2.1 static test 13-14
2.2 Dynamic test 14-15
2.3 code coverage analysis and status quo 15-16
the
the 2.4 unit automated testing technology and the status quo 16-21
2.4.1 automated testing framework 17
2.4.2 test cases automatically generated 17-21
Chapter C / C unit automation coverage testing framework 21-26
3.1. framework design goals 21
3.2. system overview and overall structure 21-23
3.3. the overall framework flowchart 23-24
3.4. system module introduces 24-26
3.4.1 testing framework 24-25
3.4.2 path processing module 25
3.4.3 test case generation module 25-26
Chapter C / C unit test environment to establish 26-34
4.1 program static analysis 26-30
4.1.1 abstract syntax tree 26-27
4.1.2 based on the control flow graph of interval arithmetic 27-29
4.1.3 function call 29-30
4.1.4 global analysis based on the function summary 30
4.2 unit divided 30-31
4.3 program transformation 31
4.4 driver generates 31-32
4.5 test management 32-34
Chapter based on the study of the function summary and interval reduced piling and Implementation 34-39
5.1 function summary generated 34-35
the
the 5.2 stub functions expected value calculation algorithm and piles of code generation process 35-39
the
the Cartridge study Chapter coverage testing and Implementation 39-45
6.1 program cartridge 39-40
6.2 cartridge support library design 40-42
6.3 plug decorate the set-up process and achieve 42
6.4 coverage statistics 42-45
Chapter VII of the experimental results 45-50
7.1 experiment introduced 45-46
7.2 experimental environment 46-48
7.3 Experimental Analysis 48-50
Chapter VIII Summary and Outlook 50-52
8.1 paper summarizes 50
8.2 further research work 50-52
the
References 52-55
thank nbsp the; 55-56
the
author published papers during the study for a degree 56
Related dissertations
- Coverage Test Research Based on Embedded Software
- ARM-based software testing platform for the design and implementation of
- Research on Software Technology in HVDC Transmission Design Software Package
- Research on Infrared Suppression of Marine Exhaust Ejector
- Dynamic response analysis of lightweight shell during the launch process
- Automatic Volume Correction and Error Analysis of Machine Design Cartridge
- The Design and Implementation of Software Auto Test System Based on Enodeb Control Plane
- Unit Testing Technology and Its Application Based on Java ME
- Key Technologies Research on Embedded IO Controller Software Testing
- Unit Testing Strategies and Methods of Lightweight J2EE Applications System
- Research on Abstract Memory Modeling Technology Supporting Test Case Automatic Generation of Non-Numeric Data Type
- The Research and Implementation of Path Sensitive Methods Summary in DTS
- Research and Application on Unit Testing Technology for Object Oriented Program by CppUnit
- The Research and Application in the Unit Testing by Using JUnit Framework
- Research and Application of Interlocking Software Automatic Testing Technology
- Drawing Thin-Wall Parts Allowance Processing Technology and Equipment
- Forging hydraulic machine hydraulic control system is a key technology research
- Study on the Dynamic Characteristics of Engineering Loess Slope under Construction Inspires
- Execution of GPS Navigation Software Testing Based on VSTS
- Lightweight cartridge deformation under high temperature and pressure conditions