Eg:
1:

[{ "externalKey": "1", "customerDetails": { "address": { "address": "111 Bourke St", "country": "AU", "postcode": "3044", "state": "Victoria", "unitOrBuilding": "1" }, "emailAddress":"[email protected], "phoneNumberInternational": "+61360000001"

},

2:

{ "externalKey": "2", "customerDetails": { "address": { "address": "111 Bourke St", "country": "AU", "postcode": "3044", "state": "Victoria", "unitOrBuilding": "1" }, "emailAddress":"[email protected], "phoneNumberInternational": "+61360000002"

}]

The external key, email address and telephone numbers must be unique in each .

I have created a code in RunSwift tool to generate the bulk requests and then aligned the requests in website and then copied/pasted them in .

I believe the above approach has lot of manual dependancies. Hence I would like to know if there is a way to automatically populate the values in JMeter and generate random values for 3 variables (key, email and phone) every time I submit the HTTP request.



Source link https://sqa.stackexchange.com/questions/32537/how-to-----api-in--json-request-in-jmeter

LEAVE A REPLY

Please enter your comment!
Please enter your name here