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?
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?