mmoser18
8 years agoFrequent Contributor
How to access the request's endpoint in a scripted assertion?
In my soapUI project I am making heavy use of scripted assertions, i.e. I am constructing the strings against which to match the responses using Groovy scripts. Some of our calls echo a "self-link",...
- 8 years ago
Hi Michael,
Does something like this work for you?
messageExchange.modelItem.testStep.httpRequest.endpoint
Regards,
Rupert
- 8 years ago
mmoser18, rupert_anderson has already provided answer.
And here is another simple way to get the same in Script Assertion:
context.endpoint