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

  • hzzzhzzz Posts: 11

    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:

    http://${host}:${port}/YOUR_URL/${x}/${y}/${z}

  • hzzzhzzz Posts: 11

    or use it as query parameter
    http://${host}:${port}/YOUR_URL/?date=${x}

  • keegan_chankeegan_chan Posts: 27

    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.

Sign In or Register to comment.