TABLE OF CONTENTS
3. Enabling the Auto healing feature in Application Settings File
1. Auto Healing Overview
The auto healing feature helps in addressing locator issues caused by changes in the application being tested (AUT). Auto healing feature is applicable to Desktop Automation using Python TestComplete.
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 or changed elements.
For example, consider a scenario where the web application is updated with its login process. Initially, there is a "Login" button labeled with the ID "loginButton".
<button id="loginButton">Login</button>
Later, the button ID is changed to "signInButton":
<button id="signInButton">Sign In</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.
Note: Auto healing feature doesn't apply to changes in the workflow of the application. This feature is manually incorporated into our scripts.
2. Prerequisites
Make sure you have configured auto healing Feature. For more information, see Configuring Auto Healing Feature.
3. Enabling the Auto healing feature in 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 ApplicationSettings.XML 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