ATM: Black-box Test Case Minimization based on Test Code Similarity and Evolutionary Search

被引:9
|
作者
Pan, Rongqi [1 ]
Ghaleb, Taher A. [1 ]
Briand, Lionel [1 ,2 ]
机构
[1] Univ Ottawa, Sch EECS, Ottawa, ON, Canada
[2] Univ Luxembourg, SnT Ctr, Luxembourg, Luxembourg
基金
加拿大自然科学与工程研究理事会;
关键词
Test case minimization; Test suite reduction; Tree-based similarity; AST; Genetic algorithm; Black-box testing; GENETIC ALGORITHM; PRIORITIZATION; SELECTION;
D O I
10.1109/ICSE48619.2023.00146
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Executing large test suites is time and resource consuming, sometimes impossible, and such test suites typically contain many redundant test cases. Hence, test case (suite) minimization is used to remove redundant test cases that are unlikely to detect new faults. However, most test case minimization techniques rely on code coverage (white-box), model-based features, or requirements specifications, which are not always (entirely) accessible by test engineers. Code coverage analysis also leads to scalability issues, especially when applied to large industrial systems. Recently, a set of novel techniques was proposed, called FAST-R, relying solely on test case code for test case minimization, which appeared to be much more efficient than white-box techniques. However, it achieved a comparable low fault detection capability for Java projects, thus making its application challenging in practice. In this paper, we propose ATM (AST-based Test case Minimizer), a similarity-based, search-based test case minimization technique, taking a specific budget as input, that also relies exclusively on the source code of test cases but attempts to achieve higher fault detection through finer-grained similarity analysis and a dedicated search algorithm. ATM transforms test case code into Abstract Syntax Trees (AST) and relies on four tree-based similarity measures to apply evolutionary search, specifically genetic algorithms, to minimize test cases. We evaluated the effectiveness and efficiency of ATM on a large dataset of 16 Java projects with 661 faulty versions using three budgets ranging from 25% to 75% of test suites. ATM achieved significantly higher fault detection rates ( 0.82 on average), compared to FAST-R ( 0.61 on average) and random minimization (0.52 on average), when running only 50% of the test cases, within practically acceptable time ( 1.1 - 4.3 hours, on average, per project version), given that minimization is only occasionally applied when many new test cases are created (major releases). Results achieved for other budgets were consistent.
引用
收藏
页码:1700 / 1711
页数:12
相关论文
共 50 条
  • [41] Ontology Based Test Case Generation for Black Box Testing
    Ul Haq, Sami
    Qamar, Usman
    PROCEEDINGS OF 2019 8TH INTERNATIONAL CONFERENCE ON EDUCATIONAL AND INFORMATION TECHNOLOGY (ICEIT 2019), 2019, : 236 - 241
  • [42] An Open-Source Tool for Automated Generation of Black-Box xUnit Test Code and Its Industrial Evaluation
    Wiederseiner, Christian
    Jolly, Shahnewaz A.
    Garousi, Vahid
    Eskandar, Matt M.
    TESTING - PRACTICE AND RESEARCH TECHNIQUES, 2010, 6303 : 118 - +
  • [43] White-Box and Black-Box Test Quality Metrics for Configurable Simulation Models
    Markiegi, Urtzi
    Arrieta, Aitor
    Etxeberria, Leire
    Sagardui, Goiuria
    23RD INTERNATIONAL SYSTEMS AND SOFTWARE PRODUCT LINE CONFERENCE(SPLC 2019), VOL B, 2019, : 211 - 214
  • [44] Reducing Black-box Test Suite Using Input Parameter Relationships
    Wang, Lixin
    22ND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING & KNOWLEDGE ENGINEERING (SEKE 2010), 2010, : 180 - 185
  • [45] The Research to Select Test Data of Black-box Component using Contract
    Jiang, Ying
    Jin, Lin
    Liu, Yu-Ping
    INTERNATIONAL CONFERENCE ON GRAPHIC AND IMAGE PROCESSING (ICGIP 2012), 2013, 8768
  • [46] DEVS-SCRIPTING: A BLACK-BOX TEST FRAME FOR DEVS MODELS
    McLaughlin, Matthew B.
    Sarjoughian, Hessam S.
    2020 WINTER SIMULATION CONFERENCE (WSC), 2020, : 2196 - 2207
  • [47] Design-to-Test Approach for Black-Box Testing of Programmable Controllers
    Ma, Canlong
    Provost, Julien
    2015 INTERNATIONAL CONFERENCE ON AUTOMATION SCIENCE AND ENGINEERING (CASE), 2015, : 1018 - 1024
  • [48] Generating Test Data for Black-Box Testing using Genetic Algorithms
    Fischer, Marten
    Toenjes, Ralf
    2012 IEEE 17TH CONFERENCE ON EMERGING TECHNOLOGIES & FACTORY AUTOMATION (ETFA), 2012,
  • [49] A novel evolutionary algorithm for efficient minimization of expensive black-box functions with assisted-modelling
    Tenne, Yoel
    Armfield, S. W.
    2006 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION, VOLS 1-6, 2006, : 3204 - +
  • [50] Test case prioritization for black box testing
    Qu, Bo
    Nie, Changhai
    Xu, Baowen
    Zhang, Xiaofang
    COMPSAC 2007: THE THIRTY-FIRST ANNUAL INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE, VOL I, PROCEEDINGS, 2007, : 465 - +