Automated generation of pointcut mutants for testing pointcuts in aspectj programs

Prasanth Anbalagan, Tao Xie

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Aspect-Oriented Programming (AOP) provides new modularization of software systems by encapsulating cross- cutting concerns. AspectJ, an AOP language, uses ab- stractions such as pointcuts, advice, and aspects to achieve AOP's primary functionality. Faults in pointcuts can cause aspects to fail to satisfy their requirements. Hence, test- ing pointcuts is necessary in order to ensure correctness of aspects. In mutation testing of pointcuts (a type of fault- based pointcut testing), the number of mutants (i.e., varia- tions) for pointcuts is usually large due to the usage of wild- cards. It is tedious to manually identify effective mutants that are of appropriate strength and resemble closely the original pointcut expression, reflecting the kind of mistakes that developers may make. To reduce developers' effort in this process, we have developed a new framework that au- tomatically identifies the strength of each pointcut and gen- erates pointcut mutants with different strengths. Develop- ers can inspect the pointcut mutants and their join points for pointcut correctness or choose the mutants for conduct- ing mutation testing. We conducted an empirical study on applying our framework on pointcuts from existing AspectJ programs. The results show that our framework can pro- vide valuable assistance in generating effective mutants that re close to the original pointcuts and are of appropriate strength.

Original languageEnglish (US)
Title of host publicationProceedings - 19th International Symposium on Software Reliability Engineering, ISSRE 2008
Pages239-248
Number of pages10
DOIs
StatePublished - Dec 1 2008
Externally publishedYes
Event19th International Symposium on Software Reliability Engineering, ISSRE 2008 - Seattle, WA, United States
Duration: Nov 10 2008Nov 14 2008

Publication series

NameProceedings - International Symposium on Software Reliability Engineering, ISSRE
ISSN (Print)1071-9458

Other

Other19th International Symposium on Software Reliability Engineering, ISSRE 2008
CountryUnited States
CitySeattle, WA
Period11/10/0811/14/08

    Fingerprint

ASJC Scopus subject areas

  • Software
  • Safety, Risk, Reliability and Quality

Cite this

Anbalagan, P., & Xie, T. (2008). Automated generation of pointcut mutants for testing pointcuts in aspectj programs. In Proceedings - 19th International Symposium on Software Reliability Engineering, ISSRE 2008 (pp. 239-248). [4700329] (Proceedings - International Symposium on Software Reliability Engineering, ISSRE). https://doi.org/10.1109/ISSRE.2008.58