Forum Discussion
HimanshuTayal
5 years agoCommunity Hero
jonathon : Please try with the following code, hope it would resolve your issue
def projectPath = new com.eviware.soapui.support.GroovyUtils(context).projectPath //gets the path of the project root
log.info projectPath
- jonathon5 years agoContributor
- HimanshuTayal5 years agoCommunity Hero
jonathon : I guess it is returning the correct location as it is under c:/, please try below code
testRunner.getTestCase().getTestSuite().getProject().getPath()
- jonathon5 years agoContributor
This is being run from a test suite setup script
Caused by: groovy.lang.MissingPropertyException: No such property: testRunner for class: Script21