We have about 10 test suites (QF-Test GUI Testing tool) for a java application. At the moment the testsuits are run every night with a batch-script triggered by a scheduled job. The tests are not very stable - so every day we have some failures. QF-Tests gives back the test-result in the exit code (0=OK, 1=Warning, 2=Error, etc.). I would like to rerun the tests if they fail.
Is there a tool to run the test suite and run other commands depending on the result?
Example:
- If Exitcode=1: Run Report-Command
- If Exitcode=2: Delete the results and rerun until 5 retries reached.
- If Exitcode=3: ...
I know I could do this programmatically, but I wonder if there is an easier solution for this.
Thanks for any advice.