This article will explain how to 'force' Applitools Eyes to use the same baseline for different operating systems or browsers.
In case your application looks exactly the same when running on the same browser on different operating systems, or different browsers on the same operating systems (or both), Applitools Eyes SDK allows you to define explicitly that your test will use the same baseline when running on different browsers/operating systems rather than creating a separate baseline for each.
In order to do it, use the method Eyes.setAppEnvironment which receives 2 strings for the OS name and browser name as the parameters. For example, if you use the Java SDK and would like to configure that when your test runs with the same browser on different operating systems it will use the same baseline, add the following to your test (before eyes.open):
In case your application looks exactly the same when running on the same browser on different operating systems, or different browsers on the same operating systems (or both), Applitools Eyes SDK allows you to define explicitly that your test will use the same baseline when running on different browsers/operating systems rather than creating a separate baseline for each.
In order to do it, use the method Eyes.setAppEnvironment which receives 2 strings for the OS name and browser name as the parameters. For example, if you use the Java SDK and would like to configure that when your test runs with the same browser on different operating systems it will use the same baseline, add the following to your test (before eyes.open):
eyes.setAppEnvironment("windows", null);