Forum Discussion
7 Replies
- Hi!
this actually isn't available, but I've added a Soapui.cmdLineRunner property that is set when running from the command-line which give you access to the current runner; use its outputFolder property to get the report path. Coming the next nightly build.
regards!
/Ole
eviware.com - przemyslaw_frycOccasional ContributorGreat! So I am waiting for the next nightly build.
Thanks!
mz - przemyslaw_frycOccasional ContributorOk, I need some help yet. I've downloaded the last nightly build of soapUI and tried to use "outputFolder" property in the "Teardown script" section (testcase level) in many ways, but I failed. Can you provide some example of setting variable with this property?
- Hi!
sure.. try the following:
import com.eviware.soapui.SoapUI
// running from commandline?
if( SoapUI.cmdLineRunner != null )
{
def outputFolder = SoapUI.cmdLineRunner.outputFolder
...
}
does that work ok?
regards!
/Ole
eviware.com - przemyslaw_frycOccasional ContributorI've tried this way before, but then the error occurs:
groovy.lang.MissingPropertyException: No such property: cmdLineRunner for class: com.eviware.soapui.SoapUI
Maybe I've downloaded the wrong version:
Build soapui-pro-3.6.2-daily-2010-12-14-[2], Build Date 2010/12/14 02:29
? - przemyslaw_frycOccasional ContributorWell, in the latest version its working.
Big thanks!
mz - Yes, sorry for the troubles.. we had an error in the build which resulted in it not being published.
regards!
/Ole
eviware.com