Skip to Main content Skip to Navigation
Journal articles

A Uniform Random Test Data Generator for Path Testing

Arnaud Gotlieb 1 Matthieu Petit 1
1 CELTIQUE - Software certification with semantic analysis
Inria Rennes – Bretagne Atlantique , IRISA-D4 - LANGAGE ET GÉNIE LOGICIEL
Abstract : Path-oriented Random Testing (PRT) aims at generating a uniformly spread out sequence of random test data that execute a single control flow path within a program. The main challenge of PRT lies in its ability to build efficiently such a test suite in order to minimize the number of rejects (test data that execute another control flow path). We address this problem with an original divide-and-conquer approach based on constraint reasoning over finite domains, a well-recognized Constraint Programming technique. Our approach first derives path conditions by using backward symbolic execution and computes a tight over-approximation of their associated subdomain by using constraint propagation and constraint refutation. Second, a uniform random test data generator is extracted from this approximated subdomain. We implemented this approach and got experimental results that show the practical benefits of PRT based on constraint reasoning. On average, we got a two-order magnitude CPU time improvement over standard Random Testing on a set of paths extracted from classical benchmark programs.
Document type :
Journal articles
Complete list of metadatas

Cited literature [24 references]  Display  Hide  Download

https://hal.inria.fr/inria-00540283
Contributor : Arnaud Gotlieb <>
Submitted on : Friday, November 26, 2010 - 12:16:52 PM
Last modification on : Friday, March 6, 2020 - 1:20:26 AM
Long-term archiving on: : Sunday, February 27, 2011 - 2:50:05 AM

File

Gotlieb_Petit.pdf
Files produced by the author(s)

Identifiers

Citation

Arnaud Gotlieb, Matthieu Petit. A Uniform Random Test Data Generator for Path Testing. Journal of Systems and Software, Elsevier, 2010, 83 (12), pp.2618-2626. ⟨10.1016/j.jss.2010.08.021⟩. ⟨inria-00540283⟩

Share

Metrics

Record views

557

Files downloads

460