shailesh03
2 years agoNew Member
Cucumber After hooks execution order
Hello, I'm working on a project in which we're utilising Ruby/Watir with Cucumber and we have a hooks file in which we've defined numerous After hooks in our framework.
Now the problem is that there is no execution order set for the after hooks, so the privilege an After hook is taking before all the after hooks is making Bearer token and another after hook code is unable to perform the task it is supposed to do, is there any way to setup the execution order for after hooks like after(option=1) and after(option=0), I saw this options in Java but it does not support in Ruby, thank you.