tbom
13 years agoContributor
continue with next iteration on error
Hi
We have a smoketest written in TC, where we run all our keyword tests (6 in total) from one single testscript instance (jscript).
We have done it this way, because at startup the user is presented with options to which test cases he wants to run. All tests are run using TestExecute, so this is an easy way of configuring the test scope at runtime.
Now the next problem, is that we want our script to continue to the next keyword test, if the current one fails, I have been looking at the onLogError event handler, and runner.stop() / runner.halt().. but they all seem to quit the whole test run, Where I had in mind that it should stop the current test iteration, and continue to the next.. (lets say that the test count is set for 100 on the test items page).
That is, if there is an error, quit the current iteration, and start over on the next..
We handle application shutdown / restarts, so there is nothing leftover from the failed tests..
Is this possible?
We have a smoketest written in TC, where we run all our keyword tests (6 in total) from one single testscript instance (jscript).
We have done it this way, because at startup the user is presented with options to which test cases he wants to run. All tests are run using TestExecute, so this is an easy way of configuring the test scope at runtime.
Now the next problem, is that we want our script to continue to the next keyword test, if the current one fails, I have been looking at the onLogError event handler, and runner.stop() / runner.halt().. but they all seem to quit the whole test run, Where I had in mind that it should stop the current test iteration, and continue to the next.. (lets say that the test count is set for 100 on the test items page).
That is, if there is an error, quit the current iteration, and start over on the next..
We handle application shutdown / restarts, so there is nothing leftover from the failed tests..
Is this possible?