cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Dump file location before SOAP Test Step via groovy

Super Contributor

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

Re: Changing Dump file location before SOAP Test Step via groovy

Hi Ali,

please try

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

regards!

/Ole
eviware.com

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Super Contributor

Re: Changing Dump file location before SOAP Test Step via groovy

I get this error.
groovy.lang.MissingPropertyException: No such property: dumpFile for class: com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep

Re: Changing Dump file location before SOAP Test Step via groovy

Hi,

of course.. sorry.. try

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

any better?

/Ole
eviware.com

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Member

Re: Changing Dump file location before SOAP Test Step via groovy

It is working, thanks

Share Your Stories
Read Latest News
Top Kudoed Authors