Research on Methods for Generating AOP Test Cases Based on Predicate Dynamic Slicing
- Author
- WangBo
- Advisor
- ChaiYuMei
- School
- Zhengzhou University
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 16
- Citations
- 0
- Aspect-Oriented Programming
- Statement control-flow graph
- Predicate dynamic slicing
- Branched function
Abstract
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.Nowadays, there are mainly four ways as follows to run aspect-oriented programming test.Firstly, Zhao Jian-jun proposed a data stream based unit testing method, which is mainly concerned about the assignment of each variable in the program. Zhao used control flow graph to construct aspects and def-use pairs and then chose appropriate test strategies.The main problem of this method was that around advice may change the results of def-use pairs. Secondly, Xu Dian-xiang and et al proposed a state-based testing method, which transformed the aspect-oriented state model (ASM) into a tree structure, and all the test cases obtained from the tree could run complete tests to object behaviors, aspects, as well as the interactions between classes. However, it couldn’t resolve the combinatorial explosion problem of status.Thirdly, Xu wei-feng and et al utilized AFG based AFG and migration tree to run tests, which produced executable test cases based on coverage criteria.In this way, the defects caused by the modification of control flow dependency were mainly detected and the advice of static application of the advice could be denoted but the advice of dynamic applications couldn’t.The fourth method was about the independent testing of aspects,which was only for a specific AOP language, and the focus was right to achieve the tests of aspects while ignored interactions between aspects and classes.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.
Table of contents
Summary 4-5
Abstract 5-7
directory . 7-9
1 Introduction 9-19
1.1 Background and Significance 1.2 Status study abroad 9-10
10-16
1.2.1 program slicing 10-12
1.2 .2 AOP unit testing techniques 12-14
1.2.3 AOP integration testing technology 14-15
1.2.4 AOP regression testing techniques 15-16
1.3 Overview of thesis work 16-17
1.4 thesis structure . 17-19
2 AOP path generation method 19-30 <br / > 2.1 concepts analysis section 19
2.2 AOP control flow and said 19-21
said nbsp 2.2.1 single module ; 19-20 <br / > 2.2.2 basic aspects of representation 20-21
2.2.3 extensions represent 21
2.3 AOP complete control flow analysis and representation 21 - 22
represent aspects of the interaction between 2.3.1 and classes 21
2.3.2 AOP complete representation 21-22
2.4 CASFG constructor 22-23
2.5 AOP path generation method 23-27
2.6 experimental Analysis 27-29
2.7 Summary 29-30
3 predicate dynamic slicing method for generating 30-37
3.1 concepts 30-31
3.2 SDADG constructor 31-32
3.3 dynamic slicing predicate generation algorithm 32-34
3.4 experimental Analysis 34-35
3.5 Summary 35-37
4 test data adjustment method. and build test cases 37-44
4.1 concepts 37
4.2 test Data adjustment methods 37-40
4.3 experimental Analysis 40-43
4.4 summary . 43-44
5 summary and Outlook 44-45
5.1 summarizes 5.2 under 44
Previous work prospects 44-45
References 45-49
CVs published 49
master's degree during the academic and research 49-50
Thanks 50
Related dissertations
- Design and Implementation of Uniform Interface Platform System on AOP/IoC in the Telecommunications Industry
- Automatic Translation from Name-based Pointcuts to Analysis-based Pointcuts for Robust Aspects
- The Implementation and Optimization of DiSL Weaver
- Aspect-oriented Programming-based Unit Test Effectiveness Detection System
- Software Fault Localization Research Based on Program Semantics
- Hybrid Mode of Data Validation
- Techniques for Separation of Crosscutting Concerns
- Research on Open Temporal Logic Based Formal Verification and Modular Reasoning of Aspect-Oriented Programs
- Key Techniques of Trustworthiness Improvement on Hybird Arithmetic Addition of Floating-point Fused Multiply-add Unit
- Research on Aspect-Oriented Design Model and Its Implementation on the .NET Platform
- Design and Implementation of Color Ring Back Tone Management Service Unified Creation Platform
- The Research and Application of Component Mechanism Based on Castle Framework
- Aspect-oriented technology research in the design and implementation of NET in
- Research and Implementation of Web Application Performance Monitoring System Based on Aspect-Oriented Programming
- Aspect Oriented Programming’s Application in UP
- Research and Applications of MVC Pattern Based on AOP
- Research and Design of Highway Engineering Information Management System Based on J2EE
- Design and Implementation of Testing Aspects Interaction Tool for Aspect-Oriented Programs
- Research and Implementation of Description of AOP’s Pointcuts Based on XML
- Study and Implementation of Pipa and Its Runtime Assertion Checking Compiler