Ranorex studio spy vs Ranorex spy

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
tkikalishvili
Posts: 9
Joined: Tue Nov 14, 2017 5:05 pm

Ranorex studio spy vs Ranorex spy

Post by tkikalishvili » Tue Nov 14, 2017 5:17 pm

Hello,
I have problem regarding object identification on VM. Problem is that on machine where I develop tests I can easily go to Repository .rxrep and highlight repository item which is searched with AutomationID, but on VM when I run tests item cannot be identified.
When I run Ranorex Spy on development machine it also cannot identify item with automationID.
Please see the screenshot
ranorex anomaly.JPG
.

Environment: Windows 10, Ranorex 7.0.1.(Both, VM and development machine)
What could be the problem?

Thanks in advance,
Tornike
You do not have the required permissions to view the files attached to this post.

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Ranorex studio spy vs Ranorex spy

Post by krstcs » Tue Nov 14, 2017 8:07 pm

First, you should update to a supported version of Ranorex, currently only 7.1.3 and 7.2.1.

Second, a screenshot is not helpful in this situation. Please post a Ranorex Snapshot of the element in question from both systems (dev and VM).

On the VM, use Spy to find the element using Tracking, instead of trying to put in the xpath from your dev system. Make sure that the xpath is the same for both the VM and your dev system. If they aren't the same, then your issue is either that you aren't testing the same version of the application, or there is some part of the path that is changing based on the system/software. If they ARE the same, then there may be other issues.
Shortcuts usually aren't...

tkikalishvili
Posts: 9
Joined: Tue Nov 14, 2017 5:05 pm

Re: Ranorex studio spy vs Ranorex spy

Post by tkikalishvili » Wed Nov 15, 2017 11:54 am

Hi krstcs,
krstcs wrote:First, you should update to a supported version of Ranorex, currently only 7.1.3 and 7.2.1.
It is not so easy task to update software on build test and development machines, and before update I need to be sure that all tests are running properly,
So, obviously, I cannot update software after every new version comes for ranorex(and I'm pretty sure that this will not solve the issue I have now).
krstcs wrote:On the VM, use Spy to find the element using Tracking, instead of trying to put in the xpath from your dev system. Make sure that the xpath is the same for both the VM and your dev system. If they aren't the same, then your issue is either that you aren't testing the same version of the application, or there is some part of the path that is changing based on the system/software. If they ARE the same, then there may be other issues.
I think we have misunderstanding here, so I'll explain again.
Situation:
2 machines, both Windows 10, Both with same version of SUT and both with same version of ranorex. One is VM and another is Dev.
When I run ranorex spy on both machines, outcome is same, tracking element gives me a container which doesn't have automationID.
When I run Ranorex studio, Navigate to Items Repository and track element from there it finds same container, but already with automationID.
This is exactly what is indicated in screenshot. that Spy doesn't identify element with automationID and from repository I can identify them with automationID.
Did you have anything like this in your practice?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex studio spy vs Ranorex spy

Post by odklizec » Wed Nov 15, 2017 12:29 pm

Hi,
tkikalishvili wrote: It is not so easy task to update software on build test and development machines, and before update I need to be sure that all tests are running properly,
So, obviously, I cannot update software after every new version comes for ranorex(and I'm pretty sure that this will not solve the issue I have now).
This is why you should always test a new Ranorex version locally, before pushing it to production env ;) But generally speaking, you should always update minor versions, because they contain mainly bug fixes. I would be cautious about updating to major versions (like from 6.x to 7.0). Initially, all new major versions contain some bugs ;) So it's always better to wait for x.0.1 or x.0.2 before going to production ;) Your version is really old and there were many bugfixes introduced since then. So it's really necessary that you test your problem with the most recent version.
tkikalishvili wrote: I think we have misunderstanding here, so I'll explain again.
Situation:
2 machines, both Windows 10, Both with same version of SUT and both with same version of ranorex. One is VM and another is Dev.
When I run ranorex spy on both machines, outcome is same, tracking element gives me a container which doesn't have automationID.
When I run Ranorex studio, Navigate to Items Repository and track element from there it finds same container, but already with automationID.
This is exactly what is indicated in screenshot. that Spy doesn't identify element with automationID and from repository I can identify them with automationID.
Did you have anything like this in your practice?
I personally never experienced problem like this. But I can see several reasons why it happens.

1) Make sure that both Ranorex Studio and Spy are started with admin rights.
2) Make sure that standalone spy is 32-bit one. Ranorex Studio is 32bit app, and Spy started from Studio is 32bit as well. There are two versions of standalone Spy (32 and 64bit) and in some cases, they can return somewhat different results.
3) Make sure that Ranorex settings are the same both on standalone and VM machine.

As mentioned, it would be really helpful, if you could create and post a Ranorex snapshot, both from Studio Spy and Standalone spy, so we can analyze both snapshots and eventually suggest a solution. Without, at very least, snapshot, there is not much anyone here can do or suggest.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

tkikalishvili
Posts: 9
Joined: Tue Nov 14, 2017 5:05 pm

Re: Ranorex studio spy vs Ranorex spy

Post by tkikalishvili » Wed Nov 15, 2017 3:23 pm

I think I found problem.

I start ranorex spy from Ranorex studio(by clicking View Spy) button and I started ranorex spy from shortcut, Both are 32 bits and none of them with admin rights.
If you observe screenshot, you will see that some items are missing from Ranorex Spy while they appear in Spy which is run from Ranorex Studio.
ranorex anomaly 2.JPG
Here are snapshots from both environments:
snapshotRanorexSpytextitem.rxsnp
snapshotRanorexStudioRepositorytextitem.rxsnp
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex studio spy vs Ranorex spy

Post by odklizec » Wed Nov 15, 2017 4:08 pm

Hi,

Thanks for the snapshots. It's definitely weird. The difference you found is not the only one. There are many more differences in UI structure and attributes in both snapshots. The one created in Spy started from Studio, looks much less detailed. Anyway, I see your app is WPF-based. There were several WPF-related fixes introduced since 7.0.1, so you should really consider to try latest 7.2.1, because the problem you are experiencing may already be fixed.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

dpFourOFour
Certified Professional
Certified Professional
Posts: 39
Joined: Mon Dec 12, 2016 9:24 am

Re: Ranorex studio spy vs Ranorex spy

Post by dpFourOFour » Wed Nov 15, 2017 9:47 pm

Hi folks,

AFAIK the external Spy uses the global configuration (located in %appdata%) and the internal Spy uses the configuration within your solution (if a solution is currently opened in Ranorex).

Also if you open a solution in Ranorex and you change some specific settings, those changes are stored in that solution config. These settings are then not stored in the global configuration.

This might be the source of your differences.

Best,
DP
Please always include the following information to your posts
  • Ranorex Version
  • OS Version

tkikalishvili
Posts: 9
Joined: Tue Nov 14, 2017 5:05 pm

Re: Ranorex studio spy vs Ranorex spy

Post by tkikalishvili » Thu Nov 16, 2017 10:08 am

dpFourOFour wrote:(if a solution is currently opened in Ranorex).
Hi dpFourOFour,

Thanks for your answer, but SUT is not included or opened from Ranorex.
I build test projects in ranorex which runs SUT from installation location.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex studio spy vs Ranorex spy

Post by odklizec » Thu Nov 16, 2017 10:15 am

Hi,

Have you checked the Ranorex settings, if they are the same for Studio/solution and Standalone Spy? This is the first thing you should check. And if configs are the same, you should definitely try latest Ranorex 7.2.1.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

tkikalishvili
Posts: 9
Joined: Tue Nov 14, 2017 5:05 pm

Re: Ranorex studio spy vs Ranorex spy

Post by tkikalishvili » Thu Nov 16, 2017 10:31 am

odklizec wrote:Have you checked the Ranorex settings
I just checked for both and as much as I observed, everything was same. Only difference is that there is one more tab about repositories in Standalone spy.

Ok, I will try to update locally on dev machine and update you as well what was the outcome