Auto-Healing Feature for TestComplete Framework
Enable the auto-healing feature in TestComplete to automatically fix locator issues when UI elements change, keeping your tests running without manual intervention.
Auto-Healing Overview
The 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.
The auto-healing feature doesn't apply to changes in the workflow of the application. This feature is manually incorporated into our scripts.
Prerequisites
Make sure you have configured the auto-healing feature. For more information, see Configuring the Auto-Healing Feature.
Enabling the Auto-Healing Feature in the 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. The 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 the auto-healing feature.

After setting the auto-healing feature to True, save the changes you have made to the application settings file.