IDEAS home Printed from https://ideas.repec.org/a/das/njaigs/v5y2024i1p525-534id341.html
   My bibliography  Save this article

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

Author

Listed:
  • Sarita Gahlot
  • Akhil Reddy Bairi
  • Muthuraman Saminathan

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.

Suggested Citation

  • Sarita Gahlot & Akhil Reddy Bairi & Muthuraman Saminathan, 2024. "Self-Healing Automation with Reinforcement Learning: Adaptive Test Scripts Using PPO and Dynamic XPath in Playwright," Journal of Artificial Intelligence General science (JAIGS) ISSN:3006-4023, Open Knowledge, vol. 5(1), pages 525-534.
  • Handle: RePEc:das:njaigs:v:5:y:2024:i:1:p:525-534:id:341
    as

    Download full text from publisher

    File URL: https://newjaigs.com/index.php/JAIGS/article/view/341
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:das:njaigs:v:5:y:2024:i:1:p:525-534:id:341. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Open Knowledge (email available below). General contact details of provider: https://newjaigs.com/index.php/JAIGS/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.