Zaeem Ahmed
Zaeem Ahmed

Reputation: 23

can not write response of post request in karate log file

When I try to karate.log(response) in the feature file, the log is not being written in the karate.log but it is being shown in karate report. But the issue in report is that it is showing as an karate.log([object]) in the report. Any idea how to fix this issue?

Note: when i try karate.log('Post') it is also not getting written in karate.log file

Upvotes: 1

Views: 297

Answers (1)

Peter Thomas
Peter Thomas

Reputation: 58058

Maybe this is an old version of Karate. Else it is a bug, so please follow this process to help us fix it: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue

Note that you should not do any string concatenation. For example:

karate.log('response:', response);

Upvotes: 1

Related Questions