deeRavin
14 years agoNew Contributor
Xpath assertions
Hi there,
I have an xml response like :
<abcd>
<e>
<example1>
<id>4</id>
<type>XYZ</type>
<uri>/efgh/edk</uri>
</example1>
</e>
</abcd>
I am trying to validate the id using xpath assertion with the following expression :
//*:abcd/*:e/*:example1/*:id
when I click on 'Select from current' , I get the correct expected result, I save and run the test, its perfectly fine.
When I run the same test using maven, I get comparison failure error.
Please help me with this.
I have an xml response like :
<abcd>
<e>
<example1>
<id>4</id>
<type>XYZ</type>
<uri>/efgh/edk</uri>
</example1>
</e>
</abcd>
I am trying to validate the id using xpath assertion with the following expression :
//*:abcd/*:e/*:example1/*:id
when I click on 'Select from current' , I get the correct expected result, I save and run the test, its perfectly fine.
When I run the same test using maven, I get comparison failure error.
Please help me with this.