International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 33 - Number 8 |
Year of Publication: 2011 |
Authors: Somayeh Madadpour, Seyed-Hassan Mirian-Hosseinabadi, Vahdat Abdelzad |
10.5120/4038-5783 |
Somayeh Madadpour, Seyed-Hassan Mirian-Hosseinabadi, Vahdat Abdelzad . Testing Aspect-Oriented Programs with UML Activity Diagrams. International Journal of Computer Applications. 33, 8 ( November 2011), 4-11. DOI=10.5120/4038-5783
Aspect-Oriented Programming is a software engineering paradigm that offers new constructs, such as join points, pointcuts, advices, and aspects in order to improve separation of crosscutting concerns. The new constructs bring new types of programming faults with respect to crosscutting concerns, such as incorrect pointcuts, advice, or aspect precedence. In fact, existing object-oriented testing techniques are not adequate for testing aspect-oriented programs. As a result, new testing techniques must be developed. In this paper, an approach based upon UML activity diagram for testing aspect-oriented programs is presented. The proposed approach focuses on integration of one or several crosscutting concerns to a primary concern and tests whether or not an aspect-oriented program conforms to its expected crosscutting behaviors. The proposed approach generates test sequences based on interaction between aspects and primary models, and verifies the execution of the selected sequences. It also, follows an iterative process which causes to discover faults easily and quickly. The approach is based on several test criteria that we defined. To illustrate the approach, we use a case study which its results show that the approach is capable of revealing several aspect-specific faults.