vendredi 30 août 2019

How to add variable to URL in jmeter

Im am currently creating a automated test in jmeter but i cant seem to add a variable to the URL in the same way i can add it to a body.

So for instance in step two of my test i use the json extractor to create a variable called gamecode which i then apply to the next GET request:

https://game.oyster.com/api/v1/games/${gameCode}

but the request isnt changing the ${gameCode} to the actual numeber its just remaining in its current form, the gameCode varible is working in the body of requests later on in the code i cant figure out how to add it to the url

Aucun commentaire:

Enregistrer un commentaire