Bounded Exhaustive Test Input Generation from Hybrid Invariants

被引:0
|
作者
Rosner, Nicolas [1 ]
Bengolea, Valeria [2 ]
Ponzio, Pablo [2 ]
Khalek, Shadi Abdul [3 ]
Aguirre, Nazareno [2 ,4 ]
Frias, Marcelo F. [5 ,6 ]
Khurshid, Sarfraz [7 ]
机构
[1] Univ Buenos Aires, FCEyN, Dept Comp Sci, Buenos Aires, DF, Argentina
[2] Univ Rio Cuarto, FCEFQyN, Dept Comp Sci, Rio Cuarto, Argentina
[3] Google, Mountain View, CA USA
[4] Consejo Nacl Invest Cient & Tecn, Rio Cuarto, Argentina
[5] Inst Tecnol Buenos Aires, Dept Software Engn, Buenos Aires, DF, Argentina
[6] Consejo Nacl Invest Cient & Tecn, RA-1033 Buenos Aires, DF, Argentina
[7] Univ Texas Austin, Austin, TX 78712 USA
基金
美国国家科学基金会;
关键词
automated test generation; bounded exhaustive testing; SAT solving; Korat; Alloy; transcoping;
D O I
10.1145/2714064.2660232
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present a novel technique for producing bounded exhaustive test suites from hybrid invariants, i.e., invariants that are expressed imperatively, declaratively, or as a combination of declarative and imperative predicates. Hybrid specifications are processed using known mechanisms for the imperative and declarative parts, but combined in a way that enables us to exploit information from the declarative side, such as tight bounds computed from the declarative specification, to improve the search both on the imperative and declarative sides. Moreover, our technique automatically evaluates different possible ways of processing the imperative side, and the alternative settings (imperative or declarative) for parts of the invariant available both declaratively and imperatively, to decide the most convenient invariant configuration with respect to efficiency in test generation. This is achieved by transcoping, i.e., by assessing the efficiency of the different alternatives on small scopes (where generation times are negligible), and then extrapolating the results to larger scopes. We also show experiments involving collection classes that support the effectiveness of our technique, by demonstrating that (i) bounded exhaustive suites can be computed from hybrid invariants significantly more efficiently than doing so using state-of-the-art purely imperative and purely declarative approaches, and (ii) our technique is able to automatically determine efficient hybrid invariants, in the sense that they lead to an efficient computation of bounded exhaustive suites, using transcoping.
引用
收藏
页码:655 / 674
页数:20
相关论文
共 50 条
  • [41] Automated Test Input Generation for Android: Are We There Yet?
    Choudhary, Shauvik Roy
    Gorla, Alessandra
    Orso, Alessandro
    2015 30TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2015, : 429 - 440
  • [42] Generation of functional delay test with multiple input transitions
    Jusas, Vacius
    Motiejunas, Kestutis
    INFORMATION TECHNOLOGY AND CONTROL, 2007, 36 (03): : 259 - 267
  • [43] Perspectives on search strategies in automated test input generation
    Cao, Yang
    Jiang, Yanyan
    Xu, Chang
    Ma, Jun
    Ma, Xiaoxing
    FRONTIERS OF COMPUTER SCIENCE, 2020, 14 (03)
  • [44] Test generation for specifications modeled by input/output automata
    Tan, QM
    Petrenko, A
    TESTING OF COMMUNICATING SYSTEMS, 1998, : 83 - 99
  • [45] Perspectives on search strategies in automated test input generation
    Yang Cao
    Yanyan Jiang
    Chang Xu
    Jun Ma
    Xiaoxing Ma
    Frontiers of Computer Science, 2020, 14
  • [46] Test Generation for Programs with Binary Tree Structure as Input
    Zhao, Ruilian
    Li, Zheng
    Wang, Qian
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2015, 25 (07) : 1129 - 1151
  • [47] A solver-Aided language for test input generation
    Ringer T.
    Grossman D.
    Schwartz-Narbonne D.
    Tasiran S.
    Proceedings of the ACM on Programming Languages, 2017, 1 (OOPSLA)
  • [48] Inputs From Hell: Learning Input Distributions for Grammar-Based Test Generation
    Soremekun, Ezekiel
    Pavese, Esteban
    Havrikov, Nikolas
    Grunske, Lars
    Zeller, Andreas
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (04) : 1138 - 1153
  • [49] Specify Once Test Everywhere: Analyzing Invariants to Augment Service Descriptions for Automated Test Generation
    Paradkar, Amit
    Sinha, Avik
    SERVICE-ORIENTED COMPUTING - ICSOC 2008, PROCEEDINGS, 2008, 5364 : 551 - 557
  • [50] MATERA2-AlfTester: An Exhaustive Simulation and Test Generation Tool for fUML Models
    Iqbal, Junaid
    Ashraf, Adnan
    Truscan, Dragos
    Porres, Ivan
    2019 45TH EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS (SEAA 2019), 2019, : 466 - 470