03-06-2014 03:03 AM
Hello every one,
If someone can help me i need several light in usign a the 'Validate XML" function for a test API in UFT.
I'm more familiar with GUI testing and recently I had to focus on the test API so I am little bit new with Service Test.
The work flow of my test is quite simple :
1. using a function of a web service
2. check the syntaxe of the response with
3. check some data in the response
My problem is at the step 2 where Im using the function "Validate XML" with XSD file to check the syntaxe of the response : whatever the parametization I do a always get a false status but if i see the response by myself I do not see any problems of syntaxe :all tags expected are well present in the reponse.
If anyone can help my how to do the well parametization for this function it would be nice.
Thanks a lot.
03-06-2014 01:22 PM - edited 03-06-2014 01:25 PM
Are you able to manually validate the XML with the xsd without any errors?
I use the tool Altova Spy to validate the XML against the schema manually. Based on the sensitivity of the data you may use free online tools like this one [http://www.utilities-online.info/xsdvalidation/#.U
Try below steps to validate the XML via UFT tool, hope this helps
1. In UFT API test, add Read from File activity [under standard activities > File] onto the canvas
-- Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any solution/suggestion posted.