Get Data from XML for SQL in UFT API.

  • Questions
  • Get Data from XML for SQL in UFT API.
Question ID: 107488
0
0

How can I capture a value from the XML returned, then run a SQL query against my database and compare the fields in the database record to expected results. Would I use the database functions in API testing?

Marked as spam
Posted by (Questions: 22, Answers: 6)
Asked on March 3, 2017 3:53 pm
10 views
Answers (1)
0
Private answer

I have used from the tool box ''TransForm XML'' with an XSLT to get the value of a item in XML. For example I used the following XML from [W3Schools.com](http://www.w3schools.com/xsl/).


Tove
Jani
Reminder
Don't forget me this weekend!

Then I used the following XSLT file:






This returns the 'To' value. Then I have used the database functions.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on March 3, 2017 3:54 pm