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.

Console mode

Description
Starts the application in console mode instead of the graphical user interface by executing ZenoTest.exe with parameters.
This allows automated execution of test projects directly from the command line.
Depending on the provided arguments, specific projects, test suites, or test cases can be executed.
Optionally, a report path can be defined that overrides the project settings.

Parameter
- -project <Name> - Required. Name of the test project to execute.
- -suite <Suite1> [<Suite2> ...] - Optional. One or more test suites to run.
- -case <Case1> [<Case2> ...] - Optional. One or more test cases to run.
- -report <Path> - Optional. Output path for the generated test report (overrides project setting).
  If only a directory is provided (without a filename),
  the report file will be automatically named report_<projectname>_<testsuite>.html (in lowercase).
  The testsuite part is taken from the name of the test suite that is used for the run.
  For example, if the project file ./selftest/Calculator.zproj has the current testsuite named DefaultSuite and you specify -report D:\Reports,
  the resulting report file will be D:\Reports\report_calculator_defaultsuite.html.
- -h or --help - Displays the usage information.

Return
int - Exit code of the test run.

Exit Codes
0 - All tests completed successfully without any failures.
1 - At least one test case or test suite failed.
2 - Error during test execution (e.g., invalid project, configuration error, missing file).
3 - Unexpected internal error or unhandled exception occurred.

Example
C:\>TestPilot.exe -project MyProject -suite SmokeTests -report "C:\Reports\smoke.xml"
Runs only the suite SmokeTests of project MyProject and writes the report to the given path.

C:\>TestPilot.exe -project Demo -case LoginTest CheckoutTest
Runs the two specified test cases of project Demo.
#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