Forum Discussion

sandrino's avatar
sandrino
Occasional Contributor
8 years ago
Solved

SoapUi getting request parameters

Dear all,

if I have this request, how can i use the input value from tag "tid" and set it on "signature" tag?

For example:
<request>
            <tid>TEST</tid>
            <Type>OneType</Type>
            <signature> ${tid} ??? </signature>
</request>

 

Thanks in advance

13 Replies

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)
    <request>
        <tid>TEST</tid>
        <Type>OneType</Type>
        <signature>${TEST_STEP_NAME#Request#//request/tid}</signature>
    </request>

    Or if you do not want to hard-code the test step name:

        <signature>${${=context.getCurrentStep().getLabel()}#Request#//request/tid}</signature>
    • sandrino's avatar
      sandrino
      Occasional Contributor

      Thanks for your example.

      I'm checking but receive null on signature witout value.

       

      I'll rty again as soon as possibile.

      Thanks for your support.

       

       

       

       

       

      • HKosova's avatar
        HKosova
        SmartBear Alumni (Retired)

        Is your actual request structure the same as you posted? If it's different, you need to adjust the XPath expression that refers to the desired node. It's this part:

        <signature>${TEST_STEP_NAME#Request#//request/tid}</signature>