Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article

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

Published: 01 September 2013 Publication History

Abstract

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.

Cited By

View all
  • (2023)ALGOProceedings of the 37th International Conference on Neural Information Processing Systems10.5555/3666122.3668511(54769-54784)Online publication date: 10-Dec-2023
  • (2022)Testing Requirements via User and System Stories in Agent SystemsProceedings of the 21st International Conference on Autonomous Agents and Multiagent Systems10.5555/3535850.3535975(1119-1127)Online publication date: 9-May-2022
  • (2022)Testing anticipatory systemsJournal of Systems and Software10.1016/j.jss.2022.111387192:COnline publication date: 25-Aug-2022
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image IEEE Transactions on Software Engineering
IEEE Transactions on Software Engineering  Volume 39, Issue 9
September 2013
12071 pages

Publisher

IEEE Press

Publication History

Published: 01 September 2013

Author Tags

  1. BDI agents
  2. Test oracles
  3. unit testing

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 09 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2023)ALGOProceedings of the 37th International Conference on Neural Information Processing Systems10.5555/3666122.3668511(54769-54784)Online publication date: 10-Dec-2023
  • (2022)Testing Requirements via User and System Stories in Agent SystemsProceedings of the 21st International Conference on Autonomous Agents and Multiagent Systems10.5555/3535850.3535975(1119-1127)Online publication date: 9-May-2022
  • (2022)Testing anticipatory systemsJournal of Systems and Software10.1016/j.jss.2022.111387192:COnline publication date: 25-Aug-2022
  • (2021)Seamless Integration and Testing for MAS EngineeringEngineering Multi-Agent Systems10.1007/978-3-030-97457-2_15(254-272)Online publication date: 3-May-2021
  • (2019)A Property-based Testing Framework for Multi-Agent SystemsProceedings of the 18th International Conference on Autonomous Agents and MultiAgent Systems10.5555/3306127.3331931(1823-1825)Online publication date: 8-May-2019
  • (2019)Bisecting commits and modeling commit risk during testingProceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3338906.3338944(279-289)Online publication date: 12-Aug-2019
  • (2019)Improving test effectiveness using test executions historyProceedings of the 41st International Conference on Software Engineering: Software Engineering in Practice10.1109/ICSE-SEIP.2019.00031(213-222)Online publication date: 27-May-2019
  • (2018)A cost-effective software testing strategy employing online feedback informationInformation Sciences: an International Journal10.1016/j.ins.2017.08.088422:C(318-335)Online publication date: 1-Jan-2018
  • (2018)Empirical studies omit reporting necessary detailsComputer Standards & Interfaces10.1016/j.csi.2017.08.00255:C(156-170)Online publication date: 1-Jan-2018
  • (2018)A mapping study on testing non-testable systemsSoftware Quality Journal10.1007/s11219-017-9392-426:4(1373-1413)Online publication date: 1-Dec-2018
  • Show More Cited By

View Options

View options

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media