com.hp.lft.sdk.mobile

Class DeviceDescription.Init<T extends DeviceDescription.Init<T>>

  • java.lang.Object
    • com.hp.lft.sdk.mobile.DeviceDescription.Init<T>
  • Direct Known Subclasses:
    DeviceDescription.Builder
    Enclosing class:
    DeviceDescription


    protected abstract static class DeviceDescription.Init<T extends DeviceDescription.Init<T>>
    extends java.lang.Object
    Helper class for DeviceDescription.Builder.
    • Constructor Summary

      ModifierConstructor and Description
      protected Init() 
    • Method Summary

      Modifier and TypeMethod and Description
      DeviceDescriptionbuild() 
      Tid(java.lang.String id)
      Initializes the device ID used in Digital Lab (UFT Mobile).
      Tmanufacturer(java.lang.String manufacturer)
      Initializes the name of the manufacturer of the device used in Digital Lab (UFT Mobile).
      Tmodel(java.lang.String model)
      Initializes the model of the device used in Digital Lab (UFT Mobile).
      Tname(java.lang.String name)
      Initializes the logical name of the device used in Digital Lab (UFT Mobile).
      TosType(java.lang.String osType)
      Initializes the operating system currently running on the device.
      TosVersion(java.lang.String osVersion)
      Initializes the version of the operating system currently running on the device.
      protected abstract Tself() 
      Tset(java.lang.String capability, java.lang.Object value)
      Initializes a DeviceDescription capability to the given value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Init

        protected Init()
    • Method Detail

      • self

        protected abstract T self()
      • id

        public T id(java.lang.String id)
        Initializes the device ID used in Digital Lab (UFT Mobile).
        Parameters:
        id - the device ID used in Digital Lab (UFT Mobile).
        Returns:
        the description instance with the update state (builder pattern).
      • name

        public T name(java.lang.String name)
        Initializes the logical name of the device used in Digital Lab (UFT Mobile).
        Parameters:
        name - the logical name of the device used in Digital Lab (UFT Mobile).
        Returns:
        the description instance with the update state (builder pattern).
      • osType

        public T osType(java.lang.String osType)
        Initializes the operating system currently running on the device.
        Parameters:
        osType - the operating system currently running on the device.
        Returns:
        the description instance with the update state (builder pattern).
      • osVersion

        public T osVersion(java.lang.String osVersion)
        Initializes the version of the operating system currently running on the device.

        The following symbols are supported:

        >, >=, <, <=

        For example:

        osVersion(">4.0")

        osVersion(">=4.1")

        Parameters:
        osVersion - the version of the operating system currently running on the device.
        Returns:
        the description instance with the update state (builder pattern).
      • manufacturer

        public T manufacturer(java.lang.String manufacturer)
        Initializes the name of the manufacturer of the device used in Digital Lab (UFT Mobile).
        Parameters:
        manufacturer - the name of the manufacturer of the device used in Digital Lab (UFT Mobile).
        Returns:
        the description instance with the update state (builder pattern).
      • model

        public T model(java.lang.String model)
        Initializes the model of the device used in Digital Lab (UFT Mobile).
        Parameters:
        model - the model of the device used in Digital Lab (UFT Mobile).
        Returns:
        the description instance with the update state (builder pattern).
      • set

        public T set(java.lang.String capability,
                     java.lang.Object value)
        Initializes 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.
        Returns:
        the description instance with the update state (builder pattern).