|
|
An object oriented software testing method based on RRT tech |
School of Computer Science and Communication Engineering, Jiangsu University, Zhenjiang, Jiangsu 212013, China |
|
|
Abstract To solve the problems that the current testing methods for object-oriented software are less and inefficient, an approach of restricted random testing (RRT) was proposed based on adaptive random testing (ART) for object-oriented programs. The structure of object-oriented software test cases was analyzed, and the test cases were suggested with dynamic part and static part. The distance between the test cases was given as the distance between the dynamic part and the static part, and the formulas for calculating the distance between the dynamic part and the static part were given respectively. A prototype system was designed based on RRT. The main modules of the prototype system were class diagram entry module, test case distance measurement module, RRT test cases generation module and result analysis module. The proposed method was compared with random testing method by experiments. The results show that compared with the random test method, the proposed object-oriented RRT method can reduce the number of test cases by about 50% in detecting the first program error, and the quality of the test cases is almost the same as the random testing. The proposed test case measurement mechanism can effectively distinguish test cases in object-oriented software. The RRT-based test prototype system can also automatically generate test cases and automatically test the software, which greatly improves the efficiency of object-oriented software testing.
|
|
|
|
|
|
|
|