AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
PDF (6.4 MB)
Collect
Submit Manuscript AI Chat Paper
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Publishing Language: Chinese | Open Access

A web test case repair approach based on test intent

YingJie TAO1WeiWei WANG2JunXia GUO1( )
College of Information Science and Technology, Beijing University of Chemical Technology, Beijing 100029
College of Information Engineering, Beijing Institute of Petrochemical Technology, Beijing 102617, China
Show Author Information

Abstract

Web test case automatic repair technology plays a crucial role in the maintenance of web application test suites. As web applications are frequently updated, changes may introduce web elements in new versions, causing test cases to fail. A major issue with existing methods is the lack of effective representation of the test intent and analysis of the reasons for failure, resulting in a failure to guide and assist in test case repair at a macro level. This makes it impossible to effectively repair broken test cases caused by test flow changes or propagated breakages. Empirical analysis shows that test intent and causes of failure are very useful for test case repair. This paper proposes a test intent-driven web test repair approach named LetTe (guiding LLM to fix Web UI tests based on test intent), which first parses the test intent and failure reasons of broken web test cases, and then guides the large language model (LLM) to fix them via prompt design and fine-tuning. LetTe’s repair logic simulates that of a human expert—given the test intent and reasons for failure, “ think about” possible repair plans and then generates repair candidates via the corresponding chain-of-thought. This paper evaluates LetTe across seven Web applications collected from open-source websites and publicly available datasets. The experimental results show that our approach achieves a 75% correct repair rate, which is higher than that of all baseline methods.

CLC number: TP311.5

References

【1】
【1】
 
 
Journal of Beijing University of Chemical Technology (Natural Science Edition)
Pages 105-115

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
TAO Y, WANG W, GUO J. A web test case repair approach based on test intent. Journal of Beijing University of Chemical Technology (Natural Science Edition), 2026, 53(4): 105-115. https://doi.org/10.13543/j.bhxbzr.2026.04.012

1

Views

0

Downloads

0

Crossref

0

Scopus

0

CSCD

Received: 03 March 2025
Published: 20 July 2026
© 2026 The Authors.

This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).