1

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?

ernitingoel
  • 621
  • 2
  • 9
  • 24

1 Answers1

4

Yes, there is an afterScenario hook. Please refer the docs: https://github.com/intuit/karate#hooks

* configure afterScenario = function(){ karate.log('hi') }
Peter Thomas
  • 54,465
  • 21
  • 84
  • 248