andrew_laser
15 years agoOccasional Contributor
projectDir variable doesn't work in Load Script
Need to find out the full path to the project file in the project "Load Script"
The following don't work:
After setting Project Root = ${projectDir}
Using soapUI 4.0.1
The following don't work:
log.info project.getPropertyValue("projectDir")
// null
log.info "${projectDir}"
groovy.lang.MissingMethodException: No signature of method: Script12.$() is applicable for argument types: (Script12$_run_closure1) values: [Script12$_run_closure1@244da55d] Possible solutions: is(java.lang.Object), run(), run(), any(), use([Ljava.lang.Object;), any(groovy.lang.Closure)
log.info ${"#Project#projectDir"}
groovy.lang.MissingMethodException: No signature of method: Script14.$() is applicable for argument types: (Script14$_run_closure1) values: [Script14$_run_closure1@dd55e06] Possible solutions: is(java.lang.Object), run(), run(), any(), use([Ljava.lang.Object;), any(groovy.lang.Closure)
After setting Project Root = ${projectDir}
log.info project.getResourceRoot()
${projectDir}
Using soapUI 4.0.1