ernitingoel
ernitingoel

Reputation: 661

Do we have anything like @AfterScenario in Karate?

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

Answers (1)

Peter Thomas
Peter Thomas

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

Related Questions