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
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;
Conference_Titel :
Quality Software, 2005. (QSIC 2005). Fifth International Conference on
Print_ISBN :
0-7695-2472-9
DOI :
10.1109/QSIC.2005.63