Title of article :
An approach and tool for measurement of state variable based data-flow test coverage for aspect-oriented programs
Author/Authors :
Wedyan، نويسنده , , Fadi and Ghosh، نويسنده , , Sudipto and Vijayasarathy، نويسنده , , Leo R.، نويسنده ,
Issue Information :
ماهنامه با شماره پیاپی سال 2015
Abstract :
AbstractContext
low testing approaches have been used for procedural and object-oriented programs, and shown to be effective in detecting faults. However, few such approaches have been evaluated for aspect-oriented programs. In such programs, data-flow interactions can occur between base classes and aspects, which can affect the behavior of both. Faults resulting from such interactions are hard to detect unless the interactions are specifically targeted during testing.
ive
aper presents an approach and tool implementation for measuring data-flow coverage based on state variables defined in base classes or aspects in AspectJ programs. The paper also reports on an empirical study that compares the cost and effectiveness of data-flow test criteria that are based on state variables with two control-flow criteria.
iveness of the criteria was evaluated for various fault types. Cost-effectiveness of test suites that cover all state variable definition-use associations (DUAs) was evaluated for three coverage levels: 100%, 90%, and 80%.
s
fort needed to obtain a test case that achieves data-flow coverage is higher than the effort needed to obtain a test case that covers a block or a branch in an advised class. Covering certain data flow associations requires more effort than for other types of data flow associations. The data-flow test criteria based on state variables of a base-class are in general more effective than control-flow criteria.
sions
l, it is cost-effective to obtain test suites at the 90% coverage level of data-flow criteria.
Keywords :
Control and data flow test criteria , empirical study , mutation testing , Higher order mutation , Testing tools , Aspect-oriented programming
Journal title :
Information and Software Technology
Journal title :
Information and Software Technology