Forum Discussion
M_McDonald
16 years agoSuper Contributor
I created a method in an external script like this:
and passed the property in a Groovy script step like this:
and got this:
I have no single quotes around the passed property value in the external method.
Does this help?
class TestUtils {
def static externalExpand(propertyString, context, log) {
log.info propertyString + " = " + context.expand( propertyString )
}
}
and passed the property in a Groovy script step like this:
TestUtils.expand("\${#TestCase#test}",context, log)and got this:
Tue Apr 13 11:04:07 EDT 2010:INFO:${#TestCase#test} = 123456789I have no single quotes around the passed property value in the external method.
Does this help?