Class Desktop

java.lang.Object
com.hp.lft.sdk.Desktop

public class Desktop extends Object
A top-level Window or Dialog test object.
When working in a grid configuration, use EnvironmentFactory.get(com.hp.lft.sdk.EnvironmentDescription) in order to get the DesktopEnvironment object instead. This object represents the desktop of a specific environment or grid node.
  • Constructor Details

    • Desktop

      public Desktop()
  • Method Details

    • describe

      public static <TTopLevel extends TopLevelObject> TTopLevel describe(Class<TTopLevel> type, Description description) throws GeneralLeanFtException
      Describes a top level Window or Dialog test object.
      Type Parameters:
      TTopLevel - the generic type of the top level test object.
      Parameters:
      type - the test object type - Window or Dialog.
      description - the Description of the top-level Window or Dialog test object.
      Returns:
      the described top-level test object.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • launchAut

      public static Aut launchAut(String fileName) throws GeneralLeanFtException
      Launches an AUT using the file name. To used this method, you must create an application allowlist file. For details, see Add SDK code to your tests in the Help Center.
      Parameters:
      fileName - The name of the AUT file to launch. Specify only the name, or the full or relative path to the file.
      Returns:
      launched AUT
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • launchAut

      public static Aut launchAut(String fileName, String... args) throws GeneralLeanFtException
      Launches an AUT using the file name and a list of arguments. To used this method, you must create an application allowlist file. For details, see Add SDK code to your tests in the Help Center.
      Parameters:
      fileName - The name of the AUT file to launch. Specify only the name, or the full or relative path to the file.
      args - a list of arguments
      Returns:
      launched AUT
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • launchAut

      public static Aut launchAut(String fileName, String[] args, String workingDirectory) throws GeneralLeanFtException
      Launches an AUT using the file name, a list of arguments, and a working directory. To used this method, you must create an application allowlist file. For details, see Add SDK code to your tests in the Help Center.
      Parameters:
      fileName - The name of the AUT file to launch. Specify only the name, or the full or relative path to the file.
      args - A list of arguments.
      workingDirectory - A working directory.
      Returns:
      launched AUT
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getSvInfo

      public static SvInfo getSvInfo() throws GeneralLeanFtException
      Returns Service Virtualization Server info
      Returns:
      Object of type SvInfo, containing Service Virtualization information
      Throws:
      GeneralLeanFtException - if error occurs during execution.