Reputation: 661
I would like to call a method after each scenario from a single Feature with Karate, do we have something like @AfterScenario
in Karate? Or is there any other way to achieve this functionality?
Upvotes: 1
Views: 8068
Reputation: 58128
Yes, there is an afterScenario
hook. Please refer the docs: https://github.com/intuit/karate#hooks
* configure afterScenario = function(){ karate.log('hi') }
Upvotes: 4