Forum Discussion
rajpenumalli
7 years agoOccasional Contributor
Hi,
Thanks for quick replay,
it is giving out put as follows: ${#Project#server}/version_{#Project#apiVersion}/login
but i need in raw format like: demo.app.com/version_1.0.0/login
Any idea how to get this?
Thanks,
Rajendra
- avidCoder7 years agoSuper Contributor
Could you please attach the screenshot for this?
- PaulMS7 years agoSuper Contributor
To expand the properties
log.info context.expand(endPoint)- Bill_In_Irvine7 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
- 2 years ago
- 5 years ago
Recent Discussions
- 2 days ago