In this paper, we present a test case generation method in which test cases are generated from Excel-based functional specications, called error-check/update specications. This method has the following two characteristics. 1) Logical structures and constraint conditions in error-check/update specications are translated into Java code. Then the trans- lated Java code is executed symbolically. A solution found by solving combinations of the constraint conditions, during the symbolic execution can serve as a test case for the Excel- based specication. 2)We present test case selection method to extract a suitable test-suite from the large number of test cases typically generated by the above symbolic execution. Our test case selection is based on a path condition-based test case selection criterion, proposed in our previous work, in which the selected test cases covers all the atomic conditions of path conditions collected during symbolic execution. In this paper, we extend this method with classication of test cases and priority of variable values with the aim of improv- ing the quality of the selected test-suite. We implemented the test case generation method in our tool and evaluated this method with Excel-based test specications for a real- world nancial system.
[1]
Corina S. Pasareanu,et al.
JPF-SE: A Symbolic Execution Extension to Java PathFinder
,
2007,
TACAS.
[2]
Boris Beizer,et al.
Software testing techniques (2. ed.)
,
1990
.
[3]
Michael R. Lowry,et al.
Combining unit-level symbolic execution and system-level concrete execution for testing nasa software
,
2008,
ISSTA '08.
[4]
Aaas News,et al.
Book Reviews
,
1893,
Buffalo Medical and Surgical Journal.
[5]
Koushik Sen.
DART: Directed Automated Random Testing
,
2009,
Haifa Verification Conference.
[6]
James C. King,et al.
Symbolic execution and program testing
,
1976,
CACM.
[7]
Tadahiro Uehara,et al.
Test Case Selection Based on Path Condtions of Symbolic Execution
,
2012,
2012 19th Asia-Pacific Software Engineering Conference.
[8]
Sigrid Eldh.
Software Testing Techniques
,
2007
.
[9]
Dawson R. Engler,et al.
KLEE: Unassisted and Automatic Generation of High-Coverage Tests for Complex Systems Programs
,
2008,
OSDI.
[10]
Bruno Legeard,et al.
A taxonomy of model-based testing
,
2006
.