spartanhooah
8 years agoOccasional Contributor
GroovyUtils.projectPath differs depending on context?
I have a SoapUI project that runs fine from the GUI, but if I try to run the test case from Java, it seems that the project path that GroovyUtils returns is empty. In my Groovy script I have this code:
groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) log.info groovyUtils.projectPath
When I run this script in SoapUI, I get a full path to my project:
- Wed Oct 25 16:13:06 CDT 2017:INFO:C:\Users\me\Documents\project_folder
But when I call the Test Case from Java, the global-groovy.log file has
2017-10-25 16:05:50,665 INFO [log]
It seems to be that the project path is empty when run from Java. If that's the case, how can I fix this?