Ask a Question

how to distinguish between different timeouts?

jsc
Regular Contributor

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 1
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

cancel
Showing results for 
Search instead for 
Did you mean: