Aspect Oriented Programming Applied in Software Unit Testing
- Author
- XuFengBing
- Advisor
- YangZongYuan
- School
- East China Normal University
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 153
- Citations
- 2
Abstract
Software unit test is to find bugs in the software smallest unit. Unit test is the first testing process and it’s the basis of and system level test Unit test is critical to software quality. Unit test also plays an import role in other research areas: unit test cases need to be written before writing any implementation code in test driven development; an reliable unit test environment is the most important premise to do software recapturing.Aspect-Oriented Programming (AOP) is first proposed by Xerox PARC as a new programming model in the 90’s of the last century. AOP enables developers to separate the auxiliary tasks from the main task. The essence of AOP is to separate different concerns, these concerns including the key concern and crosscut concerns. Every crosscut concerns can be implemented individually by using languages of Apotheoses crosscut concerns will be weave into the main concern during compile or execution time. As a supplement of OOP, AOP, along with it’s development tools and enviroment, is getting more and more popular.This article thoroughly studied both AOP and software unit test technology and found the relationship between the two. By looking into the unit test itself deeply and applying Erik Ernst’s standard, the author draw the conclusion that unit test in one crosscut concern of the unit to test.Then, by researching some difficult problems encountered in unit test, the author solved these problems using both conventional way and the more simple and effective AOP’s way. So it is proved that AOP is not only theoretically help for unit test, but AOP can also solved many real problems. For example, these problems includes separation of outer service from unit being tested, getting the private class member of the tested class. Other problems like legacy code testing are also discussed.An Aspect-Oriented unit test framework called ATest is presented on the foundation on the above researching. The framework uses the AspectJ language to solve unit test problems. The solutions to the difficulties found in unit test is already integrated in the test framework. Implementing some interfaces can also extend the framework. By using this way, new solutions can be added to the framework and the framework will become more and more useful.Summarize of the researching work is given in the last chapter. AOP technology applied in unit test area in the future is also discussed.
Table of contents
Chapter Introduction 8-14
1.1 Background 8-10
1.2 in unit testing application AOP technology 10-12
1.3 article the main contribution of 12-13
1.4 the paper is organized 13-14
Chapter aspect-oriented programming 14-29
2.1 aspect-oriented programming Overview 14-19
2.2 aspect-oriented programming to achieve 19-21
2.3 Introduction ASPECTJ 21-25
2.4 the main aspect-oriented programming research 25-28
2.5 Summary 28-29
CHAPTER software unit testing 29-38
3.1 software testing Overview 29-32
3.2 unit test 32-38
Chapter AOP technology in the unit test application 38-57
4.1 unit testing is a cross- cutting concerns 38-40
4.2 applying AOP in unit testing techniques 40-55
4.3 of AOP unit test 55-57
Chapter AOP-based unit testing framework 57-77
5.1 unit testing framework based on AOP description 57-63
5.2 ATEST Detailed core class framework 63 -67
5.3 testing framework using the demo 67-76
5.4 Summary 76-77
Chapter Summary and Outlook 77-79 < br /> 6.1 Summary 77-78
6.2 Prospects for future work and feelings 78-79
References 79-84
Thanks 84
Related dissertations
- Aspect-oriented Programming-based Unit Test Effectiveness Detection System
- Design and Implementation of Uniform Interface Platform System on AOP/IoC in the Telecommunications Industry
- Design of remote meter reading system based on GPRS network
- Automatic Translation from Name-based Pointcuts to Analysis-based Pointcuts for Robust Aspects
- Research on Methods for Generating AOP Test Cases Based on Predicate Dynamic Slicing
- Code Coverage Analysis and Path Selection Technology Research and Application
- Research and Implementation of Automatic Stub Generation Technology in Unit Test
- Research on Unit Test Methods of Special Transformer Acquisition Terminal Based on Embedded Linux
- The Implementation and Optimization of DiSL Weaver
- Software Fault Localization Research Based on Program Semantics
- Research and Design of Automatic Software Fault Locatlization Technology in Unit Test
- Hybrid Mode of Data Validation
- Design and implementation of online bookstore system based on Struts Framework
- Research and Implementation of Automated Testing for Communication-based Train Control Platform
- Research on nuclear power software unit test suite reduction
- 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