Forum Discussion

omensio's avatar
omensio
Contributor
15 years ago

How to get request to variable (whic is written later into own log)

Hi!


def request_content = request.getProperty( "Request").getValue();

This will not replace references with actual values?

eg. this will be written to the request_content as it is below
${Properties#Palvelutunnus} 

So the request mus be taken from outgoing real raw data.

I get this yesterday but i must have written it wrong?
def request_content = testRunner.results[testRunner.results.size()-2].requestContent   

-> -> No such property: requestContent for class: com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStepResult


Olli

3 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Olli,

    Are you sure it should be -2 in the index? maybe just -1 if you are referring to the step before the current script?

    regards!

    /Ole
    eviware.com
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    sure.. you too! Don't forget to send that wsdl/namespace/prefix thing we discussed!

    /Ole
    eviware.com