12 years ago
groovyUtils.projectPath returning empty string
Hi guys,
I'm currently following the instructions of the video tutorial found here: http://www.soapui.org/Service-Mocking/c ... vices.html.
I'm using the SoapUI free version, and this is the code I have so far:
In the tutorial works fine, but it's not working for me. After sending a simple request, I get a
After double-checking that the login-response.xml file exists, and it's on the specified path, I included this line to see the value of the project path:
In the soapui console I only see: "PATH: ", as if the projectPath was an empty string.
Am I missing something here? Any help will be much appreciated.
I'm currently following the instructions of the video tutorial found here: http://www.soapui.org/Service-Mocking/c ... vices.html.
I'm using the SoapUI free version, and this is the code I have so far:
import com.eviware.soapui.support.GroovyUtils
import groovy.xml.XmlUtil
def groovyUtils = new GroovyUtils(context)
def xmlParser = new XmlParser()
def responseContent
responseContent = xmlParser.parse( groovyUtils.projectPath + "/responses/login-response.xml" )
context.content = XmlUtil.serialize( responseContent )
In the tutorial works fine, but it's not working for me. After sending a simple request, I get a
FileNotFoundException.
After double-checking that the login-response.xml file exists, and it's on the specified path, I included this line to see the value of the project path:
println "PATH: " + groovyUtils.projectPath
In the soapui console I only see: "PATH: ", as if the projectPath was an empty string.
Am I missing something here? Any help will be much appreciated.