soapUI - REST API, parameters as variables in request body are empty



  • 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



  • It should be

    ${#VariableScope#VariableName}
    

    Ex-

    ${#Project#firstName} --> For project level variable
    ${#TestSuite#firstName} --> For Test Suite level variable
    ${#TestCase#firstName} --> For Test Case level variable
    


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2