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