• DocumentCode
    2376240
  • Title

    Intra-Class Testing of Abstract Class Features

  • Author

    Clarke, Peter J. ; Babich, Djuradj ; King, Tariq M. ; Power, James F.

  • fYear
    2007
  • fDate
    5-9 Nov. 2007
  • Firstpage
    191
  • Lastpage
    200
  • Abstract
    One of the characteristics of the increasingly widespread use of object-oriented libraries and the resulting intensive use of inheritance is the proliferation of dependencies on abstract classes. Such classes defer the implementation of some features, and are typically used as a specification or design tool. However, since their features are not fully implemented, abstract classes cannot be instantiated, and thus pose challenges for execution-based testing strategies. This paper presents a structured approach that supports the testing of features in abstract classes. Core to the approach is a series of static analysis steps that build a comprehensive view of the inter-class dependencies in the system under test. We then leveraged this information to define a test order for the methods in an abstract class that minimizes the number of stubs required during testing, and clearly identifies the required functionality of these stubs. Our approach is based on a comprehensive taxonomy of object-oriented classes that provides a framework for our analysis. First we describe the algorithms to calculate the inter-class dependencies and the test-order that minimizes stub creation. Then we give an overview of our tool, AbstractTestJ that implements our approach by generating a test order for the methods in an abstract Java class. Finally, we harness this tool to provide an analysis of 12 substantial Java applications that demonstrates both the feasibility of our approach and the importance of this technique.
  • Keywords
    Concrete; Java; Performance evaluation; Power engineering and energy; Power engineering computing; Reliability engineering; Software libraries; Software reliability; Software testing; System testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Reliability, 2007. ISSRE '07. The 18th IEEE International Symposium on
  • Conference_Location
    Trollhattan
  • ISSN
    1071-9458
  • Print_ISBN
    978-0-7695-3024-6
  • Type

    conf

  • DOI
    10.1109/ISSRE.2007.11
  • Filename
    4402210