Font Size: a A A

Research On Regression Testing Strategy Of Object-oriented Software

Posted on:2005-11-09Degree:MasterType:Thesis
Country:ChinaCandidate:Z J ZhangFull Text:PDF
GTID:2168360125458889Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Software testing is an important activity in order to insure the correctness of the software, regression testing is a test for the purpose of validating modified software correctness, thus the process of running test case in the regression testing phase is the same as that of running test case in the developing testing phase, only the test case suites are different. Regression testing strategy can be divided into "retest-all" strategy and "selective" strategy, with the accretion of the software scale, "retest-all" is impossible in either cost or time, especially when a little part changes, "retest-all" will waste cost, but changed parts may affect the other unchanged parts, so regression testing must be carried out in selecting proper test case suites.Presently there are many researches about regression testing strategy in "selective" strategy, which put emphasis on selecting a test case suite as possible as small and coverage all of the changed and affected codes. In this paper, treating a class member as a unit of change impact analysis, only the test case suites that correlative with the changed and affected class member will be selected to carry out when regression testing is going.In this paper, a class member firewall regression testing strategy is presented. According to the strategy first take out class hierarchy graph from program, and then construct a more precise class member dependence graph by class hierarchy analysis according to class hierarchy graph. Secondly when modifying some class member in program, we find other possibly affected class member based on the dependence relation of class member. For change impact analysis, we first define basic changed cases to construct firewall on the basis of various object-oriented features, and then program modified firewall consist of these base changed cases, subsequently we decide to retest test cases which associated with class member from class member firewall. At last, we realize a prototype system, which present a framework for program analysis that can analyze a common program for Java language, and is easy to extend to other program language. Class member dependence graph corresponding to program can be obtained from this system, class member firewall can be also gained after program have been changed, all of these provide research basis for the future regression test selection.
Keywords/Search Tags:object-oriented, software testing, regression testing, class member dependency graph, class hierarchy graph, class member firewall
PDF Full Text Request
Related items