mabl's product structure allows teams to collaborate on tests and reuse flows across the workspace. However, if you and a colleague are both editing the same flow or test at the same time, you can accidentally overwrite each other's changes.
While branching can help you prevent changes to your main tests, the mabl Trainer also prompts users with a Save Conflict warning to prevent accidental overwrites in browser and mobile tests.
This article explains how the mabl Trainer warns about potential overwrites.
How it works
If you open a browser or mobile test in the mabl Trainer and a colleague saves a new version of the test or a flow within the test before you save your own changes, mabl displays the following warning:
The save conflict warning
If you select Save my changes and Confirm, you overwrite your colleague's changes. Your colleague's saved work becomes the previous version of the test, and mabl saves your version of the test as the latest version.
Avoiding overwrites
To avoid overwriting another user's changes, you can save your version to a branch:
- Click Cancel on the Save Conflict warning.
- Click on the branching dropdown at the top of the Trainer window
- Create a new branch to save your changes on.
- Save your test.
Saving to a branch allows you to safely merge your changes later using conflict resolution.
Saving to another branch to avoid overwriting another person's work