• DocumentCode
    3060992
  • Title

    A Dataflow Testing Approach for Aspect-Oriented Programs

  • Author

    Wedyan, Fadi ; Ghosh, Sudipto

  • Author_Institution
    Dept. of Comput. Sci., Colorado State Univ., Fort Collins, CO, USA
  • fYear
    2010
  • fDate
    3-4 Nov. 2010
  • Firstpage
    64
  • Lastpage
    73
  • Abstract
    Dataflow testing of programs ensures the execution of data dependencies between locations in the code (1) where variables are assigned values, and (2) where these definitions are used. Such data dependencies are called Def-Use Associations (DUAs). In an aspect-oriented (AO) program, aspects and classes interact in several ways, such as (1) through parameters passed from advised methods in a class to advices in the aspect, or (2) by the reading or writing of class state variables in an advice. In this paper, we present a dataflow testing approach for AO programs that is based on class state variables. We identify various types of DUAs for such variables and propose a set of dataflow test criteria that require executing these DUAs. Our approach is implemented by a tool called DCT-AJ, which identifies the DUAs in an AspectJ program and computes the coverage obtained from a test suite. Preliminary results indicate that the test suites satisfying the proposed dataflow criteria are more effective in detecting faults than the test suites that satisfy block coverage criteria.
  • Keywords
    aspect-oriented programming; data flow analysis; program testing; AspectJ program; DCT-AJ tool; Def-Use Association; aspect-oriented program; block coverage criteria; class state variables; data dependency execution; dataflow testing; Instruments; Java; Programming; Testing; Variable speed drives; Water heating; AspectJ; aspect-oriented programming; dataflow; test coverage; test criteria;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    High-Assurance Systems Engineering (HASE), 2010 IEEE 12th International Symposium on
  • Conference_Location
    San Jose, CA
  • ISSN
    1530-2059
  • Print_ISBN
    978-1-4244-9091-2
  • Electronic_ISBN
    1530-2059
  • Type

    conf

  • DOI
    10.1109/HASE.2010.13
  • Filename
    5634310