[I am re-posting this; I posted it as "guest" inadvertently.]

soapUI 5.5.0, community edition.

Created REST requests with parameters (style = plain). Wanted to use them in request body as variables, but that did not work. Tried "${#firstName}" and "{firstName}"

The result was

"firstName": "",[\n]"

The call works fine with all values specified.

enter image description here

  • I think you just need to remove the quotes. But have a look at this stackoverflow.com/questions/32066042/… If you find it answers your question, please consider adding your own answer to help others in the community
    – ECiurleo
    Dec 17, 2019 at 16:16

1 Answer 1


Steps I followed

  1. Create a new Rest project
  2. Add plain parameter to request
  3. called it in request body using ${test} (${#test} also works)
  4. Right-click the request and click 'Add to Testcase'
  5. Now run the request under test suite

enter image description here


Don't try executing the request in step 3, as a request under project does not have access to method parameters

if you want to use parameter for a request under the project and not test suite, then you have to create a custom property by clicking the project and call it as


enter image description here

Note that you have to use #Project and not the project name

enter image description here


This has been tested with the below test API,


THe endpoint used for testing is LOGIN - SUCCESSFUL

enter image description here





  • Level can be resource or method both works
    – PDHide
    Dec 18, 2019 at 6:52
  • It's interesting that even when I ran the method in the non-REST test suite, it didn't work for me. The only change I can think of that caused it to work was changing RESOURCE to METHOD, but it seems unreasonable that that should have been a factor.
    – user42730
    Dec 19, 2019 at 7:08
  • @Guy could you please upvote the answer also by clicking the up arrow
    – PDHide
    Dec 19, 2019 at 8:52
  • I did as you requested. It said I don't have enough rep for it to appear publicly. Thanks for your answer.
    – user42730
    Dec 20, 2019 at 9:04
  • @Guy thank you , welcome to the community
    – PDHide
    Dec 20, 2019 at 9:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.