Renu
Renu

Reputation: 313

How to add/print in cucumber report in karate reponse.

I want to add request and response in cucumber report. If i use print statement, it prints in console, not in the cucumber html report. How can i add this in the report?

Upvotes: 1

Views: 1387

Answers (2)

Mihir
Mihir

Reputation: 511

Perhaps a bit too late but for the benefit of others who may refer to this

* configure report = { showLog: true, showAllSteps: false }

Include this in the feature file and this should do what you want

Upvotes: 2

Babu Sekaran
Babu Sekaran

Reputation: 4239

To print request and response details in your report, you can set the logger level to DEBUG in logback-test.xml

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

Upvotes: 2

Related Questions