2

I want to print the name of each scenario as the test run. What can i call or do to get the name so that i can execute * print <scenario_name> ?

The answer for this post is exactly what i want to do: Print scenario name Is there a way to access the Scenario object?

zeus1234
  • 453
  • 1
  • 5
  • 15

1 Answers1

1

As of now this is not supported, but will be easy to add. But here's the question - is this just to help you make sense of the logs ? Because if you are not using the Cucumber HTML report yet, you should - and that's what most teams are using: https://twitter.com/KarateDSL/status/899671441221623809

Refer to this discussion for more: https://stackoverflow.com/a/47555173/143475

If you still really need this, kindly raise a feature request.

Edit: this will be available in the next version: https://github.com/intuit/karate/issues/257

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