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_R5 years agoChampion Level 3
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_BOTHMA5 years agoCommunity Hero
Might it in some way be something similar to this Previous post ?
- kakabubu5 years agoContributor
RUDOLF_BOTHMA
Thank you. I saw that discussion, but I didn`t find it useful in my case.
- kakabubu5 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
Recent Discussions
- 18 minutes agoDSmachineWorld
- 44 minutes agoSvetaG