DocumentCode
1900669
Title
Puzzle-based automatic testing: bringing humans into the loop by solving puzzles
Author
Ning Chen ; Sunghun Kim
Author_Institution
Hong Kong Univ. of Sci. & Technol., Hong Kong, China
fYear
2012
fDate
3-7 Sept. 2012
Firstpage
140
Lastpage
149
Abstract
Recently, many automatic test generation techniques have been proposed, such as Randoop, Pex and jCUTE. However, usually test coverage of these techniques has been around 50-60% only, due to several challenges, such as 1) the object mutation problem, where test generators cannot create and/or modify test inputs to desired object states; and 2) the constraint solving problem, where test generators fail to solve path conditions to cover certain branches. By analyzing branches not covered by state-of-the-art techniques, we noticed that these challenges might not be so difficult for humans. To verify this hypothesis, we propose a Puzzle-based Automatic Testing environment (PAT) which decomposes object mutation and complex constraint solving problems into small puzzles for humans to solve. We generated PAT puzzles for two open source projects and asked different groups of people to solve these puzzles. It was shown that they could be effectively solved by humans: 231 out of 400 puzzles were solved by humans at an average speed of one minute per puzzle. The 231 puzzle solutions helped cover 534 and 308 additional branches (7.0% and 5.8% coverage improvement) in the two open source projects, on top of the saturated branch coverages achieved by the two state-of-the-art test generation techniques.
Keywords
program testing; public domain software; PAT; Pex; Randoop; automatic test generation techniques; complex constraint solving problems; jCUTE; object mutation problem; open source projects; puzzle-based automatic testing environment; Code Coverage; Human Computation; Testing;
fLanguage
English
Publisher
ieee
Conference_Titel
Automated Software Engineering (ASE), 2012 Proceedings of the 27th IEEE/ACM International Conference on
Conference_Location
Essen
Print_ISBN
978-1-4503-1204-2
Type
conf
DOI
10.1145/2351676.2351697
Filename
6494914
Link To Document