Use of ChatGPT as an Assistant in the End-to-End Test Script Generation for Android Apps

Automated testing is crucial in software development to ensure that applications perform as intended. However, generating automated End-to-End (E2E) tests can be time-consuming and challenging, especially for junior developers. This study investigates the use of ChatGPT, a popular Generative Artificial Intelligence (GenAI) model, as an assistant in developing automated E2E test scripts for Android apps. We present an empirical study that compares the effort required to create E2E test scripts and the resulting reliability of these tests using two treatments: manually and assisted by ChatGPT. We used Gherkin, a domain-specific language that allows non-technical practitioners to define test scenarios using a human-readable syntax. Our findings indicate that using ChatGPT significantly reduces the time required to develop automated test scripts without compromising the reliability of the scripts. Statistical analysis shows a notable reduction in development time for the ChatGPT-assisted group compared to the manual group, with a large effect size. While the reliability of the tests did not show a significant difference between the two groups, the results suggest practical benefits in terms of efficiency.

Authors

Institutions

Publication Details

Published
2024-09-12
DOI
https://doi.org/10.1145/3678719.3685691
Citations
6
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
2.91
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Use of ChatGPT as an Assistant in the End-to-End Test Script Generation for Android Apps

Boni García, Filippo Ricca, Jim Whitehead, Maurizio Leotta
6 citations
Software Testing and Debugging Techniques
2.91
article

Use of ChatGPT as an Assistant in the End-to-End Test Script Generation for Android Apps

Boni García, Filippo Ricca, Jim Whitehead, Maurizio Leotta
article en
6 citations

Abstract

Automated testing is crucial in software development to ensure that applications perform as intended. However, generating automated End-to-End (E2E) tests can be time-consuming and challenging, especially for junior developers. This study investigates the use of ChatGPT, a popular Generative Artificial Intelligence (GenAI) model, as an assistant in developing automated E2E test scripts for Android apps. We present an empirical study that compares the effort required to create E2E test scripts and the resulting reliability of these tests using two treatments: manually and assisted by ChatGPT. We used Gherkin, a domain-specific language that allows non-technical practitioners to define test scenarios using a human-readable syntax. Our findings indicate that using ChatGPT significantly reduces the time required to develop automated test scripts without compromising the reliability of the scripts. Statistical analysis shows a notable reduction in development time for the ChatGPT-assisted group compared to the manual group, with a large effect size. While the reliability of the tests did not show a significant difference between the two groups, the results suggest practical benefits in terms of efficiency.

University of California, Santa Cruz (US), Universidad Carlos III de Madrid (ES), University of Genoa (IT)
Openalex Percentile: Top 7%
Software Testing and Debugging Techniques
2.91
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Use of ChatGPT as an Assistant in the End-to-End Test Script Generation for Android Apps — Boni García, Filippo Ricca, et al. · (2024) | TGRS Research Map | TGRS