Show simple item record

Finding the needles in the haystack: Generating legal test inputs for object-oriented programs

dc.date.accessioned2006-09-05T16:31:22Z
dc.date.accessioned2018-11-24T10:25:01Z
dc.date.available2006-09-05T16:31:22Z
dc.date.available2018-11-24T10:25:01Z
dc.date.issued2006-08-31
dc.identifier.urihttp://hdl.handle.net/1721.1/33959
dc.identifier.urihttp://repository.aust.edu.ng/xmlui/handle/1721.1/33959
dc.description.abstractA test input for an object-oriented program typically consists of asequence of method calls that use the API defined by the programunder test. Generating legal test inputs can be challenging because,for some programs, the set of legal method sequences is much smallerthan the set of all possible sequences; without a formalspecification of legal sequences, an input generator is bound toproduce mostly illegal sequences.We propose a scalable technique that combines dynamic analysis withrandom testing to help an input generator create legal test inputswithout a formal specification, even for programs in whichmost sequences are illegal. The technique uses an example executionof the program to infer a model of legal call sequences, and usesthe model to guide a random input generator towards legal butbehaviorally-diverse sequences.We have implemented our technique for Java, in a tool calledPalulu, and evaluated its effectiveness in creating legal inputsfor real programs. Our experimental results indicate that thetechnique is effective and scalable. Our preliminary evaluationindicates that the technique can quickly generate legal sequencesfor complex inputs: in a case study, Palulu created legal testinputs in seconds for a set of complex classes, for which it took anexpert thirty minutes to generate a single legal input.
dc.format.extent8 p.
dc.format.extent412269 bytes
dc.format.extent923064 bytes
dc.language.isoen_US
dc.titleFinding the needles in the haystack: Generating legal test inputs for object-oriented programs


Files in this item

FilesSizeFormatView
MIT-CSAIL-TR-2006-056.pdf412.2Kbapplication/pdfView/Open
MIT-CSAIL-TR-2006-056.ps923.0Kbapplication/postscriptView/Open

This item appears in the following Collection(s)

Show simple item record