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.
  • Constructor Details

    • DeviceDescription

      public DeviceDescription()
      Initializes a new instance of the DeviceDescription class.
  • Method Details

    • fromMap

      public static DeviceDescription fromMap(Map<String,Object> props) throws GeneralLeanFtException
      This method creates a new instance of DeviceDescription and initializes it with the given props map.
      Parameters:
      props - a Map of properties to initialize the DeviceDescription with.
      Returns:
      a new instance of DeviceDescription initialized with the given props map.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setId

      public void setId(String id)
      Sets the device ID used by OpenText Functional Testing Lab.
      Parameters:
      id - the device ID used by OpenText Functional Testing Lab.
    • getId

      public String getId()
      Returns the device ID used by OpenText Functional Testing Lab.
      Returns:
      the device ID used by OpenText Functional Testing Lab.
    • setName

      public void setName(String name)
      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

      public String 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

      public void setOsType(String osType)
      Sets the OS type of the emulated device.
      Parameters:
      osType - the OS type of the emulated device.
    • getOsType

      public String getOsType()
      Returns the OS type of the emulated device.
      Returns:
      the OS type of the emulated device.
    • setOsVersion

      public void setOsVersion(String version)
      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

      public String getOsVersion()
      Returns the OS version of the emulated device.
      Returns:
      the OS version of the emulated device.
    • setManufacturer

      public void setManufacturer(String manufacturer)
      Sets the manufacturer name that OpenText Functional Testing Lab uses to identify the device.
      Parameters:
      manufacturer - the manufacturer name of the device.
    • getManufacturer

      public String 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

      public void setModel(String model)
      Sets the device model that OpenText Functional Testing Lab uses to identify the device.
      Parameters:
      model - the device model of the device.
    • getModel

      public String 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

      public void setFleetType(String fleetType)
      Sets the fleetType of the emulated device.
      Parameters:
      fleetType - the fleetType of the emulated device.
    • getFleetType

      public String getFleetType()
      Returns the fleetType of the emulated device.
      Returns:
      the fleetType of the emulated device.
    • setLocation

      public void setLocation(String location)
      Sets the location of the emulated device.
      Parameters:
      location - the location of the emulated device.
    • getLocation

      public String getLocation()
      Returns the location of the emulated device.
      Returns:
      the location of the emulated device.
    • setSource

      public void setSource(String source)
      Sets the source of the emulated device.
      Parameters:
      source - the source of the emulated device.
    • getSource

      public String getSource()
      Returns the source of the emulated device.
      Returns:
      the source of the emulated device.
    • set

      public void set(String capability, Object value) throws GeneralLeanFtException
      Sets a DeviceDescription 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

      public Object get(String capability) throws GeneralLeanFtException
      Returns the current value of a DeviceDescription 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

      public Map<String,Object> getMap()
      For internal use only.
      Specified by:
      getMap in interface com.hp.lft.sdk.internal.MapHolder
      Returns:
      for internal use only.