Model-Based Test Oracle Generation for Automated Unit Testing of Agent Systems

被引:43
|
作者
Padgham, Lin [1 ]
Zhang, Zhiyong [1 ]
Thangarajah, John [1 ]
Miller, Tim [2 ]
机构
[1] RMIT Univ, Sch Comp Sci & Informat Technol, Melbourne, Vic 3001, Australia
[2] Univ Melbourne, Dept Comp & Informat Syst, Parkville, Vic 3010, Australia
关键词
Test oracles; unit testing; BDI agents;
D O I
10.1109/TSE.2013.10
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Software testing remains the most widely used approach to verification in industry today, consuming between 30-50 percent of the entire development cost. Test input selection for intelligent agents presents a problem due to the very fact that the agents are intended to operate robustly under conditions which developers did not consider and would therefore be unlikely to test. Using methods to automatically generate and execute tests is one way to provide coverage of many conditions without significantly increasing cost. However, one problem using automatic generation and execution of tests is the oracle problem: How can we automatically decide if observed program behavior is correct with respect to its specification? In this paper, we present a model-based oracle generation method for unit testing belief-desire-intention agents. We develop a fault model based on the features of the core units to capture the types of faults that may be encountered and define how to automatically generate a partial, passive oracle from the agent design models. We evaluate both the fault model and the oracle generation by testing 14 agent systems. Over 400 issues were raised, and these were analyzed to ascertain whether they represented genuine faults or were false positives. We found that over 70 percent of issues raised were indicative of problems in either the design or the code. Of the 19 checks performed by our oracle, faults were found by all but 5 of these checks. We also found that 8 out the 11 fault types identified in our fault model exhibited at least one fault. The evaluation indicates that the fault model is a productive conceptualization of the problems to be expected in agent unit testing and that the oracle is able to find a substantial number of such faults with relatively small overhead in terms of false positives.
引用
收藏
页码:1230 / 1244
页数:15
相关论文
共 50 条
  • [41] Model-based testing of probabilistic systems
    Gerhold, Marcus
    Stoelinga, Marielle
    FORMAL ASPECTS OF COMPUTING, 2018, 30 (01) : 77 - 106
  • [42] An Automated (F) LTL Test Oracle for Testing with Requirements
    Pill, Ingo
    Wotawa, Franz
    2016 IEEE 27TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING WORKSHOPS (ISSREW), 2016, : 197 - 204
  • [43] AbsCon: A Test Concretizer for Model-based Testing
    Vanhecke, Jeremy
    Devroey, Xavier
    Perrouin, Gilles
    2019 IEEE 12TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2019), 2019, : 15 - 22
  • [44] Improving Model-Based Test Generation by Model Decomposition
    Arcaini, Paolo
    Gargantini, Angelo
    Riccobene, Elvinia
    2015 10TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE 2015) PROCEEDINGS, 2015, : 119 - 130
  • [45] Automated Test Oracle Generation via Denotational Semantics
    Guo, Hai-Feng
    Cao, Liang
    Song, Yushu
    Qiu, Zongyan
    2014 14TH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE (QSIC 2014), 2014, : 139 - 144
  • [46] AutoFun: An Automated Model-based Functional Testing Tool
    Domingues, Anderson
    Rodrigues, Elder M.
    Bernardino, Maicon
    I BRAZILIAN SYMPOSIUM ON SYSTEMATIC AND AUTOMATED SOFTWARE TESTING (SAST 2016), 2016,
  • [47] Model-based abductive reasoning in automated software testing
    Angius, Nicola
    LOGIC JOURNAL OF THE IGPL, 2013, 21 (06) : 931 - 942
  • [48] Model-based testing leveraged for automated web tests
    Mattiello, Guilherme Ricken
    Endo, Andre Takeshi
    SOFTWARE QUALITY JOURNAL, 2022, 30 (03) : 621 - 649
  • [49] Model-based testing leveraged for automated web tests
    Guilherme Ricken Mattiello
    André Takeshi Endo
    Software Quality Journal, 2022, 30 : 621 - 649
  • [50] Model-based Automated Testing of Critical PLC Programs
    Adiego, Borja Fernandez
    Vinuela, Enrique Blanco
    Tournier, Jean-Charles
    Gonzalez Suarez, Victor M.
    Bliudze, Simon
    2013 11TH IEEE INTERNATIONAL CONFERENCE ON INDUSTRIAL INFORMATICS (INDIN), 2013, : 722 - 727