Test Cases Reduction Based on Program Slicing Algorithm

Author
LiuYan
Advisor
LiLongZuo
School
Anhui University
Major
Computer Software and Theory
Classification
TP311.53 Software Maintenance
Degree
Master's thesis
Year
2013
Downloads
8
Citations
0

Request the full text

Abstract

Information industry now is more and more widely used, significant events happened because of software quality are not uncommon, for example millions of the national interbank transactions cannot be achieved because China Union Pay business interrupted for6hours. And the key of informationization is software, so the primary job is to test the software errors in order to ensure it’s smoothly implementation. So test case execution strategy has a crucial influence on test results, it can save a lot of manpower and material resources, in the same time it also reduces maintenance costs. It is necessary to select a set of effective test cases from the original test cases to complete the testing process; the selected new test cases can also test every test requirement of the test requirements set and ensure error detection capability. Test cases selection directly affects the quality of the software, so the study of methods of test cases minimization has a very vital significance.Program slicing technique deletes the points which are besides the interest points to have a convenient to understand and analysis program. In this paper, program slicing technique is applied to the optimization of the test set. Program slicing techniques only select procedures which are related to the interested test points in the program, or procedures affecting the interested test points. This can reduce the number of test cases, and use the least test cases to test the most bugs.This research work of this paper mainly includes the following several aspects:(1) According to the reverse program flow, functional dependency set and arguments parameter table, then give a algorithm of program slicing;(2) Function calls program slicing algorithm is also applicable to inter-program slicing, the later only depends on the reverse process stream, the execution of the algorithm is more simple;(3) Test cases minimization algorithm use improved GRE algorithm. According to the interest points of test requirements of section to generate program slicing, and then generate the corresponding test cases for the points in slicing. First remove redundant test cases, then selected essential test cases, finally, use double selection mechanism algorithm to instead greedy algorithm.In double selection mechanism, if there isn’t a test case can cover all test requirements, then to combine every two test cases. If the combination covers more test requirements than the test case which covers the most test requirements, then choose the combination, or choose the test case which covers the most test requirements; in the same time, delete test requirements which are covered. Continue to cycle the above steps until all test requirements are met.Finally, the paper verifies the feasibility and practicality of the algorithm through the giving example, and compares the proposed algorithm with other algorithms, and then provides the direction and content of the next step and content.

Table of contents

Summary 3-4 Abstract 4-6 directory 6-8 Chapter 1 Introduction 8-14 <br / > 1.1 Background and Significance 1.2 domestic and foreign research status quo 8-9 9-12 1.2.1 software testing and test 9-11 <br / > 1.2.2 program slicing 11-12 1.3 main research topics 12-13 1.4 thesis structure 13-14 Chapter 2 program slicing technologies and applications 14-26 2.1 program slicing definition and overview 14-16 dependencies 2.1.1 program 14 2.1.2 program dependence graph PDG 14-16 2.1.3 system dependence graph SDG 16 2.2 program slicing classification 16-21 2.3 program slicing criteria 21 2.4 program slicing algorithm 21-24 2.4.1 slicing algorithm based on data flow 22 2.4.2 algorithm based on information flow relationships 22-23 2.4.3 graphical dependency graph based reachability algorithm 23 2.4.4 graph -based algorithm statement volatility 23-24 2.5 application program slicing 24-25 2.6 This chapter summarizes 25-26 Chapter 3 software Test and about simple methods of 26-35 3.1 test the concept and design basic concepts nbsp 26-29 3.1.1 software testing ; 26-28 <br / > 3.1.2 software testing method of classification 28-29 3.2 test suite reduction algorithms and comparison 29-33 3.2.1 greedy algorithm 29 - 30 3.2.2 GE and GRE algorithm 30-31 3.2.3 H algorithm 31-32 3.2.4 integer Programming 32 3.2.5 testing requirements based reduction algorithm 32-33 3.3 software testing program slicing application 33-34 3.3.1 error locating 33 3.3.2 test data generation 33-34 3.4 Summary 34-35 Chapter 4 improved test suite reduction algorithm basic concepts of 35-49 4.1 algorithm and definition construct 35-37 4.2 reverse different program flow statement 37-42 4.2.1 for statement 37-38 4.2.2 while statement 38-39 4.2.3 if statement 39-40 4.2.4 contains break and continue statement 40-41 4.2.5 function call statement 41-42 4.3 program slicing algorithm 42-45 4.3.1 based slicing algorithm process between function calls 42-43 4.3.2 slicing algorithm based on the process 43-45 4.4 -based test suite reduction program slicing method 45-48 4.5 Summary 48-49 Chapter 5 experiments and analysis 49-55 before 5.1 and the improved algorithm is relatively 49-53 5.1.1 program slicing 49-51 5.1.2 GRE algorithm 51-53 compare nbsp 5.2 and other algorithms ; 53 -54 5.3 summary 54-55 Chapter 6 Conclusion and Outlook 55-57 6.1 thesis summary 55-56 <br / > 6.2 Prospects 56-57 References 57-61 Appendix A bitmap index 61-62 Appendix B, table Index 62-63 Thanks published academic catalog nbsp 63-64 during the master's degree ;; nbsp 64