Package com.hp.lft.sdk.mobile
Class DeviceDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.mobile.DeviceDescription
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.MapHolder
,Cloneable
public class DeviceDescription
extends PropertiesDescription
implements com.hp.lft.sdk.internal.MapHolder
The description of a mobile Device test object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class can be used to construct an instance of the DeviceDescription class using the builder pattern.protected static class
DeviceDescription.Init<T extends DeviceDescription.Init<T>>
Helper class for DeviceDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the DeviceDescription class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceDescription
This method creates a new instance ofDeviceDescription
and initializes it with the given props map.Returns the current value of aDeviceDescription
capability.Returns the fleetType of the emulated device.getId()
Returns the device ID used by OpenText Functional Testing Lab.Returns the location of the emulated device.Returns the manufacturer name that OpenText Functional Testing Lab uses to identify the device.getMap()
For internal use only.getModel()
Returns the device model that OpenText Functional Testing Lab uses to identify the device.getName()
Returns the logical name that OpenText Functional Testing Lab uses to identify the device.Returns the OS type of the emulated device.Returns the OS version of the emulated device.Returns the source of the emulated device.void
Sets aDeviceDescription
capability to the given value.void
setFleetType
(String fleetType) Sets the fleetType of the emulated device.void
Sets the device ID used by OpenText Functional Testing Lab.void
setLocation
(String location) Sets the location of the emulated device.void
setManufacturer
(String manufacturer) Sets the manufacturer name that OpenText Functional Testing Lab uses to identify the device.void
Sets the device model that OpenText Functional Testing Lab uses to identify the device.void
Sets the logical name that OpenText Functional Testing Lab uses to identify the device.void
Sets the OS type of the emulated device.void
setOsVersion
(String version) Sets the OS version of the emulated device.void
Sets the source of the emulated device.Methods inherited from class com.hp.lft.sdk.PropertiesDescription
clone
Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
cloneTo, getValueAs, getValueAsStringProperty, insertValue
-
Constructor Details
-
DeviceDescription
public DeviceDescription()Initializes a new instance of the DeviceDescription class.
-
-
Method Details
-
fromMap
This method creates a new instance ofDeviceDescription
and initializes it with the given props map.- Parameters:
props
- aMap
of properties to initialize theDeviceDescription
with.- Returns:
- a new instance of
DeviceDescription
initialized with the given props map. - Throws:
GeneralLeanFtException
- if error occurs during execution
-
setId
Sets the device ID used by OpenText Functional Testing Lab.- Parameters:
id
- the device ID used by OpenText Functional Testing Lab.
-
getId
Returns the device ID used by OpenText Functional Testing Lab.- Returns:
- the device ID used by OpenText Functional Testing Lab.
-
setName
Sets the logical name that OpenText Functional Testing Lab uses to identify the device.- Parameters:
name
- logical name that OpenText Functional Testing Lab uses to identify the device.
-
getName
Returns the logical name that OpenText Functional Testing Lab uses to identify the device.- Returns:
- the logical name that OpenText Functional Testing Lab uses to identify the device.
-
setOsType
Sets the OS type of the emulated device.- Parameters:
osType
- the OS type of the emulated device.
-
getOsType
Returns the OS type of the emulated device.- Returns:
- the OS type of the emulated device.
-
setOsVersion
Sets the OS version of the emulated device. The following symbols are supported:>, >=, <, <=
For example:
setOsVersion(">4.0")
setOsVersion(">=4.1")
- Parameters:
version
- the OS version of the emulated device.
-
getOsVersion
Returns the OS version of the emulated device.- Returns:
- the OS version of the emulated device.
-
setManufacturer
Sets the manufacturer name that OpenText Functional Testing Lab uses to identify the device.- Parameters:
manufacturer
- the manufacturer name of the device.
-
getManufacturer
Returns the manufacturer name that OpenText Functional Testing Lab uses to identify the device.- Returns:
- the manufacturer name that OpenText Functional Testing Lab uses to identify the device.
-
setModel
Sets the device model that OpenText Functional Testing Lab uses to identify the device.- Parameters:
model
- the device model of the device.
-
getModel
Returns the device model that OpenText Functional Testing Lab uses to identify the device.- Returns:
- the device model that OpenText Functional Testing Lab uses to identify the device.
-
setFleetType
Sets the fleetType of the emulated device.- Parameters:
fleetType
- the fleetType of the emulated device.
-
getFleetType
Returns the fleetType of the emulated device.- Returns:
- the fleetType of the emulated device.
-
setLocation
Sets the location of the emulated device.- Parameters:
location
- the location of the emulated device.
-
getLocation
Returns the location of the emulated device.- Returns:
- the location of the emulated device.
-
setSource
Sets the source of the emulated device.- Parameters:
source
- the source of the emulated device.
-
getSource
Returns the source of the emulated device.- Returns:
- the source of the emulated device.
-
set
Sets aDeviceDescription
capability to the given value.- Parameters:
capability
- the name of the capability to set value for.value
- the new value of the capability.- Throws:
GeneralLeanFtException
- if the set operation fails.
-
get
Returns the current value of aDeviceDescription
capability.- Parameters:
capability
- the capability to return the stored value of.- Returns:
- the current value of a
DeviceDescription
capability. - Throws:
GeneralLeanFtException
- if the get operation fails.
-
getMap
For internal use only.- Specified by:
getMap
in interfacecom.hp.lft.sdk.internal.MapHolder
- Returns:
- for internal use only.
-