Back to results

Colorado State University. Libraries

Random generation of valid object configurations for testing object-oriented programs

Abstract

dc:description.abstract

A unit test case for an object-oriented program typically requires the creation of an object configuration on which the method under test is invoked. Certain approaches, such as RANDOOP, perform feedback-directed random test generation. RANDOOP incrementally generates test cases by only extending the valid ones. Invalid test cases are not explored, and thus, RANDOOP can miss the creation of some valid object configurations. In our approach, we generate a new random object configuration for each test case. This configuration may or may not satisfy the multiplicity constraints in the UML class model of the program. Instead of discarding an invalid configuration, we attempt to fix it and generate a valid test case. Since we do not reject any test case, and do not depend on the feedback from previous test cases, our object configurations are likely to obtain a higher coverage of the domain of valid configurations than RANDOOP. We implemented our approach in a prototype tool called RanTGen, which produces JUnit-style test cases. We also created an Eclipse plugin for RanTGen. Our preliminary results show that RanTGen takes less time than RANDOOP to generate the same number of test cases. RanTGen test cases kill more mutants and achieve higher coverage in terms of statements, branches, and association-end multiplicity (AEM) than RANDOOP test cases. The AEM coverage criterion defines the set of representative multiplicity tuples that must be created during a test, and is used to measure coverage of the domain of valid configurations.

Degree

thesis:*
Name thesis:degree_name
Master of Science (M.S.)
Level thesis:degree_level
Masters
Discipline thesis:degree_discipline
Computer Science
Grantor dc:publisher
Colorado State University. Libraries
Year dc:date.issued
2012

Author and committee

dc:creator, dc:contributor.*
Authors dc:creator
  • Sadhu, Devadatta, author
  • Ghosh, Sudipto, advisor
  • France, Robert, committee member
  • Turk, Daniel, committee member

Subjects

dc:subject × 5

Rights

dc:rights
Statement dc:rights
  • Copyright and other restrictions may apply. User is responsible for compliance with all applicable laws. For information about copyright law, please see https://libguides.colostate.edu/copyright.
Language dc:language.iso
eng, English

Identifiers

dc:identifier.*
Identifier
ETDF2012500098COMS
OAI identifier oai:identifier
oai:mountainscholar.org:10217/66679

Chain of custody

source
Harvested from
Colorado State University
Base URL
api.mountainscholar.org/server/oai/request
Last updated
2026-07-27
Source record
OAI-PMH GetRecord
citation

Sadhu, Devadatta, author; Ghosh, Sudipto, advisor; France, Robert, committee member; Turk, Daniel, committee member. Random generation of valid object configurations for testing object-oriented programs. Masters thesis, Colorado State University. Libraries, 2012. http://hdl.handle.net/10217/66679