Self-Healing Automation with Reinforcement Learning: Adaptive Test Scripts Using PPO and Dynamic XPath in Playwright
Sarita Gahlot (),
Akhil Reddy Bairi () and
Muthuraman Saminathan ()
Journal of Artificial Intelligence General science (JAIGS) ISSN:3006-4023, 2024, vol. 5, issue 1, 525-534
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.
Keywords: Self-healing automation; reinforcement learning; Proximal Policy Optimization (PPO); dynamic XPath; Playwright; adaptive test scripts (search for similar items in EconPapers)
Date: 2024
References: View complete reference list from CitEc
Citations:
Downloads: (external link)
https://newjaigs.com/index.php/JAIGS/article/view/341 (application/pdf)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:das:njaigs:v:5:y:2024:i:1:p:525-534:id:341
Access Statistics for this article
Journal of Artificial Intelligence General science (JAIGS) ISSN:3006-4023 is currently edited by Justyna Żywiołek
More articles in Journal of Artificial Intelligence General science (JAIGS) ISSN:3006-4023 from Open Knowledge
Bibliographic data for series maintained by Open Knowledge ().