Grammar-Based Action Selection Rules for Scriptless Testing

Lianne V. Hufkens, Fernando Pastor Ricos, Beatriz Marin, Tanja E.J. Vos

Research output: Chapter in Book/Report/Conference proceedingConference Article in proceedingAcademicpeer-review

Abstract

Scriptless testing at the GUI level involves generating test sequences on the fly. These test sequences mimic user interactions on the GUI. The creation of these sequences works through action selection rules, which is most commonly based on stochastic methods. Script-less tests are reliable because they work with the actual state of the System Under Test (SUT). However, the tests are less specific, harder to interpret, and it is difficult to test concrete use cases or workflows. We want to tackle this drawback of scriptless tests by introducing action selection rules that are easier to guide than pure stochastic methods. In this paper, a new approach based on a grammar for the action selection rules is proposed, enabling scriptless testing tools to mimic user behaviour when interacting with web applications. While grammars have been used in software testing to generate input data for test cases, the proposed approach uses grammars to specify action selection rules to generate test sequences that mimic testing strategies employed by human testers. An empirical study has been performed to evaluate the effectiveness and the efficiency of the grammar-based action selection rules to filing web forms in comparison with random action selection rules. In the study, two SUTs were used: WebformSUT and Parabank. The average success rate for the grammar-based approach was 95.9% against random's 57.0% for WebformSUT and 99.8% against 55.7% for Parabank. For the widget interaction grammar-based had an average deviation from the ideal ratio of 0.06165 (WebformSUT) and 0.0180 (Parabank), compared random's 0.4318 (WebformSUT) and 0.7774 (Parabank). The results demonstrate the effectiveness of the grammar-based approach and the improvement in the use of resources.

Original languageEnglish
Title of host publicationAST '24
Subtitle of host publicationProceedings of the 5th ACM/IEEE International Conference on Automation of Software Test (AST 2024)
PublisherAssociation for Computing Machinery, Inc
Pages56-65
Number of pages10
ISBN (Electronic)9798400705885
DOIs
Publication statusPublished - 10 Jun 2024
Event5th ACM/IEEE International Conference on Automation of Software Test, AST 2024, co-located with the 46th International Conference on Software Engineering, ICSE 2024 - Lisbon, Portugal
Duration: 15 Apr 202416 Apr 2024
https://conf.researchr.org/home/ast-2024

Conference

Conference5th ACM/IEEE International Conference on Automation of Software Test, AST 2024, co-located with the 46th International Conference on Software Engineering, ICSE 2024
Country/TerritoryPortugal
CityLisbon
Period15/04/2416/04/24
Internet address

Keywords

  • action selection
  • grammars
  • GUI testing
  • scriptless testing

Fingerprint

Dive into the research topics of 'Grammar-Based Action Selection Rules for Scriptless Testing'. Together they form a unique fingerprint.

Cite this