Forum Discussion

sandrino's avatar
sandrino
Occasional Contributor
9 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

  • HKosova's avatar
    HKosova
    9 years ago

    I attached a sample project that works fine for me in SoapUI 5.3.0. Have a look and compare to yours.

     

  • <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
        Icon for Alumni rankAlumni

        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>