TY - GEN
T1 - A comparison of constraint-based and sequence-based generation of complex input data structures
AU - Sharma, Rohan
AU - Gligoric, Milos
AU - Jagannath, Vilas
AU - Marinov, Darko
PY - 2010/6/25
Y1 - 2010/6/25
N2 - Generation of complex input data structures is one of the challenging tasks in testing. Manual generation of such structures is tedious and error-prone. Automated generation approaches include those based on constraints, which generate structures at the concrete representation level, and those based on sequences of operations, which generate structures at the abstract representation level by inserting or removing elements to or from the structure. In this paper, we compare these two approaches for five complex data structures used in previous research studies. Our experiments show several interesting results. First, constraint-based generation can generate more structures than sequence-based generation. Second, the extra structures can lead to false alarms in testing. Third, some concrete representations of structures cannot be generated only with sequences of insert operations. Fourth, slightly different implementations of the same data structure can behave differently in testing.
AB - Generation of complex input data structures is one of the challenging tasks in testing. Manual generation of such structures is tedious and error-prone. Automated generation approaches include those based on constraints, which generate structures at the concrete representation level, and those based on sequences of operations, which generate structures at the abstract representation level by inserting or removing elements to or from the structure. In this paper, we compare these two approaches for five complex data structures used in previous research studies. Our experiments show several interesting results. First, constraint-based generation can generate more structures than sequence-based generation. Second, the extra structures can lead to false alarms in testing. Third, some concrete representations of structures cannot be generated only with sequences of insert operations. Fourth, slightly different implementations of the same data structure can behave differently in testing.
UR - http://www.scopus.com/inward/record.url?scp=77953761289&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=77953761289&partnerID=8YFLogxK
U2 - 10.1109/ICSTW.2010.7
DO - 10.1109/ICSTW.2010.7
M3 - Conference contribution
AN - SCOPUS:77953761289
SN - 9780769540504
T3 - ICSTW 2010 - 3rd International Conference on Software Testing, Verification, and Validation Workshops
SP - 337
EP - 342
BT - ICSTW 2010 - 3rd International Conference on Software Testing, Verification, and Validation Workshops
T2 - 3rd International Conference on Software Testing, Verification, and Validation Workshops, ICSTW 2010
Y2 - 6 April 2010 through 10 April 2010
ER -