Forum Discussion
Joe_DuBois
16 years agoOccasional Contributor
Ole,
Thanks a ton for the quick response. I should have caught that. I checked the Properties section under the user guide and noticed the following:
${[scope]propertyName[#xpath-expression]}
So I changed it in the code, which is located under "Setup Script" of my Test Case", but it gives me the following error. I tried a few different things, like moving the variable outside the quotes but that didn't work.
For example:
temp/" + ${#TestSuite#testpropFilename} ));
I also searched the site and net, but only found the following link, which seemed relevant, but didn't help.
http://groovyinsoapui.wordpress.com/200 ... p-request/
Error:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script31.groovy: 5: unexpected char: '#' @ line 5, column 81.org.codehaus.groovy.syntax.SyntaxException: unexpected char: '#' @ line 5, column 81. at
org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:78)...
...(snipped for brevity)
... 38 more 1 error
Thanks a ton for the quick response. I should have caught that. I checked the Properties section under the user guide and noticed the following:
${[scope]propertyName[#xpath-expression]}
So I changed it in the code, which is located under "Setup Script" of my Test Case", but it gives me the following error. I tried a few different things, like moving the variable outside the quotes but that didn't work.
For example:
temp/" + ${#TestSuite#testpropFilename} ));
I also searched the site and net, but only found the following link, which seemed relevant, but didn't help.
http://groovyinsoapui.wordpress.com/200 ... p-request/
def properties = new java.util.Properties();
properties.load( new java.io.FileInputStream( "C:/workplace/work/Testing/temp/${#TestSuite#testpropFilename}" ));
Error:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script31.groovy: 5: unexpected char: '#' @ line 5, column 81.org.codehaus.groovy.syntax.SyntaxException: unexpected char: '#' @ line 5, column 81. at
org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:78)...
...(snipped for brevity)
... 38 more 1 error
Related Content
- 9 months agoRichardPla
- 3 years agoaaronpliu
Recent Discussions
- 5 days agoemoya