Forum Discussion
PaulMS
Super Contributor
To expand the properties
log.info context.expand(endPoint)
Bill_In_Irvine
7 years agoContributor
I can do this in an event handler
String therequestUri = new String(context.getProperty("requestUri").toString()) log.info "therequestUri is " + therequestUri
but note it might not be retrievable in the context where you use groovy. Your script might be a test step groovy script, a setup script, or teardown, I don't know...
You can do the following in an assertion script (I just tried it myself)
def endpoint = messageExchange.getEndpoint() log.info endpoint
You might get it via a call path from testRunner. I suggest you look for where you can find the "requestUri" property.
Bill
Related Content
- 8 years ago
Recent Discussions
- 18 days ago