Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
15 years ago

Changing Dump file location before SOAP Test Step via groovy

Hello,
I have a test case with a SOAP test step which streams quite a large file (>30 MB). Since it is too big and soapUI often becomes unstable, i dump it to a file using 'Dump File' property.

I need to run a test case in a loop such that each time the SOAP test step is called, it dumps to a different file. I was thinking of the doing this via a groovy test step before the SOAP test step. How can I change value of 'Dump File' property via groovy.

Thanks

Ali

4 Replies

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

    of course.. sorry.. try

    testRunner.testCase.testSteps["My Request"].testRequest.dumpFile = "anotherfilename.dat"

    any better?

    /Ole
    eviware.com
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Ali,

    please try

    testRunner.testCase.testSteps["My Request"].dumpFile = "anotherfilename.dat"

    regards!

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    I get this error.
    groovy.lang.MissingPropertyException: No such property: dumpFile for class: com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep