Self-Healing Automation with Reinforcement Learning: Adaptive Test Scripts Using PPO and Dynamic XPath in Playwright

Automated testing plays a crucial role in software development, ensuring reliability and efficiency in continuous integration and deployment pipelines. However, traditional test scripts often break due to dynamic web elements and frequent UI changes, leading to increased maintenance costs. This research introduces a self-healing test automation framework leveraging reinforcement learning (RL) to adaptively modify test scripts. By integrating Proximal Policy Optimization (PPO) with dynamic XPath in Playwright, the proposed approach enables test scripts to dynamically adjust to UI changes, reducing test failures and maintenance efforts. The RL agent learns optimal XPath selection strategies, improving test stability and resilience over time. Experimental results demonstrate a significant reduction in test script failures and maintenance overhead compared to conventional automated testing approaches. This study highlights the potential of reinforcement learning in enhancing the robustness and adaptability of automated testing frameworks.

Authors

Institutions

Publication Details

Journal
Journal of Artificial Intelligence General science (JAIGS) ISSN 3006-4023
Published
2024-08-20
DOI
https://doi.org/10.60087/jaigs.v5i1.341
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Self-Healing Automation with Reinforcement Learning: Adaptive Test Scripts Using PPO and Dynamic XPath in Playwright

A. Baı̈ri, S. Gahlot, Muthuraman Saminathan
Journal of Artificial Intelligence General science (JAIGS) ISSN 3006-4023
Software Testing and Debugging Techniques
article

Self-Healing Automation with Reinforcement Learning: Adaptive Test Scripts Using PPO and Dynamic XPath in Playwright

A. Baı̈ri, S. Gahlot, Muthuraman Saminathan
article en

Abstract

Automated testing plays a crucial role in software development, ensuring reliability and efficiency in continuous integration and deployment pipelines. However, traditional test scripts often break due to dynamic web elements and frequent UI changes, leading to increased maintenance costs. This research introduces a self-healing test automation framework leveraging reinforcement learning (RL) to adaptively modify test scripts. By integrating Proximal Policy Optimization (PPO) with dynamic XPath in Playwright, the proposed approach enables test scripts to dynamically adjust to UI changes, reducing test failures and maintenance efforts. The RL agent learns optimal XPath selection strategies, improving test stability and resilience over time. Experimental results demonstrate a significant reduction in test script failures and maintenance overhead compared to conventional automated testing approaches. This study highlights the potential of reinforcement learning in enhancing the robustness and adaptability of automated testing frameworks.

Journal of Artificial Intelligence General science (JAIGS) ISSN 3006-4023Vol. 5(1)
Better Education Inc (US), Film Independent (US), KPMG (United States) (US)
Openalex Percentile: Top 71%
Software Testing and Debugging Techniques
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.