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 条
  • [21] Test generation with Satisfiability Modulo Theories solvers in model-based testing
    Cantenot, Jerome
    Ambert, Fabrice
    Bouquet, Fabrice
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2014, 24 (07): : 499 - 531
  • [22] Can the Generation of Test Cases for Unit Testing be Automated with Rules?
    Nalepa, Grzegorz J.
    Kutt, Krzysztof
    Kaczor, Krzysztof
    ARTIFICIAL INTELLIGENCE AND SOFT COMPUTING, ICAISC 2014, PT II, 2014, 8468 : 536 - 547
  • [23] A semantic approach for automated test oracle generation
    Guo, Hai-Feng
    COMPUTER LANGUAGES SYSTEMS & STRUCTURES, 2016, 45 : 204 - 219
  • [24] Test Generation for Model-Based Diagnosis
    Provan, Gregory
    ECAI 2008, PROCEEDINGS, 2008, 178 : 199 - +
  • [25] Model-based testing for concurrent systems: unfolding-based test selection
    de Len, Hernan Ponce
    Haar, Stefan
    Longuet, Delphine
    INTERNATIONAL JOURNAL ON SOFTWARE TOOLS FOR TECHNOLOGY TRANSFER, 2016, 18 (03) : 305 - 318
  • [26] Model-based testing for concurrent systems: unfolding-based test selection
    Hernán Ponce de León
    Stefan Haar
    Delphine Longuet
    International Journal on Software Tools for Technology Transfer, 2016, 18 : 305 - 318
  • [27] Combining Model-Based and Risk-Based Testing for Effective Test Case Generation
    Gebizli, Ceren Sahin
    Metin, Duygu
    Sozer, Hasan
    2015 IEEE EIGHTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW), 2015,
  • [28] Automating Test Case Generation for Android Applications using Model-based Testing
    Khan, Usman Habib
    Khan, Muhammad Naeem Ahmed
    Mirza, Aamir Mehmood
    Akram, Muhammad
    Fakhar, Shariqa
    Hussain, Shumaila
    Magsi, Irfan Ahmed
    Wagan, Raja Asif
    EMITTER-INTERNATIONAL JOURNAL OF ENGINEERING TECHNOLOGY, 2022, 10 (01) : 63 - 82
  • [29] Model-based automatic test case generation for automotive embedded software testing
    Shin, Ki-Wook
    Lim, Dong-Jin
    INTERNATIONAL JOURNAL OF AUTOMOTIVE TECHNOLOGY, 2018, 19 (01) : 107 - 119
  • [30] Model-based automatic test case generation for automotive embedded software testing
    Ki-Wook Shin
    Dong-Jin Lim
    International Journal of Automotive Technology, 2018, 19 : 107 - 119