Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object pointer from Repository to Application
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
Dear All,
I have this set up :

1. A frozen WEB application, no changes is being made
2. A QTP script with one action
3. A local Repository
4. Method used for scripting . record and play (not analog)
5. Default set-up used in Qtp 10.0

The problem is, that , when I run the scripts, sometimes I will have the error ; "object not found".
The object can be found in the repository but not in the application.
I repair by "update from application", but the problem can occur afterwards.

Can anyone tell me, what the reason for this this loss of pointer to the apllication is, and how I can avoid it to happen ?

Mollkoff
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi,
Verify the property of the object which is not found by QTP in the application. Try using Property-Value pair.
Please provide some more information if this doesnot help.
Reply
#3
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi,

It might be the synchronization issue. Since u are using record and play, u must be navigating between pages. Application takes time to load the page and its objects but qtp moves to the next line of code and try to find out the object . So its better to use .sync property.

Let me know if its worked 4 u or not.

Regards,
Sankalp
Reply
#4
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi,

You can try with the following:

when the error message pops up Stop the run Process. then select the object from the Object Repository and click on button "Highlight it in the application". If it able to find the object in the application then it is supposed to recognize the object in the runtime too.
If the object not found in the application that means that object not yet populated in that application by that time .
This might happen, because of wait property. That specific object might not have loaded by that time. so give sync or Wait property and again run the script.

And one thing, the application should be opened after QTP is opened, other wise it might not recognize any of the objects.

Hope above will help.

Regards,
Nilanjan.
Reply
#5
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi Molkoff,

Since you have mentioned that you repair by "update from application", it seems that the most probable reason your scripts are failing is that your objects are dynamic. Check the object properties when the "Object Not Found" error occurs. Compare this with the corresponding value in the Object Repository. If the values are different, then this is the issue.

You can try using regular expressions to identify the objects. (However, this would work only if the object properties follow some pattern.)

Just perform the above check and let us know the results.

Thank You,
Ravi Shankar
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  webfile web object not identified at runtime in a java application saila123 1 2,649 02-11-2015, 08:23 PM
Last Post: Kirill
  QTP highlights object incorrectly in INFOR EAM application akhandesh 0 2,105 01-24-2014, 12:22 PM
Last Post: akhandesh
  How to access webtables without adding into Object Repository ramkumarad 7 9,253 12-30-2013, 07:38 PM
Last Post: Sathiya
  which gives better performance qtp with Object repository or qtp without OR. qtpexpert 6 6,050 10-29-2013, 08:56 PM
Last Post: Parke
  QTP Not Able to recognise the object in window application. Sudipta Gusain 4 4,542 04-17-2013, 07:35 PM
Last Post: Benak

Forum Jump:


Users browsing this thread: 1 Guest(s)