Forum Discussion
chrisb
12 years agoRegular Contributor
I dont believe there is any switch you can enable for this scenario in a test run. You could script it for sure by using event handlers.
How about using the event handlers, in the example below you could use OnStopTest and OnStartTest to do what you are looking for...
1. Call Runner.Stop when the test fails.
2. OnStopTest saves the name of current test that is running (perhaps in project or project suite variable?). Get the current test name using the test items object.
3. OnStart test resumes the test run from the test name that was saved in step 2.
How about using the event handlers, in the example below you could use OnStopTest and OnStartTest to do what you are looking for...
1. Call Runner.Stop when the test fails.
2. OnStopTest saves the name of current test that is running (perhaps in project or project suite variable?). Get the current test name using the test items object.
3. OnStart test resumes the test run from the test name that was saved in step 2.