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 条
  • [41] Test input generation from cause-effect graphs
    Ufuktepe, Deniz Kavzak
    Ayav, Tolga
    Belli, Fevzi
    SOFTWARE QUALITY JOURNAL, 2021, 29 (04) : 733 - 782
  • [42] Alpha Matte Generation from Single Input for Portrait Matting
    Yaman, Dogucan
    Ekenel, Hazim Kemal
    Waibel, Alexander
    2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS, CVPRW 2022, 2022, : 695 - 704
  • [43] input4MAUD: an efficient program for automatic two-dimensional diffraction image series input and/or batch refinement with MAUD
    Raue, Lars
    JOURNAL OF APPLIED CRYSTALLOGRAPHY, 2014, 47 : 2081 - 2085
  • [44] Applying Multi-Objective Genetic Algorithm for Efficient Selection on Program Generation
    Watanabe, Hiroto
    Matsumoto, Shinsuke
    Higo, Yoshiki
    Kusumoto, Shinji
    Kurabayashi, Toshiyuki
    Kirinuki, Hiroyuki
    Tanno, Haruto
    2021 28TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2021), 2021, : 515 - 519
  • [45] Efficient program generation by evolving graph structures with multi-start nodes
    Mabu, Shingo
    Hirasawa, Kotaro
    APPLIED SOFT COMPUTING, 2011, 11 (04) : 3618 - 3624
  • [46] AGRIS - PROGRAM SYSTEM FOR THE AUTOMATIC-GENERATION OF EFFICIENT INVERSE ROBOT MODELS
    WEBER, W
    ROBOTERSYSTEME, 1991, 7 (04): : 201 - 212
  • [47] Efficient and Sustainable Energy Generation from Biomass
    Loewen, Achim
    PROCEEDINGS OF THE 2ND INTERNATIONAL CONFERENCE ON ASIAN-EUROPEAN ENVIRONMENTAL TECHNOLOGY AND KNOWLEDGE TRANSFER, 2008, : 56 - 60
  • [48] A Functional Verification Methodology Based on Parameter Domains for Efficient Input Stimuli Generation and Coverage Modeling
    Castro Marquez, Carlos Ivan
    Romero Tobar, Edgar Leonardo
    Strum, Marius
    Chau, Wang Jiang
    JOURNAL OF ELECTRONIC TESTING-THEORY AND APPLICATIONS, 2011, 27 (04): : 485 - 503
  • [49] Efficient generation of stream programs from loops
    Yang, Xuejun
    Deng, Yu
    Yan, Xiaobo
    Wang, Li
    Du, Jing
    Zhang, Ying
    2007 INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED SYSTEMS, VOLS 1 AND 2, 2007, : 169 - 176
  • [50] Efficient generation of hyperbolic symmetries from dynamics
    Chung, KW
    Chan, HSY
    Wang, BN
    CHAOS SOLITONS & FRACTALS, 2002, 13 (06) : 1175 - 1190