Erebos
11 years agoOccasional Visitor
Where is error in XPath?
I'm doing learning testing of Barcode Generator web-service. Can't understand where is the error in assertion.
Type of data in <GeneratorBarCodeResult> - base64binary.
I'm doing learning testing of Barcode Generator web-service. Can't understand where is the error in assertion.
Type of data in <GeneratorBarCodeResult> - base64binary.
Hi Erebos,
The XPath looks fine. I think the assertion fails, as the actual and expected results are different. Do you always get the “Qk2qtwEAAAA…..” value in responses? You can check it by comparing the value from the current response and the one you specify in the assertion. Perhaps, you will need to use wildcards to replace a variable part: http://readyapi.smartbear.com/structure/assertions/property/xpath/xpath/example