Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Objects keep changing names
#1
Not Solved
Hi all

My scripts wont run, probably due to some runtime change in object names.

example

Code:
Browser("Mercury Tours").Page("Mercury Tours")

Changes to: Browser("Mercury Tours_2").Page("Mercury Tours_2")

I can do a maintenance run, but that only helps temporarily until the next change.

Anyone who can help ?
Reply
#2
Not Solved
Hi,

If you are using object repository.Your script will run only when QTP is able to identify the object.

In following cases QTP does not identify the object:

a) When dublicate object exist.

b) Object does not exist.

c) Object property micmatch.

In your case it's dublicasy of the the objects.
Smile
Reply
#3
Not Solved
Hi Ankur

Its not duplicate objects that are the problem here. It is the way QTP sees the pages runtime. If i do a maintenance run, the pages get a _2, _3...etc. So instead of seeing:

Code:
Browser("Mercury Tours").Page("Mercury Tours")
it sees :
Code:
Browser("Mercury Tours_2").Page("Mercury Tours_2")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT issues with Outsystems dynamically generated Id/names jherron 2 1,363 03-02-2020, 09:33 PM
Last Post: Swishy70
  Page element keep changing chong67 4 4,640 11-08-2016, 09:17 PM
Last Post: Paul Rammone
  Comparing two excel Sheets whose columns names vary Divya Roopa 2 8,653 03-26-2014, 07:20 PM
Last Post: Parke
  Count number of webelement with specific names kalaivanan123 2 4,648 07-31-2012, 11:52 AM
Last Post: Ankesh
  Changing QTP Class praveendasika 1 2,940 07-13-2012, 07:35 AM
Last Post: ravi.gajul

Forum Jump:


Users browsing this thread: 1 Guest(s)