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