Forum Discussion

mmoser18's avatar
mmoser18
Frequent Contributor
8 years ago

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",...
  • rupert_anderson's avatar
    8 years ago

    Hi Michael,

     

    Does something like this work for you?

     

    messageExchange.modelItem.testStep.httpRequest.endpoint

    Regards,

    Rupert

  • nmrao's avatar
    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