Scenario: Post call with request as Json and response content type as text/csv Need help Issue: When I am trying to get the response as CSV file, unable to get it because Karate converts as String as per the below statement.
Requirement:
How to read as CSV response file before converting as String? How to stop converting as String? "Karate will attempt to parse the raw HTTP response body as JSON or XML and make it available as the response value. If parsing fails, Karate will log a warning and the value of response will then be a plain string. You can still perform string comparisons such as a match contains and look for error messages etc. In rare cases, you may want to check what the "type" of the response is and it can be one of 3 different values: json, xml and string."