Class DeviceSessionOptions

java.lang.Object
com.hp.lft.sdk.mobile.DeviceSessionOptions

public class DeviceSessionOptions extends Object
Defines the options that will be used during the device session.
  • Constructor Details

    • DeviceSessionOptions

      public DeviceSessionOptions()
      Creates a new instance of DeviceSessionOptions.
  • Method Details

    • getAppsToInstall

      public ApplicationDescription[] getAppsToInstall()
      Returns the ApplicationDescription array representing additional applications to install.
      Returns:
      the ApplicationDescription array representing additional applications to install.
    • setAppsToInstall

      public DeviceSessionOptions setAppsToInstall(ApplicationDescription[] appsToInstall)
      Sets the ApplicationDescription array representing additional applications to install.
      Parameters:
      appsToInstall - the ApplicationDescription array representing additional applications to install.
      Returns:
      the DeviceSessionOptions instance with the updated state (builder pattern).
    • getDeviceSource

      public DeviceSource getDeviceSource()
      Returns a DeviceSource representing the source of the device to use.
      Returns:
      a DeviceSource representing the source of the device to use.
    • setDeviceSource

      public DeviceSessionOptions setDeviceSource(DeviceSource deviceSource)
      Sets the DeviceSource representing the source of the device to use.
      Parameters:
      deviceSource - the DeviceSource representing the source of the device to use.
      Returns:
      the DeviceSessionOptions instance with the updated state (builder pattern).
    • isCollectLogs

      public boolean isCollectLogs()
      Indicates whether logs should be collected in this session. The default value for collectLogs is true.
      Returns:
      true if logs should be collected in this session.
    • setCollectLogs

      public DeviceSessionOptions setCollectLogs(boolean collectLogs)
      Sets whether logs should be collected in this session.
      Parameters:
      collectLogs - true if logs should be collected in this session.
      Returns:
      the DeviceSessionOptions instance with the updated state (builder pattern).
    • getCollectVitals

      public DeviceVitalsCollectOptions getCollectVitals()
      Returns the DeviceVitalsCollectOptions defining which device vitals should be collected in this session.
      Returns:
      the DeviceVitalsCollectOptions defining which device vitals should be collected in this session.
    • setCollectVitals

      public DeviceSessionOptions setCollectVitals(DeviceVitalsCollectOptions collectVitals)
      Sets the DeviceVitalsCollectOptions defining which device vitals should be collected in this session.
      Parameters:
      collectVitals - the DeviceVitalsCollectOptions defining which device vitals should be collected in this session.
      Returns:
      the DeviceSessionOptions instance with the updated state (builder pattern).
    • isEnableServiceVirtualization

      public boolean isEnableServiceVirtualization()
      Indicates whether Service Virtualization is enabled in this session. The default value for enableServiceVirtualization is false.
      Returns:
      true if Service Virtualization is enabled in this session.
    • setEnableServiceVirtualization

      public DeviceSessionOptions setEnableServiceVirtualization(boolean enableServiceVirtualization)
      Sets whether Service Virtualization should be enabled in this session.
      Parameters:
      enableServiceVirtualization - true if Service Virtualization should be enabled in this session.
      Returns:
      the DeviceSessionOptions instance with the updated state (builder pattern).