Test input generation for java containers using state matching
The DOI matches its Crossref record; 29 of the 29 references it cites were found in a registry or an index.
Abstract
The popularity of object-oriented programming has led to the wide use of container libraries. It is important for the reliability of these containers that they are tested adequately. We describe techniques for automated test input generation of Java container classes. Test inputs are sequences of method calls from the container interface. The techniques rely on state matching to avoid generation of redundant tests. Exhaustive techniques use model checking with explicit or symbolic execution to explore all the possible test sequences up to predefined input sizes. Lossy techniques rely on abstraction mappings to compute and store abstract versions of the concrete states; they explore underapproximations of all the possible test sequences.We have implemented the techniques on top of the Java PathFinder model checker and we evaluate them using four Java container classes. We compare state matching based techniques and random selection for generating test inputs, in terms of testing coverage. We consider basic block coverage and a form of predicate coverage - that measures whether all combinations of a predetermined set of predicates are covered at each basic block. The exhaustive techniques can easily obtain basic block coverage, but cannot obtain good predicate coverage before running out of memory. On the other hand, abstract matching turns out to be a powerful approach for generating test inputs to obtain high predicate coverage. Random selection performed well except on the examples that contained complex input spaces, where the lossy abstraction techniques performed better.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Symbolic execution and program testing
King, J. C. (1976) · Communications of the ACM · doi:10.1145/360248.360252 · Cited by 3,031
Visser, W., Havelund, K., Brat, G., Park, S., & Lerda, F. (2003) · Automated Software Engineering · doi:10.1023/a:1022920129859 · Cited by 1,343
Self-citationBandera: extracting finite-state models from Java source code
Corbett, J. C., Dwyer, M. B., Hatcliff, J., Laubach, S., Păsăreanu, C. S., Robby, & Zheng, H. (2000) · Proceedings of the 22nd international conference on Software engineering - ICSE '00 · doi:10.1145/337180.337234 · Cited by 1,059
Self-citationModel checking for programming languages using VeriSoft
Godefroid, P. (1997) · Proceedings of the 24th ACM SIGPLAN-SIGACT symposium on Principles of programming languages - POPL '97 · doi:10.1145/263699.263717 · Cited by 825
The Omega test: a fast and practical integer programming algorithm for dependence analysis
Pugh, W. (1991) · Proceedings of the 1991 ACM/IEEE conference on Supercomputing - Supercomputing '91 · doi:10.1145/125826.125848 · Cited by 750
Korat: automated testing based on Java predicates
Boyapati, C., Khurshid, S., & Marinov, D. (2002) · ACM SIGSOFT Software Engineering Notes · doi:10.1145/566171.566191 · Cited by 593
Generalized Symbolic Execution for Model Checking and Testing
Khurshid, S., PĂsĂreanu, C. S., & Visser, W. (2003) · Lecture Notes in Computer Science · doi:10.1007/3-540-36577-x_40 · Cited by 568
Self-citationA practical algorithm for exact array dependence analysis
Pugh, W. (1992) · Communications of the ACM · doi:10.1145/135226.135233 · Cited by 568
Test input generation with java PathFinder
Visser, W., Pǎsǎreanu, C. S., & Khurshid, S. (2004) · Proceedings of the 2004 ACM SIGSOFT international symposium on Software testing and analysis · doi:10.1145/1007512.1007526 · Cited by 501 · cited 2×
“In previous work [ 30 ], we showed how to use model checking and symbolic execution to generate test inputs to achieve structural coverage for code that manipulates complex data structures, such as TreeMap.”
MethodSelf-citationEvolutionary testing of classes
Tonella, P. (2004) · Proceedings of the 2004 ACM SIGSOFT international symposium on Software testing and analysis · doi:10.1145/1007512.1007528 · Cited by 410 · cited 1×
“genetic algorithms) for automated test case generation [27, 5].”
BackgroundPareto efficient multi-objective test case selection
Yoo, S., & Harman, M. (2007) · Proceedings of the 2007 international symposium on Software testing and analysis · doi:10.1145/1273463.1273483 · Cited by 357
Solving shape-analysis problems in languages with destructive updating
Sagiv, M., Reps, T., & Wilhelm, R. (1998) · ACM Transactions on Programming Languages and Systems · doi:10.1145/271510.271517 · Cited by 322
The ASTOOT approach to testing object-oriented programs
Doong, R.-K., & Frankl, P. G. (1994) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/192218.192221 · Cited by 321 · cited 1×
“The ASTOOT tool [9] requires algebraic specifications to generate tests (including oracles) for object oriented programs.”
MethodUsing model checking to generate tests from specifications
Ammann, P. E., Black, P. E., & Majurski, W. (2002) · Proceedings Second International Conference on Formal Engineering Methods (Cat.No.98EX241) · doi:10.1109/icfem.1998.730569 · Cited by 320
Korat: automated testing based on Java predicates
Boyapati, C., Khurshid, S., & Marinov, D. (2002) · Proceedings of the 2002 ACM SIGSOFT international symposium on Software testing and analysis · doi:10.1145/566172.566191 · Cited by 302 · cited 8×
“The Korat [7] tool, see also TestEra [23], supports nonisomorphic generation of complex input structures.”
MethodInfluentialSymstra: A Framework for Generating Object-Oriented Unit Tests Using Symbolic Execution
Xie, T., Marinov, D., Schulte, W., & Notkin, D. (2005) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-31980-1_24 · Cited by 287 · cited 3×
“On the other hand, Symstra [33] is a test generation tool that uses symbolic execution and state matching for generating test sequences for Java code this is similar to our technique that uses symbolic execution and subsumption checking.”
MethodInfluentialTestEra: a novel framework for automated testing of Java programs
Marinov, D., & Khurshid, S. (2005) · Proceedings 16th Annual International Conference on Automated Software Engineering (ASE 2001) · doi:10.1109/ase.2001.989787 · Cited by 259 · cited 5×
“The Korat [7] tool, see also TestEra [23], supports nonisomorphic generation of complex input structures.”
MethodInfluentialGenerating Tests from Counterexamples
Beyer, D., Chlipala, A. J., Henzinger, T. A., Jhala, R., & Majumdar, R. (2004) · Cited by 198
Generating finite state machines from abstract state machines
Grieskamp, W., Gurevich, Y. G., Schulte, W., & Veanes, M. (2002) · ACM SIGSOFT Software Engineering Notes · doi:10.1145/566171.566190 · Cited by 186
A Temporal Logic Based Theory of Test Coverage and Generation
Hong, H. S., Lee, I., Sokolsky, O. V., & Ural, H. (2002) · Lecture notes in computer science · doi:10.1007/3-540-46002-0_23 · Cited by 158 · cited 1×
“The work presented here is related to the use of model checking for test input generation [1, 10, 15, 17].”
BackgroundRostra: A framework for detecting redundant object-oriented unit tests
Xie, T., Profile, S., Xie, T., Marinov, D., & Notkin, D. (2004) · Cited by 138
A Theory of Predicate-Complete Test Coverage and Generation
Ball, T. (2005) · Lecture notes in computer science · doi:10.1007/11561163_1 · Cited by 117
Evolutionary testing in the presence of loop-assigned flags: a testability transformation approach
Baresel, A., Binkley, D., Harman, M., & Korel, B. (2004) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/1007512.1007527 · Cited by 111 · cited 1×
“genetic algorithms) for automated test case generation [27, 5].”
BackgroundGenerating finite state machines from abstract state machines
Grieskamp, W., Gurevich, Y. G., Schulte, W., & Veanes, M. (2002) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/566172.566190 · Cited by 108 · cited 1×
“The AsmLT model-based testing tool [12] uses concrete state space exploration techniques and abstraction mappings, in a way similar to what we present here.”
MethodHeuristics for model checking Java programs
Groce, A., & Visser, W. (2004) · International Journal on Software Tools for Technology Transfer · doi:10.1007/s10009-003-0130-9 · Cited by 105
Self-citationSymbolic Execution with Abstract Subsumption Checking
Anand, S., Păsăreanu, C. S., & Visser, W. (2006) · Lecture notes in computer science · doi:10.1007/11691617_10 · Cited by 55 · cited 3×
“Subsumption checking in [2] is more general than here (it handles partially initialized heap structures and summary nodes).”
BackgroundMethodSelf-citationExploiting heap symmetries in explicit-state model checking of software
Iosif, R. (2005) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2001.989811 · Cited by 54 · cited 3×
“Strictly speaking, this is not really an abstraction (there is no information loss) but rather a canonical complete encoding of the container state, similar to the linearization used for representing the complete concrete heap (shape plus data), to achieve heap symmetry reduction in model checking [18].”
BackgroundMethodConcrete Model Checking with Abstract Matching and Refinement
Păsăreanu, C. S., Pelánek, R., & Visser, W. (2005) · Lecture notes in computer science · doi:10.1007/11513988_7 · Cited by 52
Self-citationTest input generation for red-black trees using abstraction
Visser, W., Păsăreanu, C. S., & Pelánek, R. (2005) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/1101908.1101983 · Cited by 26
Self-citation
Cited by
Feedback-Directed Random Test Generation
Pacheco, C., Lahiri, S. K., Ernst, M. D., & Ball, T. (2007) · 29th International Conference on Software Engineering (ICSE'07) · doi:10.1109/icse.2007.37 · Cited by 863
A survey of symbolic execution techniques
Baldoni, R., Coppa, E., D’elia, D. C., Demetrescu, C., & Finocchi, I. (2019) · ACM Computing Surveys · doi:10.1145/3182657 · Cited by 708
Symbolic execution for software testing in practice: preliminary assessment
Cadar, C., Godefroid, P., Khurshid, S., Păsăreanu, C. S., Sen, K., Tillmann, N., & Visser, W. (2011) · Proceedings of the 33rd International Conference on Software Engineering · doi:10.1145/1985793.1985995 · Cited by 325
Self-citationDifferential symbolic execution
Person, S., Dwyer, M. B., Elbaum, S., & Pǎsǎreanu, C. S. (2008) · Proceedings of the 16th ACM SIGSOFT International Symposium on Foundations of software engineering · doi:10.1145/1453101.1453131 · Cited by 268
Self-citationJPF–SE: A Symbolic Execution Extension to Java PathFinder
Anand, S., Păsăreanu, C. S., & Visser, W. (2007) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-71209-1_12 · Cited by 232
“JPF–SE enables symbolic execution of Java programs during explicit state model checking, which has the following unique characteristics: (a) checks the behavior of code using symbolic values that represent data for potentially infinite input domains, instead of enumerating and checking for small concrete data domains…”
MethodSelf-citation
Metadata
- Authors
- Visser, W., Pǎsǎreanu, C. S., & Pelánek, R.
- Venue
- Proceedings of the 2006 international symposium on Software testing and analysis
- Publisher
- ACM
- Published
- 2006-07-21
- Pages
- 37-48
- OpenAlex
- W2012997183
- Cited by
- 168
- References
- 29
- FWCI
- 9.40
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.