TABLE OF CONTENTS
2. How to Enable the Auto Healing Feature
1. Auto Healing Overview
The auto healing feature helps in addressing test issues caused by changes in the application being tested. Auto healing feature is applicable to Web Automation for Java Selenium, C # Selenium, Python Selenium and Typescript Playwright frameworks; Desktop Automation for TestComplete and C# WinaAppDriver frameworks; and Mobile Automation for Java Appium framework.
algoQA generates executable scripts. These scripts can be executed in the programming language of your choice. They are organized in a structured folder system.
When the application being tested changes, the scripts may face issues locating specific elements. If this happens, the script might fail to execute. However, with algoQA's auto-healing feature enabled, it automatically identifies and fixes these issues with broken elements. This allows the scripts to run successfully in the subsequent test runs.
Note: Auto healing feature doesn't apply to changes in the workflow of the application.
For example, consider a scenario where a web application updates its login process. Initially, there is a "Login" button labeled with the ID "loginButton". <button id="loginButton">Login</button> When the auto-healing feature is enabled in a test scenario, the script searches for the element with the ID "loginButton". If it fails to find it, the test will result in failure. Then the feature recognizes that despite the change in ID to "signInButton", the button's functionality remains the same. It adjusts its search criteria to locate the "signInButton", ensuring the test can proceed without any issues. |
2. How to Enable the Auto Healing Feature
2.1 Prerequisite
- To install auto healing feature, you must first download auto healing executable file. Navigate to Downloads link on the algoshack website and download the auto-healing exe file.
Note that if you have subscribed to the algoQA platform, you will be able to access Downloads link. - An executable (exe) file contains a set of instructions that can be executed or run by a computer, commonly used in Windows operating systems to launch applications or perform specific tasks. An auto-healing executable (exe) file helps in setting up and configuring the auto-healing feature in an application. To configure the executable file, refer to the article Configuring Auto Healing Feature.
2.2 Configuring Application Settings File
Perform the following:
After generating the script, download it to your local folder. This folder must contain the script file that you have generated.
- Open the folder where you downloaded the script. For example, if your script is located at AlgoAFScript_202402121131\src\test\java, navigate to this folder. Applications.xml file will be available in the Java folder as shown:
- Open the Application Settings file and locate the setting related to the auto-healing feature. Set this setting to True to enable auto-healing feature.
- After setting the auto-healing feature to True, save the changes you have made to the application settings file.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article