Method-slicing Based Research for Regression Test

Author
DuZhangHua
Advisor
LiJianHua
School
Central South University
Major
Computer Science and Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2010
Downloads
61
Citations
2

Request the full text

Abstract

Regression testing is a hot area of research subjects,and also the main work in software tesing. When source code changed,most tester can effectively save the time and cost of regression testing by using the "re-test partially" strategy to cut efficiently the cout of the regression testing cases,which just choose the test cases that be affected by the new changes to go through the new software.But how to choose the sufficient test cases that be affected by the new changes is a challege in the research field.There are two steps to cut the cost of regression testing in this paper,trying to reduce the count of the envental test cases.First,Improving the idea of program slicing, which is to slice the program basing on single code, by slicing the entire program basing on the methods.It is a rough way to slice program that is called "method slicing" in this paper,which doesn’t take the details of source codes but just the communication of methods into consideration. Method slicing can rapidly get the eventual test cases affected by change in regression testing,and can be applied to large softwares smoothly. First,just as with the program slicing, regression testing with method slicing also need to compare the two versions of source code to find the changes.Instead of changed codes,it finds the changed methods which are marked as slicing-criterion. Then,analyse the whole program source code to get the method dependent graph(MDG),with witch we could get the method slicing dependent graph of the slicing criterion.At last,we reduce the slicing dependent graph to entry-dependent graph,which represents the methods that must be checked when run each regression testing case. It’s very rough to get regression testing cases affected by new change in such a way.Some of the eventual test cases is not affected by the new change, but it doest good when applied to large software after all; Then reduce the test cases which we get in step one by eliminating the redundance to get the eventual test cases. First of all,we must get the table to represent requirements and test cases,which is called R-T table in this paper. Then,use the improved test case reduction algorithm called G-GRE to reduce the redunce of the R-T table,after this operation,we get the eventual regression test cases,with which to re-test the while software can reduce cost of regression testing in theory.Experimental results show that these steps can get a regression test suite. Using this test suite ,in theory, it can achieve the effect of re-test all the test cases, but their number is often far less than all the test cases. To some extent ,it improves the efficiency of regression testing, and saves testing time and cost.

Table of contents

Abstract 4-5 ABSTRACT 5-9 first chapter 9-14 1.1 Background and Significance 9-10 1.2 Research 10-12 1.3 research 12-13 1.4 paper is organized as 13-14 software regression testing based on program slicing 14-22 2.1 software regression testing 14-15 2.1.1 regression testing classification 14-15 2.1.2 Regression Testing Strategies 15 2.2 statement slice 15-17 2.2.1 statements slice the concept and classification of 15-16 2.2.2 statements slice classification 16-17 2.3 program flowchart 17-20 2.3.1 Control Dependence Graph 17-18 2.3.2 data dependence graph 18-19 2.3.3 program dependence graph 19-20 2.4 regression test reduction technology 20-21 2.4.1 regression test reduction concept 20 2.4.2 regression test set reduction algorithm 20-21 2.5 Summary 21-22 Chapter III A regression testing method based on the method of slices \ 3.1 method of slices 22-29 3.1.1 statements slice 22-24 3.1.2 method of slicing principle 24-25 3.1.3 method of slicing algorithm and example 25-29 3.2 Entrance dependent 29-30 3.2.1 entrance rely on the concept of 29-30 3.2.2 calculate the entrance depends algorithm 30 3.3 regression test case selection 30-33 3.3.1 regression test selection step 30-31 3.3.2 Algorithm and analysis 31-32 3.3.3 algorithm validity analysis 32-33 3.4 based on the method of slices regression test model 33-34 3.5 Summary 34-35 Chapter regression test reduction 35-47 4.1 The greedy algorithm and its improvement 35-40 4.1.1 basic definitions and terminology 35-36 4.1.2 greedy algorithm is the basic principle 36-37 4.1.3 greedy algorithm 37-38 4.1.4 GRE algorithm 38-40 4.2 G-GRE algorithm 40-44 4.2.1 the G-the GRE algorithm basic principle 40-41 4.2.2 G-GRE algorithm 41-44 4.3-GRE algorithm application 44-46 4.3.1 path coverage principle 44-45 4.3.2 based on the path to determine the redundant test cases 45-46 4.4 Summary 46-47 the fifth chapter of the experiment and results analysis 47-55 5.1 method slice experiments and results analysis 47-49 5.2 method of slicing algorithm 49-52 5.2.1 code analyzer About 49-51 5.2.2 method of slicing algorithm 51-52 5.3-GRE algorithm experiments and results analysis 52-54 5.4 Summary 54-55 The sixth chapter summarizes 55-57 6.1 The paper summarizes 55-56 future work 6.2 Outlook 56-57 References 57-61 thank 61-62 during the research study for a degree 62

Related dissertations

  1. Component System Regression Testing Model and Technology Research
    JieKai ·Southeast University ·2006 ·Master's thesis
  2. The Research of Regression Testing and Test Suite Optimization
    PengYuanYuan ·Wuhan University of Technology ·2009 ·Master's thesis
  3. Research on Application of Mutation Testing