• DocumentCode
    3154106
  • Title

    Contract-based testing: from objects to components

  • Author

    Collet, Philippe ; Rousseau, R.

  • Author_Institution
    I3S Lab., CNRS, Nice, France
  • fYear
    2004
  • fDate
    2 Nov. 2004
  • Firstpage
    5
  • Lastpage
    14
  • Abstract
    Contracts on object-oriented classes have been first developed as a software design approach. They were also quickly used for supporting class testing, providing a form of design for testability. In this paper, we identify the tracks to extend the contract-based built-in test technique to hierarchical components. To do that, we build on our previous work on STclass, a framework supporting design by contract and built-in test for Java, and on ConFract, a contracting system for the Fractal component platform. Tests are embedded in the components and are generated with respect to a category of contract (library, interface, composition). In this paper we study how this approach, firstly dedicated to objects, can be valuable for component testability. As a result of the test process, the embedded contracts are more robust and offer an original way to improve the observability of the component-based system. Contracts make it aware of its execution, and thus able to detect erroneous behaviors at runtime.
  • Keywords
    Java; built-in self test; contracts; design for testability; embedded systems; object-oriented programming; program testing; ConFract; Fractal component platform; Java; STclass; built-in test technique; component testability; contract-based testing; design by contract; design for testability; embedded contracts; hierarchical components; object-oriented classes; software design; Built-in self-test; Contracts; Design for testability; Fractals; Java; Libraries; Observability; Robustness; Software design; System testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Testability Assessment, 2004. IWoTA 2004. Proceedings. First International Workshop on
  • Print_ISBN
    0-7803-8851-8
  • Type

    conf

  • DOI
    10.1109/IWOTA.2004.1428408
  • Filename
    1428408