Integration testing of Object-Oriented and Aspect-Oriented programs: A structural pairwise approach for Java

  • Authors:
  • Otávio Augusto Lazzarini Lemos;Ivan Gustavo Franchin;Paulo Cesar Masiero

  • Affiliations:
  • Depto. de Sistemas de Computação, ICMC/USP - São Carlos - Caixa Postal 668, 13560-970 São Carlos, SP, Brazil;Depto. de Sistemas de Computação, ICMC/USP - São Carlos - Caixa Postal 668, 13560-970 São Carlos, SP, Brazil;Depto. de Sistemas de Computação, ICMC/USP - São Carlos - Caixa Postal 668, 13560-970 São Carlos, SP, Brazil

  • Venue:
  • Science of Computer Programming
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Several testing approaches focus on finding faults in software units of implementation. A problem not addressed by unit testing is the interaction among units, with respect to the correctness of their interfaces. In this paper a structural integration testing approach for Object-Oriented (OO) and Aspect-Oriented (AO) Java programs is presented. To make the activity more feasible, we address the testing of pairs of units (i.e., methods and pieces of advice). A model called PWDU (PairWise Def-Use) graph to represent the flow of control and data between pairs of units is proposed. Based on the PWDU, the following family of testing criteria is defined: all-pairwise-integrated-nodes (control-flow based), all-pairwise-integrated-edges (control-flow based), and all-pairwise-integrated-uses (data-flow based). To evaluate the proposed approach, an implementation of the criteria in a testing tool is presented along with an example of usage and an exploratory study. The study with 7 AO programs that are also OO was conducted to investigate the cost of application and usefulness of the approach. Results provided evidence that the criteria are practical and useful for integration testing of OO and AO programs.