1

I would just like to know, Is it possible to have something like listeners / hooks BeforeStep AfterStep with karate? is there any way around?

Thanks in advance Vikas.

Vikas Thange
  • 230
  • 2
  • 13

1 Answers1

0

Normally hooks are sufficient: https://github.com/intuit/karate#hooks

But if you are willing to write Java code, there is an ExecutionHook that can give you beforeStep and afterStep callbacks: https://stackoverflow.com/a/59080128/143475

Peter Thomas
  • 54,465
  • 21
  • 84
  • 248