Forum Discussion
Adrian_Tankard
11 years agoContributor
Hi Poyo,
I'm not aware of any options to implement a fast fail in TestExecute. On the other hand programming such a feature should not be difficult.
Have a look at the methods for the Log Object. You should be able to find something to generate a report everytime a test case finshes. However I'm not sure where to put the code (maybe in the OnStopTest event). You may have to find an appropriate place in your code to do this.
I'm not aware of any options to implement a fast fail in TestExecute. On the other hand programming such a feature should not be difficult.
Create a project variable like errorFound and set to false.
In the event OnLogEvent set errorFound to true
In your code check in an approriate location if errorFound is true and then call Runner.Stop
Have a look at the methods for the Log Object. You should be able to find something to generate a report everytime a test case finshes. However I'm not sure where to put the code (maybe in the OnStopTest event). You may have to find an appropriate place in your code to do this.