rest - in Karate DSL, a '?' in the Given path variable is being converted to a '%' in the request message, how do I resolve this? -
in karate dsl, have following scenario:
feature: test
background: * url baseurl
scenario: test
given path 'servicerequests/tasks?view=short&page=1&size=25
with get method status 200
i getting response of 404 because karate converting path variable below. notice 'tasks?' string becomes 'tasks%'. why happening , can resolve it?
get http://ver-01-shared-services-service-request-service.ver.cloud.ds.gehc.net/servicerequest/v1/servicerequests/tasks**%**3fview=short&page=1&size=25
use proper way set parameters:
given path 'servicerequests', 'tasks' , param view = 'short' , param page = 1 , size = 25 when method status 200
Comments
Post a Comment