Forum Discussion
tristaanogre
Esteemed Contributor
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.
kakabubu
6 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
- 11 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago