Forum Discussion
richardn
17 years agoNew Contributor
Okay I found my problem. I was using double-quotation marks and GroovyUtils.expand. I changed it to single-quotation marks and used the context object and it worked. e.g.:
def test = context.expand( '${#Project#TestMe}' )
log.info(test)
Now onto overriding it from the command line. This is what I'm using to try and override the properties:
C:\RnD\UseProperty>"\Program Files\eviware\soapUI-2.5.1\bin\testrunner.bat" useproperty.xml -sTestSuite -PTestMe=It_worked
def test = context.expand( '${#Project#TestMe}' )
log.info(test)
Now onto overriding it from the command line. This is what I'm using to try and override the properties:
C:\RnD\UseProperty>"\Program Files\eviware\soapUI-2.5.1\bin\testrunner.bat" useproperty.xml -sTestSuite -PTestMe=It_worked