hh.sePublikationer
Ändra sökning
RefereraExporteraLänk till posten
Permanent länk

Direktlänk
Referera
Referensformat
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Annat format
Fler format
Språk
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Annat språk
Fler språk
Utmatningsformat
  • html
  • text
  • asciidoc
  • rtf
Domain Specific Language for Testing Grid-based Multiagent Autonomous Systems
Högskolan i Halmstad, Akademin för informationsteknologi.ORCID-id: 0000-0002-8929-1750
Högskolan i Halmstad, Akademin för informationsteknologi.ORCID-id: 0000-0002-7054-9985
Högskolan i Halmstad, Akademin för informationsteknologi. King's College London, London, UK.ORCID-id: 0000-0002-4869-6794
(Engelska)Manuskript (preprint) (Övrigt vetenskapligt)
Abstract [en]

The automatic generation of random test inputs offers a potential solution to the challenges associated with manual test case design. However, the use of random test cases may prove ineffective for fault detection and can escalate testing costs, particularly in systems where test execution demands significant resources and time. To address this issue, leveraging the domain knowledge of test engineers becomes crucial for selecting test cases with the potential for effectiveness. One approach involves utilizing test selection constraints recommended by domain experts, which can be applied to generate targeted test inputs. In our previous paper, we introduced a domain-specific language (DSL) designed to formalize locality-based test selection constraints specifically tailored for autonomous agents. In this work, we devise an extended DSL for specifying more detailed test scenarios for a more elaborate model of autonomous agents and environment. We design a questionnaire and ask several experts' opinions about the usefulness of the DSL and also design an experiment to compare the efficiency, in terms of time needed to reach a failure, of the extended DSL with the initially proposed one. The questionnaire results show that some features of the extended DSL look useful in the experts' opinion, and the experiment results show that testing with the extended DSL can considerably improve the efficiency of the testing process.

Nyckelord [en]
Test Input Generation, Domain Specific Languages, Test Selection, Autonomous Agents, Scenario-based Testing
Nationell ämneskategori
Datorsystem
Forskningsämne
Smarta städer och samhällen
Identifikatorer
URN: urn:nbn:se:hh:diva-53181OAI: oai:DiVA.org:hh-53181DiVA, id: diva2:1851227
Projekt
Safety of Connected Intelligent Vehicles in Smart Cities – SafeSmart
Forskningsfinansiär
KK-stiftelsen
Anmärkning

Som manuscript i avhandling/As manuscript in thesis

Tillgänglig från: 2024-04-12 Skapad: 2024-04-12 Senast uppdaterad: 2024-11-13Bibliografiskt granskad
Ingår i avhandling
1. Test Automation for Grid-Based Multiagent Autonomous Systems
Öppna denna publikation i ny flik eller fönster >>Test Automation for Grid-Based Multiagent Autonomous Systems
2024 (Engelska)Licentiatavhandling, sammanläggning (Övrigt vetenskapligt)
Abstract [en]

Traditional software testing usually comes with manual definitions of test cases. This manual process can be time-consuming, tedious, and incomplete in covering important but elusive corner cases that are hardly identifiable. Automatic generation of random test cases emerges as a strategy to mitigate the challenges associated with the manual test case design. However, the effectiveness of random test cases in fault detection may be limited, leading to increased testing costs, particularly in systems where test execution demands substantial resources and time. Leveraging the domain knowledge of test experts can guide the automatic random generation of test cases to more effective zones. In this thesis, we target quality assurance of multiagent autonomous systems and aim to automate test generation for them by applying the domain knowledge of test experts.

To formalize the specification of the domain expert's knowledge, we introduce a small Domain Specific Language (DSL) for formal specification of particular locality-based constraints for grid-based multiagent systems. We initially employ this DSL for filtering randomly generated test inputs. Then, we evaluate the effectiveness of the generated test cases through an experiment on a case study of autonomous agents. Applying statistical analysis on the experiment results demonstrates that utilizing the domain knowledge to specify test selection criteria for filtering randomly generated test cases significantly reduces the number of potentially costly test executions to identify the persisting faults. 

Domain knowledge of experts can also be utilized to directly generate test inputs with constraint solvers. We conduct a comprehensive study to compare the performance of filtering random cases and constraint-solving approaches in generating selective test cases across various test scenario parameters. The examination of these parameters provides criteria for determining the suitability of random data filtering versus constraint solving, considering the varying size and complexity of the test input generation constraint. To conduct our experiments, we use QuickCheck tool for random test data generation with filtering, and we employ Z3 for constraint solving. The findings, supported by observations and statistical analysis, reveal that test scenario parameters impact the performance of filtering and constraint-solving approaches differently. Specifically, the results indicate complementary strengths between the two approaches: random generation and filtering approach excels for the systems with a large number of agents and long agent paths but shows degradation in larger grid sizes and stricter constraints. Conversely, constraint solving approach demonstrates robust performance for large grid sizes and strict constraints but experiences degradation with increased agent numbers and longer paths.

Our initially proposed DSL is limited in its features and is only capable of specifying particular locality-based constraints. To be able to specify more elaborate test scenarios, we extend that DSL based on a more intricate model of autonomous agents and their environment. Using the extended DSL, we can specify test oracles and test scenarios for a dynamic grid environment and agents having several attributes. To assess the extended DSL's utility, we design a questionnaire to gather opinions from several experts and also run an experiment to compare the efficiency of the extended DSL with the initially proposed one. The questionnaire results indicate that the extended DSL was successful in specifying several scenarios that the experts found more useful than the scenarios specified by the initial DSL. Moreover, the experimental results demonstrate that testing with the extended DSL can significantly reduce the number of test executions to detect system faults, leading to a more efficient testing process.

Ort, förlag, år, upplaga, sidor
Halmstad: Halmstad University Press, 2024. s. 21
Serie
Halmstad University Dissertations ; 116
Nyckelord
Test Input Generation, Domain Specific Languages, Test Selection, Autonomous Agents, Scenario-based Testing
Nationell ämneskategori
Programvaruteknik Datavetenskap (datalogi)
Identifikatorer
urn:nbn:se:hh:diva-53268 (URN)978-91-89587-49-6 (ISBN)978-91-89587-48-9 (ISBN)
Presentation
2024-05-24, Wigforss salen, hus J, Kristian IV:s väg 3, Halmstad, 13:00 (Engelska)
Opponent
Handledare
Projekt
Safety of Connected Intelligent Vehicles in Smart Cities – SafeSmart
Forskningsfinansiär
KK-stiftelsen
Tillgänglig från: 2024-04-30 Skapad: 2024-04-30 Senast uppdaterad: 2024-05-03Bibliografiskt granskad

Open Access i DiVA

Fulltext saknas i DiVA

Person

Entekhabi, SinaMostowski, WojciechMousavi, Mohammad Reza

Sök vidare i DiVA

Av författaren/redaktören
Entekhabi, SinaMostowski, WojciechMousavi, Mohammad Reza
Av organisationen
Akademin för informationsteknologi
Datorsystem

Sök vidare utanför DiVA

GoogleGoogle Scholar

urn-nbn

Altmetricpoäng

urn-nbn
Totalt: 299 träffar
RefereraExporteraLänk till posten
Permanent länk

Direktlänk
Referera
Referensformat
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Annat format
Fler format
Språk
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Annat språk
Fler språk
Utmatningsformat
  • html
  • text
  • asciidoc
  • rtf