Table of Contents

Class DeviceDescription

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

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

IDictionary<string, object>

FleetType

The fleetType of the device.

public string FleetType { get; set; }

Property Value

string

Id

The device ID used by OpenText Functional Testing Lab

public string Id { get; set; }

Property Value

string

Location

The location of the device.

public string Location { get; set; }

Property Value

string

Manufacturer

The manufacturer of the device.

public string Manufacturer { get; set; }

Property Value

string

Model

The model of the device.

public string Model { get; set; }

Property Value

string

Name

The logical name that OpenText Functional Testing Lab uses to identify the device.

public string Name { get; set; }

Property Value

string

OsType

The operating system currently running on the device.

public string OsType { get; set; }

Property Value

string

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

string

Source

The source of the device.

public string Source { get; set; }

Property Value

string

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

props IDictionary<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

capability string

the 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

capability string

the name of the capability to set value for.

value object

the new value of the capability.

Returns

DeviceDescription

The updated description instance (builder pattern).