0

I am trying to send a post request with body data where one of the attribute, which passes a list of numbers, requires to be inside the double quotes. I am using something like this [${id}] but it sends the number as [123] when I want it to be sent as ["123"], I have tried several methods to add quotes inside and outside of the curley braces but didn't work. Please advise

Thanks

  • It should work with ["${id}"] Read this: https://stackoverflow.com/questions/25585197/how-to-handle-post-method-in-jmeter-for-load-testing – Nirmal Baral Nov 18 '19 at 22:38

1 Answers1

0

The correct syntax would be ["${id}"]

enter image description here

You can check what exactly is being sent using View Results Tree listener:

enter image description here

Also assuming you're sending a JSON payload you might also need to add a HTTP Header Manager and configure it to send Content-Type header with the value of application/json

Dmitri T
  • 159,985
  • 5
  • 83
  • 133