Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/2970276.2970335acmconferencesArticle/Chapter ViewAbstractPublication PagesaseConference Proceedingsconference-collections
research-article

Greedy combinatorial test case generation using unsatisfiable cores

Published: 25 August 2016 Publication History

Abstract

Combinatorial testing aims at covering the interactions of parameters in a system under test, while some combinations may be forbidden by given constraints (forbidden tuples). In this paper, we illustrate that such forbidden tuples correspond to unsatisfiable cores, a widely understood notion in the SAT solving community. Based on this observation, we propose a technique to detect forbidden tuples lazily during a greedy test case generation, which significantly reduces the number of required SAT solving calls. We further reduce the amount of time spent in SAT solving by essentially ignoring constraints while constructing each test case, but then “amending” it to obtain a test case that satisfies the constraints, again using unsatisfiable cores. Finally, to complement a disturbance due to ignoring constraints, we implement an efficient approximative SAT checking function in the SAT solver Lingeling. Through experiments we verify that our approach significantly improves the efficiency of constraint handling in our greedy combinatorial testing algorithm.

References

[1]
P. Abad, N. Aguirre, V. Bengolea, D. Ciolek, M. F. Frias, J. Galeotti, T. Maibaum, M. Moscato, N. Rosner, and I. Vissani. Improving test generation under rich contracts by tight bounds and incremental sat solving. In ICST 2013, pages 21–30, 2013.
[2]
A. Biere. Lingeling, Plingeling and Treengeling entering the SAT competition 2013. In SAT Competition 2013, pages 51–52, 2013.
[3]
A. Biere. Yet another local search solver and Lingeling and friends entering the SAT Competition 2014. In SAT Competition 2014, volume B-2014-2 of Department of Computer Science Series of Publications B, pages 39– 40. University of Helsinki, 2014.
[4]
A. Biere, A. Cimatti, E. M. Clarke, and Y. Zhu. Symbolic model checking without BDDs. In TACAS 1999, volume 1579 of LNCS, pages 193–207, 1999.
[5]
A. Biere, M. J. H. Heule, H. van Maaren, and T. Walsh, editors. Handbook of Satisfiability, volume 185 of FAIA. IOS Press, February 2009.
[6]
M. N. Borazjany, L. Yu, Y. Lei, R. Kacker, and R. Kuhn. Combinatorial testing of ACTS: A case study. In ICST 2012, pages 591–600, 2012.
[7]
R. C. Bryce and C. J. Colbourn. The density algorithm for pairwise interaction testing. Softw. Test., Verif. Reliab., 17:159–182, 2007.
[8]
R. C. Bryce, C. J. Colbourn, and M. B. Cohen. A framework of greedy methods for constructing interaction test suites. In ICSE 2005, pages 146–155, 2005.
[9]
D. M. Cohen, S. R. Dalal, M. L. Fredman, and G. C. Patton. The AETG system: An approach to testing based on combinatorial design. IEEE Trans. Software Eng., 23(7):437–444, 1997.
[10]
M. B. Cohen, M. B. Dwyer, and J. Shi. Constructing interaction test suites for highly-configurable systems in the presence of constraints: A greedy approach. IEEE Trans. Software Eng., 34(5):633–650, 2008.
[11]
J. Czerwonka. Pairwise testing in real world. In PNSQC 2006, pages 419–430, 2006.
[12]
M. Davis, G. Logemann, and D. Loveland. A machine program for theorem-proving. Communications of the ACM, 4:394–397, 1962.
[13]
N. Eén and N. Sörensson. Temporal induction by incremental SAT solving. Electr. Notes Theor. Comput. Sci., 89(4):543–560, 2003.
[14]
N. Eén and N. Sörensson. An extensible SAT-solver. In SAT 2003, volume 2919 of LNCS, pages 502–518, 2004.
[15]
E. Farchi, I. Segall, and R. Tzoref-Brill. Using projections to debug large combinatorial models. In IWCT 2013, pages 311–320, 2013.
[16]
B. J. Garvin, M. B. Cohen, and M. B. Dwyer. An improved meta-heuristic search for constrained interaction testing. In SSBSE 2009, pages 13–22, 2009.
[17]
B. J. Garvin, M. B. Cohen, and M. B. Dwyer. Evaluating improvements to a meta-heuristic search for constrained interaction testing. Empir. Software Eng., 16: 61–102, 2011.
[18]
I. P. Gent and P. Nightingale. A new encoding of alldifferent into SAT. In International Workshop on Modelling and Reformulating Constraint Satisfaction, pages 95–110, 2004.
[19]
B. Hnich, S. D. Prestwich, E. Selensky, and B. M. Smith. Constraint models for the covering test problem. Constraints, 11(2-3):199–219, 2006.
[20]
Y. Jia, M. B. Cohen, M. Harman, and J. Petke. Learning combinatorial interaction test generation strategies using hyperheuristic search. In ICSE 2015, pages 540– 550, 2015.
[21]
M. F. Johansen, Ø. Haugen, and F. Fleurey. An algorithm for generating t-wise covering arrays from large feature models. In SPLC 2012, Volume 1, pages 46–55, 2012.
[22]
T. Kitamura, A. Yamada, G. Hatayama, C. Artho, E. Choi, T. B. N. Do, Y. Oiwa, and S. Sakuragi. Combinatorial testing for tree-structured test models with constraints. In QRS 2015, pages 141–150, 2015.
[23]
D. R. Kuhn, D. R. Wallace, and A. M. Gallo, Jr. Software fault interactions and implications for software testing. IEEE Trans. Software Eng., 30(6):418–421, 2004.
[24]
D. R. Kuhn, R. N. Kacker, and Y. Lei. Introduction to Combinatorial Testing. CRC press, 2013.
[25]
D. R. Kuhn, R. Bryce, F. Duan, L. S. Ghandehari, Y. Lei, and R. N. Kacker. Chapter one – combinatorial testing: Theory and practice. volume 99 of Advances in Computers, pages 1–66. Elsevier, 2015.
[26]
Y. Lei, R. Kacker, D. R. Kuhn, V. Okun, and J. Lawrence. IPOG: A general strategy for t-way software testing. In ECBS 2007, pages 549–556, 2007.
[27]
J. Lin, C. Luo, S. Cai, K. Su, D. Hao, and L. Zhang. TCA: An efficient two-mode meta-heuristic algorithm for combinatorial test generation. In ASE 2015, pages 494–505, 2015.
[28]
J. Marques-Silva, I. Lynce, and S. Malik. Conflictdriven clause learning sat solvers. In A. Biere, M. J. H. Heule, H. van Maaren, and T. Walsh, editors, Handbook of Satisfiability, chapter 4, pages 131–153. IOS Press, 2009.
[29]
T. Nanba, T. Tsuchiya, and T. Kikuno. Using satisfiability solving for pairwise testing in the presence of constraints. IEICE Trans. Fundamentals, E95-A(9), 2012.
[30]
C. Nie and H. Leung. A survey of combinatorial testing. ACM Computing Surveys, 43(2):11, 2011.
[31]
I. Segall, R. Tzoref-Brill, and E. Farchi. Using binary decision diagrams for combinatorial test design. In ISSTA 2011, pages 254–264, 2011.
[32]
M. Shafique and Y. Labiche. A systematic review of state-based test tools. Int. J. Softw. Tools Technol. Transfer, 17:59–76, 2015.
[33]
O. Shtrichman. Pruning techniques for the SAT-based bounded model checking problem. In CHARME 2001, volume 2144 of LNCS, pages 58–70, 2001.
[34]
K. Tatsumi. Test case design support system. In Proc. International Conference on Quality Control (ICQC 1987), pages 615–620, 1987.
[35]
F. Wilcoxon. Individual comparisons by ranking methods. Biometrics Bulletin, 1(6):80–83, 1945.
[36]
ISSN 00994987.
[37]
A. Yamada, T. Kitamura, C. Artho, E. Choi, Y. Oiwa, and A. Biere. Optimization of combinatorial testing by incremental SAT solving. In ICST 2015, pages 1–10. IEEE, 2015.
[38]
L. Yu, Y. Lei, M. Nourozborazjany, R. N. Kacker, and D. R. Kuhn. An efficient algorithm for constraint handling in combinatorial test generation. In ICST 2013, pages 242–251. IEEE, 2013.
[39]
L. Yu, F. Duan, Y. Lei, R. N. Kacker, and D. R. Kuhn. Constraint handling in combinatorial test generation using forbidden tuples. In IWCT 2015, pages 1–9, 2015.

Cited By

View all
  • (2024)Beyond Pairwise Testing: Advancing 3-wise Combinatorial Interaction Testing for Highly Configurable SystemsProceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis10.1145/3650212.3680309(641-653)Online publication date: 11-Sep-2024
  • (2024)A Scalable $t$t-Wise Coverage Estimator: Algorithms and ApplicationsIEEE Transactions on Software Engineering10.1109/TSE.2024.341991950:8(2021-2039)Online publication date: 1-Aug-2024
  • (2024)Effectively computing high strength mixed covering arrays with constraintsJournal of Parallel and Distributed Computing10.1016/j.jpdc.2023.104791185(104791)Online publication date: Mar-2024
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
ASE '16: Proceedings of the 31st IEEE/ACM International Conference on Automated Software Engineering
August 2016
899 pages
ISBN:9781450338455
DOI:10.1145/2970276
  • General Chair:
  • David Lo,
  • Program Chairs:
  • Sven Apel,
  • Sarfraz Khurshid
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 25 August 2016

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Combinatorial testing
  2. SAT solving
  3. test case generation

Qualifiers

  • Research-article

Funding Sources

Conference

ASE'16
Sponsor:

Acceptance Rates

Overall Acceptance Rate 82 of 337 submissions, 24%

Upcoming Conference

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)20
  • Downloads (Last 6 weeks)2
Reflects downloads up to 19 Sep 2024

Other Metrics

Citations

Cited By

View all
  • (2024)Beyond Pairwise Testing: Advancing 3-wise Combinatorial Interaction Testing for Highly Configurable SystemsProceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis10.1145/3650212.3680309(641-653)Online publication date: 11-Sep-2024
  • (2024)A Scalable $t$t-Wise Coverage Estimator: Algorithms and ApplicationsIEEE Transactions on Software Engineering10.1109/TSE.2024.341991950:8(2021-2039)Online publication date: 1-Aug-2024
  • (2024)Effectively computing high strength mixed covering arrays with constraintsJournal of Parallel and Distributed Computing10.1016/j.jpdc.2023.104791185(104791)Online publication date: Mar-2024
  • (2023)CAmpactor: A Novel and Effective Local Search Algorithm for Optimizing Pairwise Covering ArraysProceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3611643.3616284(81-93)Online publication date: 30-Nov-2023
  • (2023)Generating Pairwise Covering Arrays for Highly Configurable Software SystemsProceedings of the 27th ACM International Systems and Software Product Line Conference - Volume A10.1145/3579027.3608998(261-267)Online publication date: 28-Aug-2023
  • (2023)Quantum Computing for Feature Model AnalysisProceedings of the 27th ACM International Systems and Software Product Line Conference - Volume A10.1145/3579027.3608971(1-7)Online publication date: 28-Aug-2023
  • (2023)A feature commonality-based search strategy to find high -wise covering solutions in feature modelsConstraints10.1007/s10601-023-09366-z28:4(521-548)Online publication date: 1-Dec-2023
  • (2023)Balanced covering arrays: A classification of covering arrays and packing arrays via exact methodsJournal of Combinatorial Designs10.1002/jcd.2187631:4(205-261)Online publication date: 5-Feb-2023
  • (2022)Validating the correctness of reactive systems specifications through systematic explorationProceedings of the 25th International Conference on Model Driven Engineering Languages and Systems10.1145/3550355.3552425(132-142)Online publication date: 23-Oct-2022
  • (2022)SamplingCA: effective and efficient sampling-based pairwise testing for highly configurable software systemsProceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3540250.3549155(1185-1197)Online publication date: 7-Nov-2022
  • Show More Cited By

View Options

Get Access

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media