Exit code -1 from TestExecute usually means an unexpected dialog or runtime issue occurred during execution β even if all tests appear to pass.
In your log this line is key: βTried to open the Save dialog. The default value: YES.β
When running in /SilentMode, TestExecute cannot display UI dialogs. If a Save (or any modal) dialog appears, it automatically selects the default option and returns -1 to indicate unexpected interaction.
Youβre also running: Running as SYSTEM
Running UI tests under the SYSTEM account (especially via JNLP agent) often causes hidden dialog/session issues. TestExecute works more reliably when the agent runs under a regular user session.
Recommended actions:
- Check the generated /ErrorLog file for details.
- Ensure your tested app closes without triggering save prompts.
- Explicitly handle any Save dialogs in your test.
- Run the Jenkins agent under a real user account instead of SYSTEM.
Even if the tests pass logically, any unhandled modal dialog in SilentMode will cause exit code -1.
π€ AI-assisted response
π Found it helpful? Click Like
β
Issue resolved? Click Mark as Solution