Forum Discussion
I don't think, honestly, that it's a good practice to explicitly call a handler routine inside another handler. Each handler needs to handle it's event.
- Marsha_R6 years agoModerator
I agree with tristaanogre
It's caused two problems doing it this way, because now we can't tell which handler is doing what.
- RUDOLF_BOTHMA6 years agoCommunity Hero
Might it in some way be something similar to this Previous post ?
- kakabubu6 years agoContributor
RUDOLF_BOTHMA
Thank you. I saw that discussion, but I didn`t find it useful in my case.
- kakabubu6 years agoContributor
tristaanogre, Marsha_R
Ok. I can refactor my code in a way not to call the event handler from the other event handler.
But my problem is that the onTimeout event terminates the application, while onLogError event is still running the afterTestFail routine.
To be exact, it terminates the application while the application database restore is performed. That causes the database to appear disabled. Which causes the following tests to fail.
I can adjust the test timeouts. But it seems to be not the best solution, in my opinion.
Related Content
- 2 years ago
- 10 years ago
Recent Discussions
- 13 hours ago