Forum Discussion

beautilin's avatar
12 years ago

Xpath Assertion With two sequentially different responses

Xpath Assertion step gets failed due to the sequential problem between base and actual response.
For Ex:
Base Response:
<OtherInfo>
<Data>
<Name>Truck-Rate</Name>
<Value>452.0</Value>
<Type>DOUBLE</Type>
</Data>
<Data>
<Name>Sheet-Ref</Name>
<Value>IN-49492</Value>
<Type>STRING</Type>
</Data>
<Data>
<Name>DOW</Name>
<Value>1234567</Value>
<Type>STRING</Type>
</Data>
</OtherInfo>

Actual Response:
<OtherInfo>
<Data>
<Name>Sheet-Ref</Name>
<Value>IN-49492</Value>
<Type>STRING</Type>
</Data>
<Data>
<Name>DOW</Name>
<Value>1234567</Value>
<Type>STRING</Type>
</Data>
<Data>
<Name>Truck-Rate</Name>
<Value>452.0</Value>
<Type>DOUBLE</Type>
</Data>
</OtherInfo>

Is there any way to make the xpath assertion to get passed?

1 Reply

  • nmrao's avatar
    nmrao
    Community Hero
    Would you mind sending the xpath you using which is failed? Or can you explain clearly what path of the response needs to be verified ?