1234561 of 6
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Code Review of GUI-based Tests
Blekinge Institute of Technology, Faculty of Computing, Department of Software Engineering.ORCID iD: 0000-0002-2916-4020
2025 (English)Doctoral thesis, comprehensive summary (Other academic)
Abstract [en]

Background: Modern software systems are large and complex, requiring collaboration among developers with diverse skills to manage this complexity. Code review is an essential collaborative software engineering practice in which changes are discussed before they are integrated into the codebase, enhancing code quality and promoting knowledge sharing. GUI-based testing is a technique that verifies and validates a system’s behavior through its GUI by simulating user interactions. Like production code, it requires collaboration, as tests are created, reviewed, and maintained alongside production code. Code review practices for tests differ from those for production code. Omitting reviews of tests can lower their quality and increase maintenance costs. However, practices for reviewing GUI-based tests are not well understood, as academic literature mainly focuses on production code and low-level tests.

Objective: We aim to advance the understanding and practice of code review of GUI-based tests by (a) identifying code review guidelines; (b) investigating the specific practices, challenges, and information needs; (c) finding empirical evidence supporting the proposed guidelines; and (d) providing an outlook on how code review may evolve in the future.

Methods: First, we conduct a literature review of white and gray literature to identify guidelines for source and test code, and synthesize them for GUI-based tests. Next, we perform qualitative interviews with software testing professionals to identify practices, challenges, and information needs when reviewing GUI-based tests. To find empirical evidence for the proposed guidelines, we mine open-source software repositories. Finally, we conduct a questionnaire survey to gather practitioners’ expectations about the future importance of code reviews.

Results: We synthesized 33 guidelines for GUI-based tests from literature sources. In analyzing code review comments from open-source repositories, we found empirical evidence supporting 25 out of the 33 proposed guidelines. Practitioners acknowledge the importance of code reviews, but lack defined practices for reviewing GUI-based tests. We identified four practices, six challenges, and four information needs related to reviewing GUI-based tests. The survey results indicate that code review will remain an essential practice with an anticipated increase in code review activities, including those for GUI-based tests.

Conclusion: This thesis advances the understanding and practice of code review for GUI-based tests to improve both review effectiveness and the quality of the tests underreview. We present a set of empirically grounded guidelines derived from literature and refined through the analysis of code review comments of open-source repositories. Our research investigates current practices for reviewing GUI-based tests, highlighting the specific challenges and information needs that distinguish these reviews from those for production code. Finally, we highlight the relevance of our research for the future.

Place, publisher, year, edition, pages
Karlskrona: Blekinge Tekniska Högskola, 2025. , p. 204
Series
Blekinge Institute of Technology Doctoral Dissertation Series, ISSN 1653-2090 ; 2025:14
Keywords [en]
Code review, software inspection, GUI testing, GUI-based testing, guidelines, best practices
National Category
Software Engineering
Research subject
Software Engineering
Identifiers
URN: urn:nbn:se:bth-28772ISBN: 978-91-7295-515-8 (print)OAI: oai:DiVA.org:bth-28772DiVA, id: diva2:2006739
Public defence
2025-11-24, J1630, Valhallavägen 1, Karlskrona, 09:00 (English)
Opponent
Supervisors
Part of project
SERT- Software Engineering ReThought, Knowledge FoundationAvailable from: 2025-10-28 Created: 2025-10-16 Last updated: 2025-10-28Bibliographically approved
List of papers
1. Quo Vadis, Code Review?: Exploring the Future of Code Review
Open this publication in new window or tab >>Quo Vadis, Code Review?: Exploring the Future of Code Review
Show others...
(English)Manuscript (preprint) (Other academic)
Abstract [en]

Code review has long been a core practice in collaborative software engineering. In this research, we explore how practitioners reflect on code review today and what changes they anticipate in the near future. We then discuss the potential long-term risks of these anticipated changes for the evolution of code review and its role in collaborative software engineering.

Keywords
code review, survey, artificial intelligence, collaborative software engineering
National Category
Software Engineering
Research subject
Software Engineering
Identifiers
urn:nbn:se:bth-28568 (URN)
Available from: 2025-09-01 Created: 2025-09-01 Last updated: 2025-10-16Bibliographically approved
2. The Prevalence of Code Review Guidelines for GUI-Based Testing in Open-Source
Open this publication in new window or tab >>The Prevalence of Code Review Guidelines for GUI-Based Testing in Open-Source
2025 (English)In: Information and Software Technology, ISSN 0950-5849, E-ISSN 1873-6025Article in journal (Other academic) Submitted
Abstract [en]

Context: Code review has become a core practice in collaborative software engineering, helping ensure code quality, detecting potential bugs, and supporting communication among developers. Prior research has shown that code review practices differ between production and test code, suggesting that established code review guidelines may fall short in the context of test and GUI-based test code. Particularly, GUI-based testing lacks adequate support during the code review process. To address this, we proposed a set of code review guidelines specifically designed for reviewing GUI-based test files, which, however, have not yet been empirically evaluated, limiting their practical relevance. 

Objective: This study empirically assesses the extent to which code review comments on GUI-based tests align (explicitly or implicitly) with the concerns captured by the proposed guidelines, and uses the findings to refine the guideline set.

Method: To achieve this, we sampled code review comments discussing GUI-based test files across 100 open-source projects and manually analyzed 1000 pull requests to determine to what extent the reviewers' comments align with the proposed guidelines.

Results: Review comments aligned with the proposed guidelines in 808 of 1000 pull requests. We found empirical evidence for 25 of the 33 guidelines. The most frequently observed guideline concerns the correct use of testing techniques and exception handling, particularly regarding locators, explicit waits, and timeout behavior.

Conclusion: The observed alignment suggests that the proposed guidelines capture concerns articulated in practice, indicating practical relevance for GUI-based test reviews. This represents an initial step towards providing empirical validation of the proposed guidelines, highlighting their potential value in enhancing the quality of GUI-based test reviews.

National Category
Software Engineering
Research subject
Software Engineering
Identifiers
urn:nbn:se:bth-28725 (URN)10.2139/ssrn.5547512 (DOI)
Available from: 2025-10-06 Created: 2025-10-06 Last updated: 2025-10-16Bibliographically approved
3. Code review guidelines for GUI-based testing artifacts
Open this publication in new window or tab >>Code review guidelines for GUI-based testing artifacts
2023 (English)In: Information and Software Technology, ISSN 0950-5849, E-ISSN 1873-6025, Vol. 163, article id 107299Article, review/survey (Refereed) Published
Abstract [en]

Context: Review of software artifacts, such as source or test code, is a common practice in industrial practice. However, although review guidelines are available for source and low-level test code, for GUI-based testing artifacts, such guidelines are missing. Objective: The goal of this work is to define a set of guidelines from literature about production and test code, that can be mapped to GUI-based testing artifacts. Method: A systematic literature review is conducted, using white and gray literature to identify guidelines for source and test code. These synthesized guidelines are then mapped, through examples, to create actionable, and applicable, guidelines for GUI-based testing artifacts. Results: The results of the study are 33 guidelines, summarized in nine guideline categories, that are successfully mapped as applicable to GUI-based testing artifacts. Of the collected literature, only 10 sources contained test-specific code review guidelines. These guideline categories are: perform automated checks, use checklists, provide context information, utilize metrics, ensure readability, visualize changes, reduce complexity, check conformity with the requirements and follow design principles and patterns. Conclusion: This pivotal set of guidelines provides an industrial contribution in filling the gap of general guidelines for review of GUI-based testing artifacts. Additionally, this work highlights, from an academic perspective, the need for future research in this area to also develop guidelines for other specific aspects of GUI-based testing practice, and to take into account other facets of the review process not covered by this work, such as reviewer selection. © 2023 The Author(s)

Place, publisher, year, edition, pages
Elsevier, 2023
Keywords
Code review, GUI testing, GUI-based testing, Guidelines, Modern code review, Practices, Software testing, Graphical user interfaces, Guideline, Practice, Software testings, Source codes, Test code
National Category
Software Engineering
Identifiers
urn:nbn:se:bth-25235 (URN)10.1016/j.infsof.2023.107299 (DOI)001051358500001 ()2-s2.0-85165535690 (Scopus ID)
Funder
Knowledge Foundation, 20180010
Available from: 2023-08-08 Created: 2023-08-08 Last updated: 2025-10-16Bibliographically approved
4. When GUI-based Testing Meets Code Reviews
Open this publication in new window or tab >>When GUI-based Testing Meets Code Reviews
(English)Manuscript (preprint) (Other academic)
Abstract [en]

Context: Code reviews are a well-established practice to ensure code quality, identify potential bugs, promote knowledge sharing, and maintain coding standards within a team or organization.

Objective: This study aims to investigate the specific practices, challenges, and information needs encountered when reviewing GUI-based testing files for web applications, which remain poorly understood.

Method: We conducted a qualitative interview study with 14 software testing professionals from six different companies to explore the distinct aspects of reviewing GUI-based testing code. 

Results: We identified four practices, six challenges, and four information needs related to reviewing GUI-based testing files. The foremost challenge is the validation of GUI-based tests under review. Furthermore, challenges concerning levels of abstraction and test robustness were not addressed in related studies . Additionally, participants proposed six potential improvements for tools and practices to better support the code review process. Notably, the absence of standardized practices and the need to run tests locally were common themes across participants.

Conclusion: The code review process for GUI-based testing differs from that of production code, highlighting the need for practices and tools tailored specifically to the unique demands of GUI-based testing.

Keywords
GUI-based testing, GUI testing, code review, test review, test inspection
National Category
Software Engineering
Research subject
Software Engineering
Identifiers
urn:nbn:se:bth-28768 (URN)
Available from: 2025-10-15 Created: 2025-10-15 Last updated: 2025-10-17Bibliographically approved

Open Access in DiVA

fulltext(2010 kB)57 downloads
File information
File name FULLTEXT01.pdfFile size 2010 kBChecksum SHA-512
f34b8d35365abd154170db5aaf3e7816bce8bbcca6b28a994a7e4a6617dbcc21bc153770e85dbe50236134a2886d811ae6cb599acf846a4eaf79de2130fc0f74
Type fulltextMimetype application/pdf

Authority records

Bauer, Andreas

Search in DiVA

By author/editor
Bauer, Andreas
By organisation
Department of Software Engineering
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

isbn
urn-nbn

Altmetric score

isbn
urn-nbn
Total: 869 hits
1234561 of 6
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf