If your app was updated and you want to update the visual model in your mabl tests, you can rebaseline the visual model. There are two options in mabl for visual rebaselining:
- Rebaselining within a test
- Rebaselining multiple tests
Visual rebaselining is environment-specific
Visual rebaselining, just like visual change learning, works per environment.
Rebaselining within a test
If you want to start creating a new visual model for a specific test, you can rebaseline individual steps or all steps from the test output page.
The options for visual rebaselining are located in the Actions dropdown of step-level output. These options are only available if visual change learning is enabled for the plan.
If you don't see rebaselining options in the Actions menu, make sure that visual change learning is enabled and the step has formed a dynamic visual model. Learn more here.
Rebaselining multiple tests
If you want to rebaseline the visual model for many tests at a time, you can use the Deployment Events API to trigger a deployment with the option rebaseline_images
set to true. This option tells mabl to start creating a new dynamic visual model for the targeted tests.
Creating a new visual model
When you rebaseline, mabl starts creating a new visual model. Until the dynamic visual model is ready, mabl uses the default visual comparison: current run to previous run.