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

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 (US)
Title of host publicationProceedings of the 5th International Conference on Aspect-oriented Software Development 2006, AOSD'06
Pages190-201
Number of pages12
DOIs
StatePublished - 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
Country/TerritoryGermany
CityBonn
Period3/20/063/24/06

Keywords

  • Aspect-oriented programs
  • Aspect-oriented software development
  • AspectJ
  • Coverage criteria
  • Coverage measurement
  • Software testing
  • Test generation

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'A framework and tool supports for generating test inputs of AspectJ programs'. Together they form a unique fingerprint.

Cite this