• DocumentCode
    3066840
  • Title

    Test case generation by OCL mutation and constraint solving

  • Author

    Aichernig, Bernhard K. ; Salas, Percy Antonio Pari

  • Author_Institution
    Int. Inst. for Software Technol., United Nation Univ., Macau, China
  • fYear
    2005
  • fDate
    19-20 Sept. 2005
  • Firstpage
    64
  • Lastpage
    71
  • Abstract
    Fault-based testing is a technique where testers anticipate errors in a system under test in order to assess or generate test cases. The idea is to have enough test cases capable of detecting these anticipated errors. This paper presents a method of fault-based test case generation for pre- and postcondition specifications. Here, errors are anticipated on the specification level by mutating the pre- and postconditions. We present the underlying theory by giving test cases a formal semantics and translate this general testing theory to a constraint satisfaction problem. A prototype test case generator serves to demonstrate the automatization of the method. The current tool works with OCL specifications, but the theory and method are general and apply to many state-based specification languages.
  • Keywords
    constraint theory; formal specification; program testing; programming language semantics; software fault tolerance; specification languages; OCL mutation; OCL specification; constraint satisfaction problem; constraint solving; fault-based testing; formal semantics; state-based specification languages; test case generation; Automatic testing; Computer aided software engineering; Constraint theory; Formal specifications; Genetic mutations; Prototypes; Solids; Specification languages; System testing; Vehicles;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Quality Software, 2005. (QSIC 2005). Fifth International Conference on
  • ISSN
    1550-6002
  • Print_ISBN
    0-7695-2472-9
  • Type

    conf

  • DOI
    10.1109/QSIC.2005.63
  • Filename
    1579121