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.
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.