2010
DOI: 10.1007/978-3-642-12592-8_10
|View full text |Cite
|
Sign up to set email alerts
|

Towards a Framework for Constraint-Based Test Case Generation

Abstract: In this paper, we propose an approach for automated test case generation based on techniques from constraint programming (CP). We advocate the use of standard CP search strategies in order to express preferences on the generated test cases and to obtain the desired degree of coverage. We develop our framework in the concrete context of an imperative language and show that the technique is sufficiently powerful to deal with arbitrary pointer-based data-structures allocated on the heap.

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
3
1
1

Citation Types

0
22
0

Year Published

2011
2011
2015
2015

Publication Types

Select...
6
1
1

Relationship

1
7

Authors

Journals

citations
Cited by 15 publications
(22 citation statements)
references
References 24 publications
0
22
0
Order By: Relevance
“…An important aspect of the language is that it allows for a clean modeling of all execution paths, including those that may lead to an erroneous interaction between the program and the database. Secondly, we generalize the white-box test input generation approach from [8] to ImperDB programs. Test inputs can be generated with respect to any (structural) code coverage criterion.…”
Section: Introductionmentioning
confidence: 99%
“…An important aspect of the language is that it allows for a clean modeling of all execution paths, including those that may lead to an erroneous interaction between the program and the database. Secondly, we generalize the white-box test input generation approach from [8] to ImperDB programs. Test inputs can be generated with respect to any (structural) code coverage criterion.…”
Section: Introductionmentioning
confidence: 99%
“…Despite theoretical limitations of automatic test case generation 2 , dealing with these hard combinatorial problems for real-world programs is challenging. Constraint-based testing was introduced to tackle these problems for various applications, including automatic white-box test inputs generation for imperative programs [3][4][5][6][7][8][9][10][11][12] and object-oriented programs [13][14][15][16][17][18], test pattern generation in hardware design [19][20][21], model-based test cases generation [22][23][24][25][26][27], and counter-examples generation [28][29][30][31].…”
Section: Constraint-based Testingmentioning
confidence: 99%
“…More recent approaches, such as [11], enable white-box (i.e., code-driven) testing of an imperative language with pointers and heap by symbolic execution of a smallstep operational semantics in CLP. Further work on testing has been done in [8,22] for the generation of heap-allocated data structures, following a fixed coverage criteria for the choice of the test cases.…”
Section: Related Work and Conclusionmentioning
confidence: 99%