Can i remove docString from karate html report?

Viewed 480

The html report generated in karate is displaying all the headers which is a security breach for my organisation .

Is there any way we can remove the doc strings from the report and only show print statement and passed status.

2 Answers

Please read this section of the documentation: https://github.com/intuit/karate#report-verbosity

So you can "switch off" logs and steps at any time:

* configure report = false

But please note that logs continue to be available in the target/surefire-reports folder, so if this is a security problem, you need to delete those files as well after a test run.

Look for logback-test.xml (Log configuration) file in your project and change the logger level from DEBUG to INFO

<logger name="com.intuit" level="INFO" />

This eliminates logging request or response details in log.

Please refer Karate Logging

Related