By default, all newly created tests are saved to a master branch, unless specified otherwise. If you want to make isolated changes to your tests and flows that don’t affect the version on the master branch, create a branch and add tests and flows to it.
Create a new branch
You can create a new branch on the branches page or by using the branch dropdown.
Note
Once you create a branch, it cannot be renamed.
The branches page
To create a branch from the branches page, take the following steps:
- Go to Tests > Branches.
- Click on the + New branch button.
- Enter the name of the new branch and save.
Creating a new branch on the branches page
The branch dropdown
The branch dropdown is located on the tests page, the test details page, and in the mabl Trainer. To create a new branch from the branch dropdown, you can take the following steps:
- Open the Trainer, or navigate to either the tests or the test details page.
- Click on the branch dropdown.
- Select “New branch”
- Enter the name of the new branch and save.
The branch dropdown on the test details page
Saving tests and flows to a branch
Saving test changes to a branch does not affect any other versions of that test, and you can save a test to as many branches as you want.
To save tests and flows to a branch, take the following steps:
- In the mabl Trainer or API Test Editor, select the branch you’d like to save the test in.
- Edit the test or flow as needed.
- Click Save. All changes will be saved to the branch.
Ensure your test is saved in the correct branch before saving.
Note
Only changes to the test or flow steps are saved to a branch. Metadata, including names, descriptions, and labels, are not version controlled.