Research on Methods for Generating AOP Test Cases Based on Predicate Dynamic Slicing

Wang Bo, Chai Yumei, Liming Wang · Journal of Chinese Computer Systems · 2013

Aspect-oriented programming(AOP) is the complement and perfection of the technology of object-oriented programming(OOP),while efficient AOP testing method is the quality assurance of AOP.In this paper,we propose an effective testing method which is based on Predicate Dynamic Slicing.First of all,our method constructs Complete AOP Statement Control Flow Graph which contains the aspect,pointcut,join point and advice of AOP.Then,the method generates all of the paths of AOP from Complete AOP Statement Control Flow Graph and constructs branched function of each path to obtain its corresponding testing data.If the path cannot execute,the method fails to generate the testing data.During this procedure,it would build Simplified Dynamic Dependency Graph to generate the predicate dynamic slicing which can help to adjust the test data afterwards.Ultimately,to each path,we compare the actual output with desired output to decide whether the software has bugs or not.Cases analysis and experimental results show that our solution can test an integrated AOP systematically,meanwhile improve the efficiency when producing the testing data,and eventually obtain valid test cases.

Read the paper · More papers on PaperTik