Abstract
In this paper we present an approach for automatically deriving test input data from Design by Contract™ specifications. Preconditions of a method under test (MUT) require specific object states of the input parameters. In this paper we present INTISA, a novel approach, which calculates test input values to be used with mock objects. The calculated
values do not only satisfy the precondition of the method under test, but are guaranteed to be states that could be reached through method calls on the object as well. This property is
not supported by previous work, such as random or pure SMT based approaches, and genetic algorithm. But it is important since it reduces false positive test cases. Based on the idea of
bounded-model checking, INTISA encodes possible state space changes of method calls for all parameters of the MUT. This model is then verified against an adopted precondition of the
MUT. Besides a detailed discussion of the INTISA approach we present results obtained by applying our technique to two case studies, one of them a real world application provided by
our industry partner. First results show that INTISA is twice as fast as random in generating primitive and non-primitive test input that satisfies the precondition of the method under
test.
values do not only satisfy the precondition of the method under test, but are guaranteed to be states that could be reached through method calls on the object as well. This property is
not supported by previous work, such as random or pure SMT based approaches, and genetic algorithm. But it is important since it reduces false positive test cases. Based on the idea of
bounded-model checking, INTISA encodes possible state space changes of method calls for all parameters of the MUT. This model is then verified against an adopted precondition of the
MUT. Besides a detailed discussion of the INTISA approach we present results obtained by applying our technique to two case studies, one of them a real world application provided by
our industry partner. First results show that INTISA is twice as fast as random in generating primitive and non-primitive test input that satisfies the precondition of the method under
test.
Originalsprache | englisch |
---|---|
Titel | 11th International Conference On Quality Software |
Seiten | 121-130 |
DOIs | |
Publikationsstatus | Veröffentlicht - 2011 |
Veranstaltung | 11th International Conference on Quality Software: QSIC 2011 - Madrid, Spanien Dauer: 13 Juli 2011 → 14 Juli 2011 |
Konferenz
Konferenz | 11th International Conference on Quality Software |
---|---|
Kurztitel | QSIC 2011 |
Land/Gebiet | Spanien |
Ort | Madrid |
Zeitraum | 13/07/11 → 14/07/11 |
Fields of Expertise
- Information, Communication & Computing