QTP: XMLDocument

Been working on the test component framework for our products in QTP. What I am noticing more and more often is that QTP native tools and functionality aren't terribly reliable. If you want to do something very simple, sure, but it often gets confused or loses the object with which it is to interact. That sucks

I have also started to try and bypass the object repository for a variety of reasons. One of the biggest is that it sometimes "learns" an object strictly by it's x,y coordinate. Oy. Can't build a test based on that. So, I've started interacting with the underlying XML document on the page. QTP does wisely present this to you right of the Page object, and allows you to interact with the elements in whatever fashion you want. Nice!

I am going to pursue certification in this tool, I think. It's a little expensive, but should be worthwhile. I have also been tapped to be our next TestDirector admin, so that should be interesting.

posted @ Wednesday, February 15, 2006 4:20 AM

Print

Comments on this entry:

# re: QTP: XMLDocument

Left by Kiran at 2/24/2006 1:29 AM
Gravatar
Hi,
I am too working on QTP.
I want to record a JGOView object in my script.QTP is recording the x,y co-ordinates of the object and when want to run the test ,the test fails.
JGoView class belongs to JGo package from Northwood Software.This is a java api for graphics.

due u have any idea to how to catch and reply this JGoView object

plz mail me at potnuru.kiran@gmail.com

# re: QTP: XMLDocument

Left by Theo Moore at 2/24/2006 8:42 AM
Gravatar
Sorry, boss, I am not terribly familiar with the JGOView object, so I'd have a tough time helping you out. I will say that if QTP is actually using the x,y coords to identify the object, then QTP is having real trouble interacting with it. If it has a visible form or control, you could try getting at the control using the Windows API (FindWindowEx) and getting at it that way. Once you have the hwnd, you should be able to use descriptive programming to get at the control in QTP. That's the tack I'd try.

Hope this helps!
Theo

# re: QTP: XMLDocument

Left by mohan at 5/26/2006 3:30 AM
Gravatar
i want the code to compare two xml files in qtp.
please send me code if you have

# re: QTP: XMLDocument

Left by bharath at 12/5/2007 2:06 AM
Gravatar
Hi..

I want to compare the output of xml file with that of the database(SQL SERVER) output.

Please provide me if you have any example...

# re: QTP: XMLDocument

Left by bharath at 12/5/2007 3:05 AM
Gravatar
mail me at bharath.qtp@gmail.com

# re: QTP: XMLDocument

Left by Parva Thakkar at 1/2/2008 1:23 AM
Gravatar
Hi, I have some similar kind of query.. I want to use data embedded in XML to compare with results of database queries.
if not then i want to save XML data in excel files...

# re: QTP: XMLDocument

Left by sona at 1/30/2008 8:39 PM
Gravatar
I also wanna knw more about XML files in QTP , wanna prepare xml files and upload using JMS sender..
Need to change the values(fields) inside few tags and create many files to upload and chk the output in application for all..
I want to use data embedded in XML to compare with results of database queries also,can u plz help me out??
...

# re: QTP: XMLDocument

Left by srikanth at 2/7/2008 4:11 AM
Gravatar
Dear All,
I need a code to read all tags and attributes in XMl tabs and put in Xls.
If any one is having this code, please send it to me srikanthpunuru@gmail.com
Comments have been closed on this topic.
«December»
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910