Forum Discussion
omatzura
18 years agoSuper Contributor
Hi Li,
currently what you can do is use the projectPath property in groovyUtils to create a path relative to the project file. If you for example have a "testdata" folder next to your project file containing your data, you can use
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
log.info( groovyUtils.projectPath )
def msg=context.getProperty("GetDVRDevices_AfterUnlink#Response")
new File(groovyUtils.projectPath + "\\testdata\\GetDVRDevices_AfterUnlinkRS" + dateFormat.format(date) + ".txt").write(msg2)
Your testDir is a good idea, We'll find some way to support the concept!
regards!
/Ole
eviware.com
currently what you can do is use the projectPath property in groovyUtils to create a path relative to the project file. If you for example have a "testdata" folder next to your project file containing your data, you can use
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
log.info( groovyUtils.projectPath )
def msg=context.getProperty("GetDVRDevices_AfterUnlink#Response")
new File(groovyUtils.projectPath + "\\testdata\\GetDVRDevices_AfterUnlinkRS" + dateFormat.format(date) + ".txt").write(msg2)
Your testDir is a good idea, We'll find some way to support the concept!
regards!
/Ole
eviware.com
Related Content
Recent Discussions
- 4 hours ago
- 17 days ago