Forum Discussion

mwsrosso's avatar
mwsrosso
New Contributor
13 years ago

Log a custom property value

I have created a custom property for a test case and I now want to log this is a script step.

The custom property is called TestCustomProperty

I have tried the following but it errors:

log.info ${#TestCase#TestCustomProperty}


Any advice?

Mark Smith.

1 Reply

  • nmrao's avatar
    nmrao
    Community Hero
    Hi,

    def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
    log.info groovyUtils.expand('${#TestCase#TestCustomProperty}')


    Hope this helps.

    Regards,
    Rao.