Coverage-based Strategies for the Automated Synthesis of Test Scenarios for Conversational Agents
Open Access
- 15 April 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 23-33
Abstract
Conversational agents - or chatbots - are increasingly used as the user interface to many software services. While open-domain chatbots like ChatGPT excel in their ability to chat about any topic, task-oriented conversational agents are designed to perform goal-oriented tasks (e.g., booking or shopping) guided by a dialogue-based user interaction, which is explicitly designed. Like any kind of software system, task-oriented conversational agents need to be properly tested to ensure their quality. For this purpose, some tools permit defining and executing conversation test cases. However, there are currently no established means to assess the coverage of the design of a task-oriented agent by a test suite, or mechanisms to automate quality test case generation ensuring the agent coverage. To attack this problem, we propose test coverage criteria for task-oriented conversational agents, and define coverage-based strategies to synthesise test scenarios, some oriented to test case reduction. We provide an implementation of the criteria and the strategies that is independent of the agent development platform. Finally, we report on their evaluation on open-source Dialogflow and Rasa agents, and a comparison against a state-of-the-art testing tool. The experiment shows benefits in terms of test generation correctness, increased coverage and reduced testing time.Keywords
Funding Information
- Spanish MICINN (PID2021-122270OB-I00, TED2021-129381B-C21, RED2022-134647-T)
This publication has 30 references indexed in Scilit:
- Digital-twin-based testing for cyber–physical systems: A systematic literature reviewInformation and Software Technology, 2022
- Investigating the user experience of customer service chatbot interaction: a framework for qualitative analysis of chatbot dialoguesQuality and User Experience, 2021
- A framework for the automation of testing computer vision systems2021
- Ontology-based metamorphic testing for chatbotsSoftware Quality Journal, 2021
- Chatbots: History, technology, and applicationsMachine Learning with Applications, 2020
- Evaluation Techniques for Chatbot Usability: A Systematic Mapping StudyInternational Journal of Software Engineering and Knowledge Engineering, 2019
- Testing Chatbots Using Metamorphic Relations2019
- Bottester2017
- Model-Driven Software Engineering in Practice2017
- ISO 26262 safety cases: compliance and assurance2011