Forum Discussion

jreinhart's avatar
jreinhart
Occasional Contributor
12 years ago

Export all to html on pre-mature test run termination

We use Jenkins and require html format to publish test results. So I have an export script run at the end of our testitems sequence, but that doesn't run if the test run fails before completion. I've yet to find a good solution for exporting when this happens. Right now I've tapped into the 'OnLogError' event to do it which is definitely not the correct strategy. I first tried using 'OnStopTest'  event to check  but that slows down the test run way too much. Also tried tapping into networksuite events but that's not 'slave-side' so no luck there. Can someone steer me in the right direction? Thanks.

  • Hi Josh,


     


    Why don't you want to use the OnLogError event for this? In most cases, getting errors means that the test failed.


     

  • jreinhart's avatar
    jreinhart
    Occasional Contributor
    If I export everything inside the OnLogError event I don't get the current error posted to the log because I exported inside the event and not after it. The event must complete to post its error to the log.