• DocumentCode
    1731891
  • Title

    Trace-based Reflexive Testing of OO Programs with T2

  • Author

    Prasetya, I.S.W.B. ; Vos, T.E.J. ; Baars, A.

  • Author_Institution
    Dept. of Inf. & Comp. Sci., Utrecht Univ., Utrecht
  • fYear
    2008
  • Firstpage
    151
  • Lastpage
    160
  • Abstract
    This paper presents an automatic trace-based unit testing approach to test object-oriented programs. Most automated testing tools test a class C by testing each of its methods in isolation. Such an approach works poorly if specifications are only partial, which is usually the case in practice. In contrast, our approach generates sequences of calls to the methods of C that are checked on-the-fly. This is more interactive, and has the side effect that methods are checking each other. Although simple, it seems to work quite well, even when specifications are only partially provided. We implement the approach in a tool called T2. It targets Java. It can test internal errors, Hoare triple specifications, class invariant, and even temporal properties. Furthermore, T2 accepts ´in-code´ specifications, these are specifications written in the specified class itself, and are written in plain Java; hence reducing the cost usually needed to maintain specifications to minimum.
  • Keywords
    Java; formal specification; object-oriented programming; program testing; Hoare triple specifications; Java; OO programs; automated testing tools; in-code specifications; object-oriented programs; trace-based reflexive testing; Automatic testing; Computer languages; Costs; Java; Object oriented modeling; Programming profession; Runtime; Software testing; Specification languages; Writing; automated testing; sequence based testing; trace based testing; unit testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Testing, Verification, and Validation, 2008 1st International Conference on
  • Conference_Location
    Lillehammer
  • Print_ISBN
    978-0-7695-3127-4
  • Type

    conf

  • DOI
    10.1109/ICST.2008.12
  • Filename
    4539542