Forum Discussion

ankitaT's avatar
ankitaT
Contributor
15 years ago

Verify XPath Match assertion against more than 1 value

Hi,

I want to compare my received response to 2 values.
I am using XPath match assertion.
However, I can compare it to only one value and in that case one of the two assertions fail.
Suppose I receive the value of URI tag, I want to verify that the value should be either URI1 or URI2.
How can I achieve this? Can I use something like OR operator in the expected result field? Or should I use some other assertion?

2 Replies

  • Hello,

    You should be able to use XPath operators like | 9 (or) to achieve this.

    Hope this helps,
    robert
  • Krushal's avatar
    Krushal
    New Contributor
    Hi,
    I am running through the same problem and |,(or) is not working.
    Can you please help me if you got the answer.
    I am new to soapui and I am not able to find it.
    can you please reply your XPath expression and Expected value with eg. if possible.

    Thanks