Forum Discussion

Xardas's avatar
Xardas
New Contributor
5 years ago

Get Request in Groovy

Hello, i have the following methods:

 

rawResponse = new String(testStep.testRequest.messageExchange.rawResponseData)

response = testStep.getPropertyValue("response");

rawRequest = testStep.getPropertyValue("rawrequest")
request = testStep.getPropertyValue("request")

 

1) But the rawRequest (left side) don't give me the values.

For the response everything is ok.

 

2) How to get this table data? (normal request)

 

Thanks for any help and answering. 🙂

 

 

 

 

  • Xardas :

     

    As you can see in Style, it means that value is going to that property. Like,

    1. Authorization is going with Header

    2. active is going with template and so on

     

    so in order to fetch the value you need to fetch particular value from that particular thing.

  • Xardas :

     

    As i can see in screenshot that table data is going with Header, query and template, you can fetch this data from those parameters.

     

     

    • Xardas's avatar
      Xardas
      New Contributor

      HimanshuTayal 

       

      Examples? I don't got what you mean. Even more concrete please?

       

      Best regards

      Christian

      • HimanshuTayal's avatar
        HimanshuTayal
        Community Hero

        Xardas :

         

        As you can see in Style, it means that value is going to that property. Like,

        1. Authorization is going with Header

        2. active is going with template and so on

         

        so in order to fetch the value you need to fetch particular value from that particular thing.