• DocumentCode
    1164940
  • Title

    Assessing and improving state-based class testing: a series of experiments

  • Author

    Briand, Lionel C. ; Di Penta, Massimiliano ; Labiche, Yvan

  • Author_Institution
    Dept. of syst. & Comput. Eng., Carleton Univ., Ottawa, Ont., Canada
  • Volume
    30
  • Issue
    11
  • fYear
    2004
  • Firstpage
    770
  • Lastpage
    783
  • Abstract
    This work describes an empirical investigation of the cost effectiveness of well-known state-based testing techniques for classes or clusters of classes that exhibit a state-dependent behavior. This is practically relevant as many object-oriented methodologies recommend modeling such components with statecharts which can then be used as a basis for testing. Our results, based on a series of three experiments, show that in most cases state-based techniques are not likely to be sufficient by themselves to catch most of the faults present in the code. Though useful, they need to be complemented with black-box, functional testing. We focus here on a particular technique, Category Partition, as this is the most commonly used and referenced black-box, functional testing technique. Two different oracle strategies have been applied for checking the success of test cases. One is a very precise oracle checking the concrete state of objects whereas the other one is based on the notion of state invariant (abstract states). Results show that there is a significant difference between them, both in terms of fault detection and cost. This is therefore an important choice to make that should be driven by the characteristics of the component to be tested, such as its criticality, complexity, and test budget.
  • Keywords
    Unified Modeling Language; charts; formal verification; object-oriented methods; program debugging; program testing; Category Partition; UML statechart; fault detection; functional testing; object-oriented methodology; state-based class testing; state-dependent behavior; Computer Society; Concrete; Costs; Fault detection; Guidelines; Object oriented modeling; Performance evaluation; Phase detection; System testing; Unified modeling language; 65; Index Terms- State-based testing; UML statecharts; category partition.; testing experimentation;
  • fLanguage
    English
  • Journal_Title
    Software Engineering, IEEE Transactions on
  • Publisher
    ieee
  • ISSN
    0098-5589
  • Type

    jour

  • DOI
    10.1109/TSE.2004.79
  • Filename
    1359770