Package com.hp.lft.sdk
Class Desktop
java.lang.Object
com.hp.lft.sdk.Desktop
A top-level Window or Dialog test object.
When working in a grid configuration, use
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <TTopLevel extends TopLevelObject>
TTopLeveldescribe
(Class<TTopLevel> type, Description description) Describes a top level Window or Dialog test object.static SvInfo
Returns Service Virtualization Server infostatic Aut
Launches an AUT using the file name.static Aut
Launches an AUT using the file name and a list of arguments.static Aut
Launches an AUT using the file name, a list of arguments, and a working directory.
-
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
- theDescription
of the top-level Window or Dialog test object.- Returns:
- the described top-level test object.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
launchAut
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
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
Returns Service Virtualization Server info- Returns:
- Object of type SvInfo, containing Service Virtualization information
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-