Geeks With Blogs

News QTP and Stuff

Theo Moore Questions... Morphology? Longevity? Incept dates?
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 on Wednesday, February 15, 2006 4:20 AM | Back to top


Comments on this post: QTP: XMLDocument

# re: QTP: XMLDocument
Requesting 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
Left by Kiran on Feb 24, 2006 1:29 AM

# re: QTP: XMLDocument
Requesting 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
Left by Theo Moore on Feb 24, 2006 8:42 AM

# re: QTP: XMLDocument
Requesting Gravatar...
i want the code to compare two xml files in qtp.
please send me code if you have
Left by mohan on May 26, 2006 3:30 AM

# re: QTP: XMLDocument
Requesting 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...
Left by bharath on Dec 05, 2007 2:06 AM

# re: QTP: XMLDocument
Requesting Gravatar...
mail me at bharath.qtp@gmail.com
Left by bharath on Dec 05, 2007 3:05 AM

# re: QTP: XMLDocument
Requesting 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...
Left by Parva Thakkar on Jan 02, 2008 1:23 AM

# re: QTP: XMLDocument
Requesting 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??
...
Left by sona on Jan 30, 2008 8:39 PM

# re: QTP: XMLDocument
Requesting 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
Left by srikanth on Feb 07, 2008 4:11 AM

Comments have been closed on this topic.
Copyright © Theo Moore | Powered by: GeeksWithBlogs.net