com.hp.lft.sdk

Class Desktop

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


  • public class Desktop
    extends java.lang.Object
    A top-level Window or Dialog test object.
    When working in a grid configuration, use EnvironmentFactory.get in order to get the DesktopEnvironment object instead. This object represents the desktop of a specific environment or grid node.
    • Constructor Summary

      Constructor and Description
      Desktop() 
    • Method Summary

      Modifier and TypeMethod and Description
      static <TTopLevel extends TopLevelObject>
      TTopLevel
      describe(java.lang.Class<TTopLevel> type, Description description)
      Describes a top level Window or Dialog test object.
      static AutlaunchAut(java.lang.String fileName)
      Launches an AUT using the file name.
      static AutlaunchAut(java.lang.String fileName, java.lang.String... args)
      Launches an AUT using the file name and a list of arguments.
      static AutlaunchAut(java.lang.String fileName, java.lang.String[] args, java.lang.String workingDirectory)
      Launches an AUT using the file name, a list of arguments, and a working directory.
      • Methods inherited from class java.lang.Object

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

      • Desktop

        public Desktop()
    • Method Detail

      • describe

        public static <TTopLevel extends TopLevelObject> TTopLevel describe(java.lang.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 an error occurs during execution.
      • launchAut

        public static Aut launchAut(java.lang.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 UFT Developer 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 an error occurs during execution.
      • launchAut

        public static Aut launchAut(java.lang.String fileName,
                                    java.lang.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 UFT Developer 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 an error occurs during execution.
      • launchAut

        public static Aut launchAut(java.lang.String fileName,
                                    java.lang.String[] args,
                                    java.lang.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 UFT Developer 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 an error occurs during execution.