addDeviceEmulation method
Request that the Ultrafast Grid generate checkpoint images for a specific device using Chrome mobile emulation.
Syntax
Configuration configval = config.addDeviceEmulation(deviceName, orientation);
Configuration configval = config.addDeviceEmulation(deviceName);
Configuration configval = config.addDeviceEmulation(deviceName, baselineEnvName);
Configuration configval = config.addDeviceEmulation(deviceName, orientation, baselineEnvName);
Parameters
- deviceName
- Type:DeviceName
- The name of the device, from the list of devices defined by DeviceName.
- orientation
- Type:ScreenOrientation
- Whether the device is in portrait or landscape mode.
- baselineEnvName
- Type:String
- The name of the baseline environment. If provided, then the viewport, host app (browser), and OS that define the baseline are defined by the baseline environment name and not by the execution environment. The name should already be defined in the Test manager. If it is not defined, then it will be created based on the execution environment of the first test that uses that name. For more information see Running cross-environment tests.
Return value
- Type: Configuration
-
The value returned is the object that called the method.
This allows you to use a fluent style to call the
setXXXX
methods of the Configuration class.