What is a ‘baseline’ and how is a baseline created?
Last Updated -
A Baseline is a set of images that represent the expected result of a specific test that runs on a specific application on a specific environment. A baseline is created the first time you run a test on a specific environment, and this baseline will be updated whenever you make changes to any of the pages in your app and accept these changes in Applitools Eyes Test Manager.
Any future run of the same test on the same environment will be compared against the baseline.
By default, creating a test on a specific browser for the first time (e.g Firefox) will create a new Baseline, thus running the same test on a different browser (e.g Chrome) will form a new baseline.
In some cases (e.g cross-environment visual testing) you might want to override your test parameters, as you can find in this article.
The baseline is a unique combination of the following parameters:
- Viewport Size
- Application name
- Test name
Maintenance of baselines can be done using Applitools Eyes Test Manager (using the buttons ‘accept’ and ’reject’). Accepting a step results in updating the baseline to include the actual image while reject keeps the baseline as is and discards the actual image and keeps the baseline image.
Did you find this article helpful?