An Approach of Regression Test Case Generation Based on Variable Impact Analysis and Data Mutation

Bo YANG,Ji WU,Chao LIU
DOI: https://doi.org/10.11897/SP.J.1016.2016.02372
2016-01-01
Abstract:Programmers need to verify program correctness after fault repairing.They often need to add new test cases to test programs for fault repairing,which may bring out new faults.There are many technologies depended on symbol execution which will cause state space explosion,and furthermore these technologies are unified to consider the control flow related faults and data flow related faults in program.However,the control flow related faults and data flow related faults are different.The behaviors of the program and the variables are closely related.Programmers often pay attention to variables state changes in the process of manual debugging.This paper proposes an approach of regression test case generation based on variable impact analysis and data mutation because of these factors.First,it analyses dynamic variable state change and gets a variable behavior model,which describes state change of the variables and the dependence relationship of variables.Then,statements related to fault can be obtained by analyzing the variable behavior model.Last,test cases can be getting by using these statements and data mutation technology.The main research of this paper is verified by experiments.The experimental <br> results show that the proposed approach is good for finding data related fault and achieving better results comparing with random approach and paths coverage approach.
What problem does this paper attempt to address?