Karate: Is there a way to mask console logs of a specific scenario?

Viewed 327

I have some sensitive information in my test scripts, while executing the tests those are printing in the console log do I would like to mask console log for a specific scenario alone.

Please let me know if possible. I have looked at the example given in github but it doesn't help much as it's not clear.

1 Answers

Yes, please refer the documentation here: https://github.com/intuit/karate#report-verbosity

And if you use the tag @report=false for a Scenario (or even Feature) it should hide the logs only for that one.

If the above two suggestions don't help - please assume that what you want is NOT supported and either contribute code, or look for another tool - thanks.

Related