A framework and tool supports for generating test inputs of AspectJ programs

Tao Xie, Jianjun Zhao

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

53 Citations (Scopus)

Abstract

Aspect-oriented software development is gaining popularity with the wider adoption of languages such as AspectJ To reduce the manual effort of testing aspects in AspectJ programs, we have developed a framework, called Aspectra, that automates generation of test inputs for testing aspectual behavior, i.e., the behavior implemented in pieces of advice or intertype methods defined in aspects. To test aspects, developers construct base classes into which the aspects are woven to form woven classes. Our approach leverages existing test-generation tools to generate test inputs for the woven classes; these test inputs indirectly exercise the aspects. To enable aspects to be exercised during test generation, Aspectra automatically synthesizes appropriate wrapper classes for woven classes. To assess the quality of the generated tests, Aspectra defines and measures aspectual branch coverage (branch coverage within aspects). To provide guidance for developers to improve test coverage, Aspectra also defines interaction coverage. We have developed tools for automating Aspectra's wrapper synthesis and coverage measurement, and applied them on testing 12 subjects taken from a variety of sources. Our experience has shown that Aspectra effectively provides tool supports in enabling existing test-generation tools to generate test inputs for improving aspectual branch coverage.

Original languageEnglish
Title of host publicationProceedings of the 5th International Conference on Aspect-oriented Software Development 2006, AOSD'06
Pages190-201
Number of pages12
DOIs
Publication statusPublished - Dec 1 2006
Externally publishedYes
Event5th International Conference on Aspect-oriented Software Development 2006, AOSD'06 - Bonn, Germany
Duration: Mar 20 2006Mar 24 2006

Publication series

NameProceedings of the 5th International Conference on Aspect-oriented Software Development 2006, AOSD'06
Volume2006

Other

Other5th International Conference on Aspect-oriented Software Development 2006, AOSD'06
CountryGermany
CityBonn
Period3/20/063/24/06

    Fingerprint

All Science Journal Classification (ASJC) codes

  • Software

Cite this

Xie, T., & Zhao, J. (2006). A framework and tool supports for generating test inputs of AspectJ programs. In Proceedings of the 5th International Conference on Aspect-oriented Software Development 2006, AOSD'06 (pp. 190-201). (Proceedings of the 5th International Conference on Aspect-oriented Software Development 2006, AOSD'06; Vol. 2006). https://doi.org/10.1145/1119655.1119681