Efficient Bounded Exhaustive Input Generation from Program APIs

被引:1
|
作者
Politano, Mariano [1 ,4 ]
Bengolea, Valeria [1 ]
Molina, Facundo [3 ]
Aguirre, Nazareno [1 ,4 ]
Frias, Marcelo F. [2 ,4 ]
Ponzio, Pablo [1 ,4 ]
机构
[1] Univ Nacl Rio Cuarto, Rio Cuarto, Argentina
[2] Inst Tecnol Buenos Aires, Buenos Aires, DF, Argentina
[3] IMDEA Software Inst, Madrid, Spain
[4] Consejo Nacl Invest Cient & Tecn, Buenos Aires, DF, Argentina
关键词
D O I
10.1007/978-3-031-30826-0_6
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Bounded exhaustive input generation (BEG) is an effective approach to reveal software faults. However, existing BEG approaches require a precise specification of the valid inputs, i.e., a repOK, that must be provided by the user. Writing repOKs for BEG is challenging and time consuming, and they are seldom available in software. In this paper, we introduce BEAPI, an efficient approach that employs routines from the API of the software under test to perform BEG. Like API-based test generation approaches, BEAPI creates sequences of calls to methods from the API, and executes them to generate inputs. As opposed to existing BEG approaches, BEAPI does not require a repOK to be provided by the user. To make BEG from the API feasible, BEAPI implements three key pruning techniques: (i) discarding test sequences whose execution produces exceptions violating API usage rules, (ii) state matching to discard test sequences that produce inputs already created by previously explored test sequences, and (iii) the automated identification and use of a subset of methods from the API, called builders, that is sufficient to perform BEG. Our experimental assessment shows that BEAPI's efficiency and scalability is competitive with existing BEG approaches, without the need for repOKs. We also show that BEAPI can assist the user in finding flaws in repOKs, by (automatically) comparing inputs generated by BEAPI with those generated from a repOK. Using this approach, we revealed several errors in repOKs taken from the assessment of related tools, demonstrating the difficulties of writing precise repOKs for BEG.
引用
收藏
页码:111 / 132
页数:22
相关论文
共 50 条
  • [21] Bounded Solutions of Difference Equations in a Banach Space with Input Data from Subspaces
    Chaikovs'kyi, A., V
    Lagoda, O. A.
    UKRAINIAN MATHEMATICAL JOURNAL, 2022, 73 (11) : 1810 - 1824
  • [22] Bounded Solutions of Difference Equations in a Banach Space with Input Data from Subspaces
    A.V. Chaikovs’kyi
    O. A. Lagoda
    Ukrainian Mathematical Journal, 2022, 73 : 1810 - 1824
  • [23] TEST GENERATION FROM BOUNDED ALGEBRAIC SPECIFICATIONS USING ALLOY
    de Andrade, Francisco Rebello
    Faria, Joao Pascoal
    Paiva, Ana C. R.
    ICSOFT 2011: PROCEEDINGS OF THE 6TH INTERNATIONAL CONFERENCE ON SOFTWARE AND DATABASE TECHNOLOGIES, VOL 2, 2011, : 192 - 200
  • [24] On efficient program synthesis from statecharts
    Wasowski, A
    ACM SIGPLAN NOTICES, 2003, 38 (07) : 163 - 170
  • [25] EEG REPORT GENERATION FROM VIDEO TERMINAL INPUT
    NIETHARDT, P
    POCKLINGTON, P
    STRAUCH, F
    ELECTROENCEPHALOGRAPHY AND CLINICAL NEUROPHYSIOLOGY, 1976, 41 (06): : 658 - 659
  • [26] SACCADES GENERATION From the Visual Input to the Superior Colliculus
    Taouali, Wahiba
    Rougier, Nicolas
    Alexandre, Frederic
    ICFC 2010/ ICNC 2010: PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON FUZZY COMPUTATION AND INTERNATIONAL CONFERENCE ON NEURAL COMPUTATION, 2010, : 176 - 181
  • [27] Test input generation from cause–effect graphs
    Deniz Kavzak Ufuktepe
    Tolga Ayav
    Fevzi Belli
    Software Quality Journal, 2021, 29 : 733 - 782
  • [28] Program-input generation for testing database applications using existing database states
    Kai Pan
    Xintao Wu
    Tao Xie
    Automated Software Engineering, 2015, 22 : 439 - 473
  • [29] Program-input generation for testing database applications using existing database states
    Pan, Kai
    Wu, Xintao
    Xie, Tao
    AUTOMATED SOFTWARE ENGINEERING, 2015, 22 (04) : 439 - 473
  • [30] Cross-Feature Transfer Learning for Efficient Tensor Program Generation
    Verma, Gaurav
    Raskar, Siddhisanket
    Emani, Murali
    Chapman, Barbara
    APPLIED SCIENCES-BASEL, 2024, 14 (02):