What can be done if the Objects are not being recognised as expected by QTP
1. Make sure you have the appropriate add ins installed
2. Try opening QTP first and then the application and also visa-versa
3. Try opening the application through QTP by changing the Record and Run settings. Add the url for the application and then select the option "Record and Run only on"
4. Try opening the application through SytemUtil.Run and then try
5. Check the object type with the developers are try to decide which property an be used to uniquely identify the object
6. Go for descriptive programming
7. Try and create Virtual objects and try
8. Go for some misc options to find a work around like active cursor, active tab. Also try if it is possible to get to the object using the keyboard shortcuts.
9. Last but not the least check if there is some work around with out touching that part of the page or screen. This is generally not prefered at all.
Search This Blog
Showing posts with label Objects. Show all posts
Showing posts with label Objects. Show all posts
Friday, July 30, 2010
Creating Objects
To create user defined objects and give them properties that you want
Myobj = Description.Create()
Myobj("Attachedtext").Value = "Agent"
Myobj("htmltag").Value = "A"
The object is now created. Now let us see how we can use this object in our script
Dialog(" ").WinEdit(Myobject).Set "Name"
Myobj = Description.Create()
Myobj("Attachedtext").Value = "Agent"
Myobj("htmltag").Value = "A"
The object is now created. Now let us see how we can use this object in our script
Dialog(" ").WinEdit(Myobject).Set "Name"
Subscribe to:
Posts (Atom)