Table of Contents

Class SrfLab

Namespace
HP.LFT.SDK
Assembly
HP.LFT.SDK.dll

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

description BrowserDescription

the description of the browser to launch.

Returns

IBrowser

The IBrowser for the launched browser

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

browserType BrowserType

Type of browser to launch: Possible values: BrowserType

Returns

IBrowser

The IBrowser for the launched browser

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

description DeviceDescription

The DeviceDescription defined in OpenText Functional Testing Lab

Returns

IDevice

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

description DeviceDescription

The DeviceDescription defined in OpenText Functional Testing Lab

appsToInstall ApplicationDescription[]

An ApplicationDescription array representing additional applications to install.

Returns

IDevice

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

description DeviceDescription

The DeviceDescription defined in OpenText Functional Testing Lab

appsToInstall ApplicationDescription[]

An ApplicationDescription array representing additional applications to install.

deviceSource DeviceSource

A DeviceSource representing the source of the device to use.

Returns

IDevice

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

description DeviceDescription

The DeviceDescription defined in OpenText Functional Testing Lab

deviceSessionOptions DeviceSessionOptions

A DeviceSessionOptions object supplying session options.

Returns

IDevice

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

deviceId string

The device ID used by OpenText Functional Testing Lab

Returns

IDevice

ReleaseEnvironment(IDevice)

Release the allocated device environment.

public static void ReleaseEnvironment(IDevice device)

Parameters

device IDevice

the device environment to release.

ReleaseEnvironment(IBrowser)

Releases the allocated browser environment.

public static void ReleaseEnvironment(IBrowser browser)

Parameters

browser IBrowser

the browser environment to release.