On the use of user interface specific domain Gherkin in behaviour driven development

Alshammari, Abdullah (2025) On the use of user interface specific domain Gherkin in behaviour driven development. PhD thesis, University of Glasgow.

Full text available as:
[thumbnail of 2025AlshammariPhD.pdf] PDF
Download (1MB)

Abstract

There has been a noticeable rise in the popularity of behaviour driven development (BDD) in the software industry. Gherkin is a popular language for describing system behaviours, since it uses simple natural language that can be understood easily by all those involved. Gherkin describes system behaviours as examples of how the system should behave in different scenarios. However, existing research has identified several challenges with current approaches to BDD and Gherkin. First, stakeholders struggle to express and negotiate requirements in Gherkin when they are expressed in terms of business domain concepts. Second, the automated acceptance tests associated with requirements expressed in business domain concepts require additional developer effort. Third, stakeholders find selecting an appropriate abstraction level when developing Gherkin scenarios can be challenging.

To address these challenges, this thesis investigates the feasibility and efficiency of using user interface specific domain concepts for expressing requirements. This approach emphasises the expression of system behaviours in terms of user interface elements, such as buttons, text entry fields and so on. The intuition behind this approach is that the user interface represents a common ‘language’ for stakeholder discussion of requirements, that is independent of business specific concepts. The research followed an empirical methodology and used four different methods to evaluate the approach: multivocal literature review, design science, case studies, and laboratory experiment.

First, a multivocal review of BDD and its best practices was undertaken to establish the prevailing understanding of Gherkin usage. Second, a framework that comprises standardised low level Gherkin scenario steps and the associated acceptance test functions was developed. The objective was to investigate the applicability of user interface domain specific Gherkin use in BDD.

Third, three case studies were undertaken to improve and validate the design and implementation of the user interface domain specific Gherkin language and the automated acceptance test suites associated with it. The objective was to identify weaknesses in the design and implementation of the user interface specific domain Gherkin language. The results of the case studies suggest that using user interface specific domain concepts for communicating system requirements is feasible.

Fourth, a controlled laboratory experiment was conducted to find out whether it is easier to comprehend and document scenarios written in user interface specific domain Gherkin than scenarios written in business domain Gherkin. The results indicate that non-software practitioners, who represent customers, found scenarios written in user interface specific domain Gherkin to be significantly easier to document than scenarios written in business domain Gherkin. Further, the results show that for the same group, scenarios written in user interface specific domain Gherkin were marginally easier to comprehend than scenarios written in business domain Gherkin. In addition, the results suggest that for software practitioners, scenarios written in user interface specific domain Gherkin were marginally easier to comprehend and document than scenarios written in business domain Gherkin.

Item Type: Thesis (PhD)
Qualification Level: Doctoral
Additional Information: Supported by funding from the Saudi Arabian Cultural Attache in London and Yanbu Industrial College.
Subjects: Q Science > QA Mathematics > QA75 Electronic computers. Computer science
Q Science > QA Mathematics > QA76 Computer software
Colleges/Schools: College of Science and Engineering > School of Computing Science
Funder's Name: The Saudi Arabian Cultural Attache in London, Yanbu Industrial College
Supervisor's Name: Storer, Dr. Timothy
Date of Award: 2025
Depositing User: Theses Team
Unique ID: glathesis:2025-85190
Copyright: Copyright of this thesis is held by the author.
Date Deposited: 13 Jun 2025 15:06
Last Modified: 13 Jun 2025 15:10
Thesis DOI: 10.5525/gla.thesis.85190
URI: https://theses.gla.ac.uk/id/eprint/85190

Actions (login required)

View Item View Item

Downloads

Downloads per month over past year