Hi Thank you Deepak and Rodrigo! I was able to fix the path from your suggestion.
I am now able to do a GET from http://test.com/items/${id}/data <http://test.com/items/%7Bid%7D/data?id=%7Bid%7D> but not POST using http://test.com/items/${id}/data?value=2&key=${key} <http://test.com/items/%7Bid%7D/data?id=%7Bid%7D> The variable ${key} is not being evaluated and I am getting invalid uri error. Any ideas? Thanks! On Tue, Feb 23, 2016 at 6:16 PM, Rodrigo Ramos <[email protected]> wrote: > As says Deepak, in JMeter the variables are referenced like in Unix. Form: > ${VARIABLE}. > > 2016-02-23 16:58 GMT-06:00 Meenakshi Sharma <[email protected]>: > > > hi > > > > The id is not server response. It refers to different items > > For example, shopping list can have several items with different ids. > > > > I want to be able to run my tests against each of the items in a way > that I > > can provide the ids to the tests. > > > > Let me know if I can provide more info. > > > > On Tue, Feb 23, 2016 at 5:53 PM, Rodrigo Ramos < > [email protected] > > > > > wrote: > > > > > Hi > > > > > > Is the ID a server response? may be you have to rewrite the URL instead > > of > > > predict the value. > > > > > > > > > > > > 2016-02-23 16:45 GMT-06:00 Meenakshi Sharma <[email protected]>: > > > > > > > Hi, > > > > > > > > I am trying to create load tests. The url looks like this: > > > > http://test.com/items/1/data > > > > > > > > I want to dynamically create item id (1,2,3..) so that it creates new > > > path > > > > by changing item id. > > > > > > > > I tried using CSV Data Set config and added 'id' as variable. > > > > Also added 'id' as parameter in HTTP request which is wrong as it is > > > > leading to following path: > > > > http://test.com/items/{id}/data?id={id} > > > > > > > > Could someone point out what should I try. > > > > > > > > Thanks, > > > > Meena > > > > > > > > > >
