InvokeApplication Statement
Description
Invokes an executable application.
Note: In most situations, you should use a SystemUtil.Run statement to run applications or to open files in their default application. For more details on the SystemUtil.Run statement, see the Standard Windows section of the Micro Focus UFT One Object Model Reference for GUI Testing.
The InvokeApplication statement is supported primarily for backward compatibility.
Syntax
InvokeApplication(Command, [StartIn])
Argument | Type | Description |
---|---|---|
Command | String | The path and command line options of the application to invoke. |
StartIn | String | Optional. The working folder to which the Command path refers. |
Return Value
Boolean. If the function fails to open the application, False
is returned.
The following example uses the InvokeApplication function to open Internet Explorer.
InvokeApplication "E:\Program Files\Plus!\Microsoft Internet\IEXPLORE.EXE"
See also:
- CallServiceTest Statement
- CreateObject64 Statement
- DescribeResult Statement
- ExecuteFile Statement
- ExitAction Statement
- ExitActionIteration Statement
- ExitComponent Statement
- ExitComponentIteration Statement
- ExitTest Statement
- ExitTestIteration Statement
- GetLastError Statement
- InvokeApplication Statement
- IsPartialRun Statement
- LoadAndRunAction Statement
- LoadFunctionLibrary Statement
- ManualStep Statement
- Print Statement
- RegisterUserFunc Statement
- RunAPITest Statement
- SetLastError Statement
- UnregisterUserFunc Statement
- Wait Statement