AI-Generated Test Scripts forWeb E2E Testing with ChatGPT and Copilot: A Preliminary Study

被引:1
|
作者
Leotta, Maurizio [1 ]
Yousaf, Hafiz Zeeshan [1 ]
Ricca, Filippo [1 ]
Garcia, Boni [2 ]
机构
[1] Univ Genoa, DIBRIS, Genoa, Italy
[2] Univ Carlos III Madrid, Madrid, Spain
关键词
E2E Testing; Test Automation; Selenium WebDriver; GitHub Copilot; ChatGPT; LLM; Empirical Study;
D O I
10.1145/3661167.3661192
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Automated testing is vital for ensuring the reliability of web applications. This paper presents a preliminary study on leveraging artificial intelligence (AI) models, specifically ChatGPT and Github Copilot, to generate test scripts forweb end-to-end testing. Through experimentation, we evaluated the feasibility and effectiveness of AI language models in generating test scripts based on natural language descriptions of user interactions with web applications. Our preliminary results show that AI-based generation generally provides an advantage over fully manual test scripts development. Starting from test cases clearly defined in Gherkin, a reduction in development time is always observable. In some cases, this reduction is statistically significant (e.g., Manual vs. a particular use of ChatGPT). These results are valid provided that the tester has some skills in manual test script development and is therefore able to modify the code produced by the AI-generation tools. This study contributes to the exploration of AI-driven solutions in web test scripts generation and lays the foundation for future research in this domain.
引用
收藏
页码:339 / 344
页数:6
相关论文
共 5 条
  • [1] STILE: A tool for optimizing E2E web test scripts parallelization
    Olianas, Dario
    Leotta, Maurizio
    Ricca, Filippo
    Biagiola, Matteo
    Tonella, Paolo
    JOURNAL OF SYSTEMS AND SOFTWARE, 2025, 222
  • [2] STILE: a Tool for Parallel Execution of E2E Web Test Scripts
    Olianas, Dario
    Leotta, Maurizio
    Ricca, Filippo
    Biagiola, Matteo
    Tonella, Paolo
    2021 14TH IEEE CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST 2021), 2021, : 460 - 465
  • [3] A comparative study of CLSI M38-A2 and E-test methods for antifungal susceptibility testing of Fusarium spp. isolated from humans, animals and plants
    Linares-Linares, M. Y.
    Gutierrez Trivino, C.
    Rivas, P.
    Sanchez, R.
    Cuervo, S.
    Rodriguez Bocanegra, M. X.
    MYCOSES, 2012, 55 : 332 - 332
  • [4] Performance of VITEK 2, E-test, Kirby–Bauer disk diffusion, and modified Kirby–Bauer disk diffusion compared to reference broth microdilution for testing tigecycline susceptibility of carbapenem-resistant K. pneumoniae and A. baumannii in a multicenter study in China
    Dandan Yin
    Yan Guo
    Min Li
    Wenjuan Wu
    Jin Tang
    Ying Liu
    Feng Chen
    Yuxing Ni
    Jingyong Sun
    Hong Zhang
    Hu Zhao
    Fupin Hu
    European Journal of Clinical Microbiology & Infectious Diseases, 2021, 40 : 1149 - 1154
  • [5] Performance of VITEK 2, E-test, Kirby-Bauer disk diffusion, and modified Kirby-Bauer disk diffusion compared to reference broth microdilution for testing tigecycline susceptibility of carbapenem-resistant K. pneumoniae and A. baumannii in a multicenter study in China
    Yin, Dandan
    Guo, Yan
    Li, Min
    Wu, Wenjuan
    Tang, Jin
    Liu, Ying
    Chen, Feng
    Ni, Yuxing
    Sun, Jingyong
    Zhang, Hong
    Zhao, Hu
    Hu, Fupin
    EUROPEAN JOURNAL OF CLINICAL MICROBIOLOGY & INFECTIOUS DISEASES, 2021, 40 (06) : 1149 - 1154