Forum Discussion
You can do the following to test or verify xpath content
Select from Current ot
Test to verify whether your xpath content is correct
or what the current content is.
You like the reply. How to give a Kudos / Accept as solution?
Hey sanj, thanks you for answering to my question.
It's a good way to verify if the xpath expression passed in the get data function works, and it seems that the expression Xpath does not work.
Do you have any idea of what should I passed in parameters to the get data to match the response of both version?
The contains expression that I passed is : ${SaveProvidentPolicy - Request 1[8.2]#Response#<some XML code in the response>} What should I passed in the XPATH parameters to verify if "some XML code in the response" is present inside both responses of the backend?
Harold
- sanj8 years agoSuper Contributor
HaroldR Ok I can give you a screenshot of how you can use outline view of the response this will add the xpath assertion for you!
then you can see what may be wrong.
do Add assertions then select for content.
This should give you the xpath.
- HaroldR8 years agoContributor
Thansk for your reply and for the interest that you showed about this question, but I cannot test it yet because I do not have SoapUI pro installed.
I will learn how XPATH language works when my workstation will be entirely configured.
Keep in touch!
Related Content
- 7 years ago
Recent Discussions
- 15 years ago