Object Identification Inconsistency

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
chandrakanth_m
Posts: 2
Joined: Fri Sep 02, 2011 4:05 pm

Object Identification Inconsistency

Post by chandrakanth_m » Fri Sep 02, 2011 4:49 pm

I have my Ranorex Scripts which works in the same environment on the same version of the application. Each time I run the script the results vary. An object X which was recognized and performing well in one iteration will fail to be recognized in the next one.. Can someone help me understand why this might happen..

Thanks
Chandrakanth

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Object Identification Inconsistency

Post by Ciege » Fri Sep 02, 2011 9:47 pm

Can you post your code and a RanorexSpy snapshot of the AUT for when it works and another snapshot for when it fails?
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

chandrakanth_m
Posts: 2
Joined: Fri Sep 02, 2011 4:05 pm

Re: Object Identification Inconsistency

Post by chandrakanth_m » Mon Sep 05, 2011 7:24 am

I am afraid I cannot put the code or the screen shot as we work in secure environment and cant share code or screenshots. But please help me understand how the AUT will be different at runtime?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Object Identification Inconsistency

Post by Support Team » Mon Sep 05, 2011 11:59 am

Hi,

Sometimes Ranorex takes attributes for the object identification and the RxPath which are not static/unique.
I mean that some attributes can change after each restart of your AUT.
One of these attributes is the "id", if you are using such an element it could be that the id of the specific elements change after each restart of your AUT.
In many cases the developers set an unique id for each element, but in some cases these ids are changing, if so you have to select another attribute for the identification of the specific element.
Therefore you have to check if you are using dynamical attributes in your RxPath, you only have to "spy" the object X before the restart of the AUT and after it. If the two RxPaths are not the same you have to eliminate the dynamical attributes.
Please also take a look at the following links:
http://www.ranorex.com/blog/ranorexpath-tips-and-tricks
http://www.ranorex.com/blog/eliminate-d ... norexpaths

Regards,
Markus
Ranorex Support Team
.
Image