Self-Healing for Mobile Testing
Self-healing creates a repository of accessors for each step in the test script. If an accessor changes permanently, AIQ will recommend substitutes based on what it has learned from previous executions of the test script and replace the accessor in the script automatically.
While the script is being self-healed, the IDE will highlight the steps that have been changed as part of the self-healing process.
The ability to self-heal a script for Mobile Testing was added in the 4.9.5 release of AIQ. Previously, this option was only available for Web Testing.
Enabling Self-Healing
You can invoke the self-healing function by right clicking inside a step in the test script, selecting SelfHeal Script and then choose the browser.
About Self-Healing
-
Self-healing can be run without fallback, however it is not recommended.
-
Self-healing plays the script back once.
-
If the target is valid, it is maintained as the target.
-
If the target is invalid, it is moved to fallback accessors with its fallback attribute enabled and the first fallback accessor found is moved to target.
-
If an accessor fallback attribute is enabled but invalid during the self-heal run, its fallback attribute will be disabled.
-
If an accessor is fallback is disabled and invalid during the self-heal run, it will be deleted.
-
If an accessor is fallback disabled but valid during the self- heal run, its fallback attribute will be enabled.
-
A newly found accessor will be added using the standard approach. Fallback is enabled for all except:
-
index and byXY, due to the brittleness,
-
images as they are resource intensive targets.
-