Class SrfLab
This class can be used to launch browsers or lock devices in the SRF lab.
public class SrfLab
- Inheritance
-
SrfLab
- Inherited Members
Constructors
SrfLab()
public SrfLab()
Methods
LaunchBrowser(BrowserDescription)
Launches a new browser tab returning an instance of IBrowser for the launched browser.
public static IBrowser LaunchBrowser(BrowserDescription description)
Parameters
descriptionBrowserDescriptionthe description of the browser to launch.
Returns
Remarks
The returned browser instance is valid until the tab is closed.
LaunchBrowser(BrowserType)
Launches a new browser tab returning an instance of IBrowser for the launched browser.
public static IBrowser LaunchBrowser(BrowserType browserType)
Parameters
browserTypeBrowserTypeType of browser to launch: Possible values: BrowserType
Returns
Remarks
The returned browser instance is valid until the tab is closed.
LockDevice(DeviceDescription)
Obtains a device from the OpenText Functional Testing Lab and locks it, so that only the current test can perform actions on it.
public static IDevice LockDevice(DeviceDescription description)
Parameters
descriptionDeviceDescriptionThe DeviceDescription defined in OpenText Functional Testing Lab
Returns
LockDevice(DeviceDescription, ApplicationDescription[])
Obtains a device from the OpenText Functional Testing Lab and locks it, so that only the current test can perform actions on it.
public static IDevice LockDevice(DeviceDescription description, ApplicationDescription[] appsToInstall)
Parameters
descriptionDeviceDescriptionThe DeviceDescription defined in OpenText Functional Testing Lab
appsToInstallApplicationDescription[]An ApplicationDescription array representing additional applications to install.
Returns
LockDevice(DeviceDescription, ApplicationDescription[], DeviceSource)
Obtains a device from the OpenText Functional Testing Lab and locks it, so that only the current test can perform actions on it.
public static IDevice LockDevice(DeviceDescription description, ApplicationDescription[] appsToInstall, DeviceSource deviceSource)
Parameters
descriptionDeviceDescriptionThe DeviceDescription defined in OpenText Functional Testing Lab
appsToInstallApplicationDescription[]An ApplicationDescription array representing additional applications to install.
deviceSourceDeviceSourceA DeviceSource representing the source of the device to use.
Returns
LockDevice(DeviceDescription, DeviceSessionOptions)
Obtains a device from the OpenText Functional Testing Lab and locks it, so that only the current test can perform actions on it.
public static IDevice LockDevice(DeviceDescription description, DeviceSessionOptions deviceSessionOptions)
Parameters
descriptionDeviceDescriptionThe DeviceDescription defined in OpenText Functional Testing Lab
deviceSessionOptionsDeviceSessionOptionsA DeviceSessionOptions object supplying session options.
Returns
LockDeviceById(string)
Obtains a device from the OpenText Functional Testing Lab by deviceID and locks it, so that only the current test can perform actions on it.
public static IDevice LockDeviceById(string deviceId)
Parameters
deviceIdstringThe device ID used by OpenText Functional Testing Lab
Returns
ReleaseEnvironment(IDevice)
Release the allocated device environment.
public static void ReleaseEnvironment(IDevice device)
Parameters
deviceIDevicethe device environment to release.
ReleaseEnvironment(IBrowser)
Releases the allocated browser environment.
public static void ReleaseEnvironment(IBrowser browser)
Parameters
browserIBrowserthe browser environment to release.