Enable self healing of Vision AI TestCases

Vision AI allows you to enable self healing of every control that can't be found when you run your ExecutionList.

Prerequisites

To use self healing, you must allow Vision AI to store test history in the cloud. To do so, an administrator must enable the feature Store image analysis data on VisionAI servers? in Vision AI administration. If they don't, execution logs report the error Self healing is disabled.

Enable self healing of Vision AI TestCases

To enable self healing of Vision AI TestCases, follow the steps below:

  1. Create a Recovery Scenario in your Vision AI TestCase.

  2. In the Properties tab of your Recovery Scenario, set the RetryLevel to TestStepValue.

  3. Use the Module Vision AI Self Healing to create a TestStep in the Recovery Scenario. You can find this Module at Standard modules->TBox XEngines->Vision AI.

  4. Add the following test configuration parameters (TCPs) to the TestCase:

    • OnDialogFailure with the value Recover.

    • TestStepValueRetries with the value 1.

  5. Run the TestCase from an ExecutionList.

    Vision AI attempts to apply self healing to any control that can't be found.

In this example, you perform the following actions:

  • You create a Recovery Scenario which contains the Module Vision AI Self Healing.

  • You set the RetryLevel of this Recovery Scenario to TestStepValue.

  • In the Test configuration tab of the TestCase Vision AI TestCase, you add the TCPs OnDialogFailure and TestStepValueRetries.

Vision AI Self Healing Module in a TestCase