This is my request:
http://localhost:8080/rest/object/number/24/render?rendering=%5BREAR%5D
(where %5BREAR%5D means [REAR], but the [] symbols needed to be escaped in Postman.)
In Karate, this is how far I got:
Scenario Outline: GET Render Object (Front and Rear)
* header Authorization = $authHeader
Given url $baseUrl
And path "/object/number/" + "24" + "/render"
And param rendering = <render>
When method GET
Then status 200
And match header Content-Type == 'image/svg+xml'
Examples:
| render |
| %5BREAR%5D |
| '%5BREAR%5D' |
| "%5BREAR%5D" |
None of the examples worked, it always results in 500 request response code. When checking the URL used by Karate for the request:
http://localhost:9999/rest/object/number/24/render?rendering=%255BREAR%255D
That means that my original parameter %5BREAR%5D was modified to %255BREAR%255D.
Does anyone know how to fix that, to have the results I have on Postman (i.e., 200 response)? Thank you in advance.