Forum Discussion

jsc's avatar
jsc
Regular Contributor
7 years ago

how to distinguish between different timeouts?

I got timeouts set on each testitem and on each project.

Currently I have an eventhandler (in the scriptextensions) that is called on either timeout.

 

But I want to handle it differently

- timeout on testitem: skip to next item

- timeout on project: stop test

 

My script currently handles both timeouts the same way. How can I tell within the scriptextensions which timeout-setting caused the timeout?

 

1 Reply

  • NisHera's avatar
    NisHera
    Valued Contributor

    It's difficult to answer to your problem without knowing how exactly you handle the event.

    But if you use Runner.Stop(); will stop entire project

    Runner.Stop(true); will stop current test more and more even more