Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick Test Pro: How to recognize Custom objects in QTP?

Status
Not open for further replies.

gurlfob

Programmer
Oct 29, 2001
35
US
How does QTP recognize Custom objects/3rd party controls?
Thanks.
 
Given that QTP was based on WinRunner (where I have experience) I'd guess that there is a way to define where and what theese objects are as Virtual Objects.

Afraid this forum is virtually dead, by the way. Doesn't appear too many people in TT use Mercury products or are involved in Testing. Last post was in August, and most of the posts are about how to learn WR or TD.

Sorry I can't help out more.

Dave

[joinedupwriting]
"whaddaya mean, 'invalid tag'?!?"
[/joinedupwriting]

[lightsaber]
 
Thank you for your reply. I was reading QTP User's Guide and found something about mapping custom objects.
 
The object Mapping dialog box enables you to map an object of an unidentified or custom classe to a Standard Windows class. For example, if your application has a button that cannot be identified, this button is recorded as a generic WinObject. You can teach Quick test to identify your object as if it belonged to a standard Windows button class. (from qtp users' guide)
 
I am working on a custom Built application, There is Object Fgrid and the window is a JDK component.
In the Grid there is Text which I have to identify in QTP. Please let me know if anyone can help me to identify the text from this object, if I record it just gives me the x &y Co-ordinates.
 
You need to check what properties are available against the object. Firstly identify the object containing the text. Is this a textbox on the grid, or simply text on the grid?

Then take a look at the Test Object properties for the object concerned. QTP captures enough properties to make each object unique and ignores others. Some are mandatory (co-ordinates) and others are assistive (in case the mandatory properties are not enough to uniquely identify the object). These can be adjusted in the Test Object properties listing. Depending on which version of QTP you are using, the list appears under a different name.

QTP 8 --> Help - QTP Help - Object Model Reference - <your environment> - <your environment> - Test Object Properties

In QTP 6.5, --> Help - QTP Help - Object Model Reference - <your environment> - <object> - Test Object Properties.

Make sure the properties you want to be captured are set to be captured.

That should do it...

Cheers,
Dave

Probably the only Test Analyst Manager on Tek-Tips...therefore whatever it was that went wrong, I'm to blame...

animadverto vos in Abyssus!

Take a look at Forum1393!
 
Hi,
To automate custom object 3 ways are available.

1. Class Mapping.
2. Divide single custom object by two or more standard objects using Virtual Object wizard.
3. Come up with your own functions for low level actions according to the object (click, enter, focus, get value..etc..)



Thanks and Regards,
Palani.
mail to: tmpalaniselvam@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top