StartAUT
void StartAUT()void StartAUT(String workingdir)
void StartAUT(int timeoutMs)
void StartAUT(String workingdir, int timeoutMs)
Description
Starts the Application Under Test (AUT).
This function launches the target application and prepares it for automated testing.
Optionally, a specific working directory can be provided. If omitted, the AUT will be started in the same directory where the executable resides.
An optional timeout can be specified to control how long the function waits for the application to initialize and become ready for UI automation.
If the timeout parameter is not provided, a default value of 15000 milliseconds is used.
Parameter
- workingdir (optional): The working directory in which the AUT should be started.
If not provided, the directory of the AUT executable is used.
- timeoutMs (optional): Timeout in milliseconds to wait for the AUT to initialize.
Default value is 15000 milliseconds.
Example
void main()
{
StartAUT(); // Launch the AUT using its own directory and default timeout (15000 ms)
StartAUT(30000); // Launch the AUT using its own directory and a custom timeout
StartAUT("C:\\MyApp\\TestData"); // Launch the AUT with a custom working directory and default timeout
StartAUT("C:\\MyApp\\TestData", 30000); // Launch the AUT with a custom working directory and timeout
}