baselineEnvName property

Class: ConfigurationPlatform: PuppeteerLanguage: JavaScript SDK:

Use this property to set and retrieve the name of the environment that will be used to determine the baseline.

Eyes stores a set of mappings from an environment name to an environment E, where E is defined as a triplet <OS, Browser, ViewportSize>. You can specify that Eyes uses the baseline defined by the environment name instead of the test environment by assigning this property the name of the environment. If the name is undefined in the server when this test runs, and this property is assigned before the call to open, then the name will be created and defined with the values of the current test environment. Reading this property returns the currently defined value for the current test run or a value of null if it has not been assigned.


config.baselineEnvName = configval;
configval = config.baselineEnvName;


The name of the baseline environment.