Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Object Repository
#1
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Do we need object repository?? subhashinid 0 1,865 07-06-2016, 10:07 AM
Last Post: subhashinid
  Object repository losing object properties ishan.mahajan@adp.com 2 3,455 08-20-2015, 11:33 PM
Last Post: ADITI1992
  login object not found in object repository Akram 2 2,979 06-01-2015, 07:47 PM
Last Post: babu123
  object was not found in the Object Repository reynard 0 6,652 03-17-2015, 10:54 PM
Last Post: reynard
  Change Object Repository File Path for ExternalActions MasterChief 1 4,436 11-13-2014, 06:05 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)