Class DeviceDescription
The description of a mobile Device test object.
Inherited Members
Namespace: HP.LFT.SDK.Mobile
Assembly: HP.LFT.SDK.dll
Syntax
public class DeviceDescription : PropertiesDescription, IDescription, ICloneable
Constructors
DeviceDescription()
Creates a new instance of DeviceDescription.
Declaration
public DeviceDescription()
Properties
Dictionary
For internal usage.
Declaration
public IDictionary<string, object> Dictionary { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |
FleetType
The fleetType of the device.
Declaration
public string FleetType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Id
The device ID used by OpenText Functional Testing Lab
Declaration
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Location
The location of the device.
Declaration
public string Location { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Manufacturer
The manufacturer of the device.
Declaration
public string Manufacturer { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Model
The model of the device.
Declaration
public string Model { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
The logical name that OpenText Functional Testing Lab uses to identify the device.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OsType
The operating system currently running on the device.
Declaration
public string OsType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OsVersion
The operating system version currently running on the device.
The following symbols are supported:
>, >=, <, <=
For example:
OsVersion = ">4.0"
OsVersion = ">=4.1"
Declaration
public string OsVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Source
The source of the device.
Declaration
public string Source { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
FromDictionary(IDictionary<string, object>)
This method creates a new instance of DeviceDescription and initializes it with the given props dictionary.
Declaration
public static DeviceDescription FromDictionary(IDictionary<string, object> props)
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionary<string, object> | props | a dictionary of properties to initialize the DeviceDescription with. |
Returns
| Type | Description |
|---|---|
| DeviceDescription | a new instance of DeviceDescription initialized with the given props dictionary. |
Get(string)
Returns the current value of a DeviceDescription capability.
Declaration
public object Get(string capability)
Parameters
| Type | Name | Description |
|---|---|---|
| string | capability | the capability to return the stored value of. |
Returns
| Type | Description |
|---|---|
| object | the current value of a DeviceDescription capability. |
Set(string, object)
Sets a DeviceDescription capability to the given value.
Declaration
public DeviceDescription Set(string capability, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | capability | the name of the capability to set value for. |
| object | value | the new value of the capability. |
Returns
| Type | Description |
|---|---|
| DeviceDescription | The updated description instance (builder pattern). |