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

  • Hello A28810 - 

     

    No  - you cannot create a structure of test items with just the platform. You will need to purchase one of the modules (web/desktop/mobile) in addition to the platform to create test cases.

     

    Emma

13 Replies

  • <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>