Using branching to approve self-healing test updates

Overview

Use branching to create an approval system for tests that include any AI blocks.

By default, all tests will be self-healed automatically. If you want to implement an approval process, you can create a branch and start a run on the branch to review any proposed changes. Branching is also supported by the API and the CLI, so you can still kick off your tests programmatically.

How it works

  1. Create a test containing an AI block.
  2. Create a branch.
  3. Kick off a run on that branch.
    • If any test is self-healed, the changes will be applied to this branch only, not to your main version.
    • You can run as many times as you like and edit things manually until you’re happy with the new version of the test.
  4. Do a final review where you can see all the changes that will be applied.
  5. Click the ‘Merge’ button. All self-healed test changes are now live on the main branch.

Generating self-healing tests best practices

Visit this article to learn more.


If you have any questions, reach out to us at [email protected].