How to parameterize a value in the request URL parameter
i have a URL which has multiple parameters like x,y,z, one of the parameter is current date. for example, take y as Current date. whenever I hit the front request, the back end URL should pass current date as one for the parameter and my mocked response should pick up.
anyone please let me know if you know solution to parameterize in responder correlation..
Answers
-
Hi rahuldinesh, in order to parameterize the request URL parameter, make sure you have a data source (either create one or extract it from previous test), then variables in your requet url could be something like this:
0 -
or use it as query parameter
http://${host}:${port}/YOUR_URL/?date=${x}0 -
You can use the REST URL Data Bank to extract and store the values of the URL parameters. Those values can then be used in the response.
0