Micro Focus QTP (UFT) Forums
Object Not found in repository - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Object Not found in repository (/Thread-Object-Not-found-in-repository)



Object Not found in repository - Sivgamii - 07-23-2010

Guys,

I am new to QTP and struggling to get a script working. I recorded a web-based app which generated code on the lines,

Code:
Browser("APP_1").FlexApplication("Main").FlexCanvas("Select product").FlexForm("index:5").FlexComboBox("Domain:domainComboInput").Open
When i play back it fails with the error "Object not found in repository". I checked OR and the object seems to be available under APP_1. I selected to record the step again and this time it generated,
Code:
Browser("APP_2").FlexApplication("Main").FlexCanvas("Select product").FlexForm("index:5").FlexComboBox("Domain:domainComboInput").Open

The browser title or name, is getting incremented to APP_1, APP_2, APP_3 etc during each recording and so consistently fails playback. How to overcome this issue? Any suggestion would be of great help.

Thanks in Advance, SiviSad


RE: Object Not found in repository - Saket - 07-23-2010

try regularizing you browser title/url something like App_.*, similary you can do for your url.


RE: Object Not found in repository - Sivgamii - 07-23-2010

Thanks a lot for the reply Saket.
I seriously do not understand what you actually mean by "try regularizing your browser title/url something like App_.*". Do you imply that my coding should be something like Browser("App_.*)?

However i think i found a workaround. I was browsing through OR and found all objects in my application available under "#" (though they are available under APP_1 and APP_2 as well). Modified the code to Browser("#") and it works Smile)

I would really like to know what you meant by regularizing the browser though.
Guys,

The problem is back again.
See the attached document.

Any help is appreciated.

Thanks in advance
Sivi.


RE: Object Not found in repository - Sivgamii - 07-26-2010

Hi Saket,

I did NOW understand what you meant by regularise Smile

In OR title description i entered value APP\_?[1-10]?
It did not work. But, the concept looks that it may provide a solution. I need to understand regularise in more detail.

Thanks again.
Sivi