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 条
  • [31] Model-Based Generation of Safety Test-Cases for Onboard Systems
    Li Chenling
    Tang Tao
    Li KaiCheng
    Lv JiDong
    Huang Ling
    2013 IEEE INTERNATIONAL CONFERENCE ON INTELLIGENT RAIL TRANSPORTATION (ICIRT), 2013, : 192 - 197
  • [32] XACMET: XACML Testing & Modeling An automated model-based testing solution for access control systems
    Daoudagh, Said
    Lonetti, Francesca
    Marchetti, Eda
    SOFTWARE QUALITY JOURNAL, 2020, 28 (01) : 249 - 282
  • [33] XACMET: XACML Testing & ModelingAn automated model-based testing solution for access control systems
    Said Daoudagh
    Francesca Lonetti
    Eda Marchetti
    Software Quality Journal, 2020, 28 : 249 - 282
  • [34] Model-based automated testing of JavaScript Web applications via longer test sequences
    Pengfei Gao
    Yongjie Xu
    Fu Song
    Taolue Chen
    Frontiers of Computer Science, 2022, 16
  • [35] Model-based automated testing of JavaScript Web applications via longer test sequences
    Pengfei GAO
    Yongjie XU
    Fu SONG
    Taolue CHEN
    Frontiers of Computer Science, 2022, 16 (03) : 57 - 70
  • [36] Complete Agent-driven Model-based System Testing for Autonomous Systems
    Eder, Kerstin I.
    Huang, Wen-Ling
    Peleska, Jan
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2021, (348): : 54 - 72
  • [37] Model-based Approach for Automated Test Case Generation from Visual Requirement Specifications
    Singi, Kapil
    Era, Dipin
    Kaulgud, Vikrant
    2015 IEEE EIGHTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW), 2015,
  • [38] Model-Based Testing for Asynchronous Systems
    Graf-Brill, Alexander
    Hermanns, Holger
    CRITICAL SYSTEMS: FORMAL METHODS AND AUTOMATED VERIFICATION (FMICS-AVOCS 2017), 2017, 10471 : 66 - 82
  • [39] Model-Based Testing for Avionics Systems
    Brauer, Joerg
    Schulze, Uwe
    FORMAL METHODS, 2018, 10951 : 657 - 661
  • [40] Model-Based Testing of Probabilistic Systems
    Gerhold, Marcus
    Stoelinga, Marielle
    FUNDAMENTAL APPROACHES TO SOFTWARE ENGINEERING (FASE 2016), 2016, 9633 : 251 - 268