Package com.hp.lft.sdk.mobile
Class MobileLab
java.lang.Object
com.hp.lft.sdk.mobile.MobileLab
The OpenText Functional Testing Lab, where users, applications, and devices are managed.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic DeviceInfo[]Returns a list of DeviceInfo for all devices in OpenText Functional Testing Lab.static URLReturns the URL of the OpenText Functional Testing Lab as defined in the LFTRuntime configuration, or null if it is not defined.static StringReturns the user name of the OpenText Functional Testing Lab as defined in the LFTRuntime configuration, or null if it is not defined.static DevicelockDevice(DeviceDescription description) Obtains a device from the OpenText Functional Testing Lab and locks it so that only the current test can perform actions on it.static DevicelockDevice(DeviceDescription description, ApplicationDescription[] appsToInstall) Obtains a device from the OpenText Functional Testing Lab and locks it so that only the current test can perform actions on it.static DevicelockDevice(DeviceDescription description, ApplicationDescription[] appsToInstall, DeviceSource deviceSource) Obtains a device from the OpenText Functional Testing Lab and locks it so that only the current test can perform actions on it.static DevicelockDevice(DeviceDescription description, DeviceSessionOptions sessionOptions) Obtains a device from the OpenText Functional Testing Lab and locks it, so that only the current test can perform actions on it.static DevicelockDeviceById(String deviceId) Obtains a device from the OpenText Functional Testing Lab and locks it so that only the current test can perform actions on it.static DevicelockDeviceByInfo(DeviceInfo deviceInfo) Obtains a device from OpenText Functional Testing Lab and locks it so that only the current test can perform actions on it.static DevicelockDeviceByName(String deviceName) Obtains a device from the OpenText Functional Testing Lab by device name and locks it so that only the current test can perform actions on it.static DevicetryLockDeviceByInfo(DeviceInfo deviceInfo) Checks whether a device is available in the OpenText Functional Testing Lab and if so, locks it, so that only the current test can perform actions on it.
 If this method fails, the test continues without an exception.
- 
Constructor Details- 
MobileLabpublic MobileLab()
 
- 
- 
Method Details- 
lockDeviceObtains a device from the OpenText Functional Testing Lab and locks it so that only the current test can perform actions on it.- Parameters:
- description- the description of the device to obtain.
- Returns:
- the requested device.
- Throws:
- GeneralLeanFtException- if an error occurs during execution
 
- 
lockDevicepublic static Device lockDevice(DeviceDescription description, DeviceSessionOptions sessionOptions) throws GeneralLeanFtException Obtains a device from the OpenText Functional Testing Lab and locks it, so that only the current test can perform actions on it.- Parameters:
- description- the description of the device to obtain.
- sessionOptions- a- DeviceSessionOptionsobject supplying session options.
- Returns:
- the requested device.
- Throws:
- GeneralLeanFtException- if an error occurs during execution
 
- 
lockDevicepublic static Device lockDevice(DeviceDescription description, ApplicationDescription[] appsToInstall) throws GeneralLeanFtException Obtains a device from the OpenText Functional Testing Lab and locks it so that only the current test can perform actions on it.- Parameters:
- description- the description of the device to obtain.
- appsToInstall- an array of ApplicationDescription representing the applications to install.
- Returns:
- the requested device.
- Throws:
- GeneralLeanFtException- if an error occurs during execution
 
- 
lockDevicepublic static Device lockDevice(DeviceDescription description, ApplicationDescription[] appsToInstall, DeviceSource deviceSource) throws GeneralLeanFtException Obtains a device from the OpenText Functional Testing Lab and locks it so that only the current test can perform actions on it.- Parameters:
- description- the description of the device to obtain.
- appsToInstall- an array of ApplicationDescription representing the applications to install.
- deviceSource- the source of the device to use. (OpenText Functional Testing Lab, AWS Device Farm, Any)
- Returns:
- the requested device.
- Throws:
- GeneralLeanFtException- if an error occurs during execution
 
- 
lockDeviceByIdObtains a device from the OpenText Functional Testing Lab and locks it so that only the current test can perform actions on it.- Parameters:
- deviceId- the ID of the device in OpenText Functional Testing Lab.
- Returns:
- the requested device.
- Throws:
- GeneralLeanFtException- if an error occurs during execution
 
- 
lockDeviceByNameObtains a device from the OpenText Functional Testing Lab by device name and locks it so that only the current test can perform actions on it.- Parameters:
- deviceName- the name of the device in OpenText Functional Testing Lab.
- Returns:
- the requested device.
- Throws:
- GeneralLeanFtException- if an error occurs during execution
 
- 
lockDeviceByInfoObtains a device from OpenText Functional Testing Lab and locks it so that only the current test can perform actions on it.- Parameters:
- deviceInfo- a DeviceInfo object containing the information of the device to lock.
- Returns:
- the locked device.
- Throws:
- GeneralLeanFtException- if an error occurs during execution
 
- 
tryLockDeviceByInfoChecks whether a device is available in the OpenText Functional Testing Lab and if so, locks it, so that only the current test can perform actions on it.
 If this method fails, the test continues without an exception.- Parameters:
- deviceInfo- a DeviceInfo object containing the information of the device to lock.
- Returns:
- true if the locking operation succeeded, otherwise false.
- Throws:
- GeneralLeanFtException- if an error occurs during execution
 
- 
getDeviceListReturns a list of DeviceInfo for all devices in OpenText Functional Testing Lab.- Returns:
- a list of DeviceInfo for all devices in OpenText Functional Testing Lab.
- Throws:
- GeneralLeanFtException- if an error occurs during execution
 
- 
getMobileCenterAddressReturns the URL of the OpenText Functional Testing Lab as defined in the LFTRuntime configuration, or null if it is not defined.- Returns:
- the URL of the OpenText Functional Testing Lab as defined in the LFTRuntime configuration, or null if it is not defined.
- Throws:
- GeneralLeanFtException- if an error occurs during execution
- MalformedURLException- if the URL syntax malformed
 
- 
getMobileCenterUserNameReturns the user name of the OpenText Functional Testing Lab as defined in the LFTRuntime configuration, or null if it is not defined.- Returns:
- the user name of the OpenText Functional Testing Lab as defined in the LFTRuntime configuration, or null if it is not defined.
- Throws:
- GeneralLeanFtException- if an error occurs during execution
 
 
-