Micro Focus QTP (UFT) Forums
Using Object 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: Using Object Repository (/Thread-Using-Object-Repository)



Using Object Repository - murthybng - 09-02-2010

I am somewhat new to QTP. I have quite good knowledge of vbscript.

I create scripts by recording and then adding vbscript code to make it robust.

During recording the test case, I see the page name changes. For example, when I open the web application
I see the entry Browser("Browser Name").Page("page name").WebEdit("element name").Set "123".
when the script traverses to a different page and come back to this page, the page will be changed
and it looks like Browser("Browser Name").Page("page name_2").WebEdit("element name").Set "123". This happens
for element names also i.e. for the same element, multiple elements are created in the local object repository "Element Name_2".

Due this problem I am not able to maintain an object repository. Though the object repository contain all
elements of the page, when I create a new output or checkpoint, new elements are added with a new page
name with an extension "_2, _3 ... etc".

I think I am missing something. Can anyone help me to get rid of this problem.

Thanks
Sri