Run test against a baseline that matches an environment name
Once you have defined an environment name for a specific execution environment, you can use the SDK to specify that a visual UI test should use a baseline whose execution environment matches the environment defined by that environment name. For example, if you have named an environment of Windows 10, Chrome 1024x876 to be "standard browser", and then use the SDK to specify that the baseline should match the environment name "standard browser" (see snippet below) then Eyes will look for a baseline with the same application and test name as the test and with an environment of Windows 10, Chrome and a viewport size 1024 x 876 and use it as the baseline.
If you specify a name that is not assigned to any environment, then the name will be automatically assigned to the environment in which the test is executing. If there is a baseline that matches that environment then it will be used. If no baseline matches the environment specified, then as usual, the test result will be classified as "new" and by default a new baseline will be created and saved.