ZenoTest — Windows Desktop UI Test Automation
ZenoTest is a lightweight and powerful tool for Windows desktop UI test automation. Record, generate, and run automated tests efficiently for WPF, WinForms, and native apps.

Execute

void Execute(string command, string args, string workingDir, bool wait)

Description
Executes an external program or command with optional arguments and working directory.
The function allows running console applications, scripts, or any executable file from within the test environment.
If wait is set to true, the function waits until the executed process finishes before continuing execution.
Otherwise, the function starts the process asynchronously and immediately continues with the next instructions.

Parameter
- command - The path or name of the executable to run.
- args - Command-line arguments to pass to the executable.
- workingDir - The working directory for the process. Can be empty to use the default.
- wait - If true, waits for the process to complete before continuing.

Example
void main()
{
    Execute("notepad.exe", "example.txt", "C:\\Temp", true); // Opens Notepad with a file and waits until closed
    Execute("ping.exe", "127.0.0.1", "", false);           // Runs ping asynchronously
}
#include CloseAUT Console mode DoubleClick Execute Fail File GetAUTFileVersion GetAUTProductVersion GetAUTQtVersion GetAUTSuspectedCompiler GetAUTSuspectedFramework GetCurrentWorkingDir GetName GetQtProperty GetText GetValue HasFocus IsAUT64Bit IsChecked IsEnabled IsVisible LeftMouseClick LeftMouseDown LeftMouseUp MiddleMouseDown MiddleMouseUp MouseWheel Pass Print RightMouseClick RightMouseDown RightMouseUp Script Language SendKeys SetFocus SetQtProperty Sleep StartAUT string TimerStart TimerStop TimerVerifyLess vec2d VerifyContains VerifyEndsWith VerifyEqual VerifyExists VerifyGreater VerifyLess VerifyNotEqual VerifyNotExists VerifyScreenCompareEdgeBased VerifyScreenComparePixelExact VerifyStartsWith