I'm new to Jmeter, and working on load test, I did couple of samples and that are running fine, Now I'm facing a Issue at below point.
Issue: How do I pass the variable in JSON body part?for few request we've a body and the body should change as per the input data, Ex: username and email, etc,.
I used ${name} kind of variable in Jmeter, but it's not working. Could you please suggest us the better way to rid out this issue.
Note: Please, refer the screenshot, where I wants to put a variable and that should come from user defined variables. click here to see image
Thanks in Advance, Rajesh B
Jmeter version: 5.1 Windows 10
{ "unitNumber": "111", "bathRooms": 1, "price": 50, "basePrice": 50, "streetAddress": "${ADDRESS}", "city": "Washington", "state": "CO", "address": "${ADDRESS_2}", "addressId": 2, "contactPreferedValue": "Email", "weekSelected": "1", "cleaningWeekSelected": "1", "email": "${Email}", "mobile": "", "weekSelectedValue": "May 30 2019", "keypadPasscode": false, "contactValue": "I'll be at home", "contactPrefered": 1, "isPaymentDone": false }
Expected result: Jmeter Script (JSON Body) should allow to read dynamic data from user defined variables.



