The Research and Implementation of Test Suite Optimization for Unit Regression Test

Author
CaiMin
Advisor
GongYunZhan
School
Beijing University of Posts and Telecommunications
Major
Computer Science and Technology
Classification
TP311.53 Software Maintenance
Degree
Master's thesis
Year
2013
Downloads
7
Citations
0

Request the full text

Abstract

Unit regression test is a regression test carried out in the unit level. Unit regression test contributes a lot to the whole process of software test due to its characteristics like fine granularity, high repeatability and heavy workload. Thus the efficiency of unit regression test plays an important role in the software test.This paper raises a new modification-based algorithm for test cases selection and construction, which takes both the selected subset To as well as the newly-added subset T1as relevant test cases. The algorithm includes:effective modification points detection based on control flow graphs comparison; software slicing based on the data and control dependency among nodes of expressions; the To subset selection from baseline test case library which covers the node set in software slices; runtime uncovered nodes analysis based on To; new test cases construction to gain a whole coverage of all the nodes; building final test case set by merging of subsets To and T1.Compared with other state-of-the-art unit regression test case selection algorithms, the research brings the following improvements: the modification points detection algorithm can compute the changed point effectively; the software slice based on the modification point can narrow the test range to a large extent; new test cases construction can ensure the adequacy of the regression test. Therefore, this approach works better both on effectiveness and efficiency thanks to its precise test case selection without compromising test coverage.

Table of contents

Summary 4-5 ABSTRACT 5-8 first chapter 8-13 1.1 Background 8-9 1.2 Research Status 9-10 1.3 research 10-11 1.4 thesis structure 11-13 Chapter II unit return testing Survey 13-18 2.1 concepts 13-14 2.2 testing process 14 2.3 common technical 14-16 problems faced 2.4 16 2.5 Summary 16-18 Chapter III unit regression testing to optimize the basic framework subsystem 18-25 3.1 code testing Introduction 19-20 3.2 processing 20-22 3.2.1 Universal processing 20 3.2 .2 improve the overall process flow 20-22 3.3 regression test selection and construction 22-24 3.3.1 background 22-23 3.3.2 processing 23-24 3.4 Summary studies 24-25 Chapter IV modify detection technology and implementation 25 - 43 4.1 problem description and research status 25-26 4.2 describes the basic concepts 26-30 4.2.1 abstract syntax tree 26-28 4.2.2 control Flow Graph 28-30 4.3 points judged invalid modification 30-34 4.3.1 C language expression 30 4.3.2 C language basic statement classification ; 4.3.3 effectiveness of modified point nbsp 30-31 31-34 4.4 design principles and algorithms 34-40 4.4.1 control flow graph comparison algorithm 34-36 4.4.2 modification detection technology 36-40 4.5 examples demonstrate 40-41 4.6 Summary 41-43 Chapter slicing technology in software research and regression testing 43-51 5.1 Description of the problem and research status 43 5.2 describes the basic concepts 43-45 5.2.1 static and dynamic slice sliced ?? 43-44 5.2.2 ago nbsp slice to slice and backward ; 44-45 5.2.3 regression testing unit slice 45 5.3 design principles and algorithms 45-47 <br / > 5.3.1 dependencies classification 45-46 5.3.2 algorithm flow 46-47 5.4 examples demonstrate 47-50 5.5 of this chapter Summary 50-51 Chapter VI experimental results and analysis 51-55 6.1 experiment 51-53 6.2 second experiment 53-55 Chapter VII summary and Outlook 55-57 7.1 paper summarizes 55-56 7.2 further research 56-57 References 57-59 Thanks 59-60 study for a degree of academic papers published during 60