Object Identification Inconsistency : Object Identification and Technologies

Object Identification Inconsistency

Technology specific object identification, supported applications, web technologies, and 3rd party controls.

Object Identification Inconsistency

Postby chandrakanth_m » Fri Sep 02, 2011 5: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
chandrakanth_m
 
Posts: 2
Joined: Fri Sep 02, 2011 5:05 pm

Re: Object Identification Inconsistency

Postby Ciege » Fri Sep 02, 2011 10: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...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: Object Identification Inconsistency

Postby chandrakanth_m » Mon Sep 05, 2011 8: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?
chandrakanth_m
 
Posts: 2
Joined: Fri Sep 02, 2011 5:05 pm

Re: Object Identification Inconsistency

Postby Support Team » Mon Sep 05, 2011 12:59 pm

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-dynamic-attributes-in-generated-ranorexpaths

Regards,
Markus
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Object Identification and Technologies

Who is online

Users browsing this forum: No registered users and 0 guests