Repository items visibility during runtime

Ask general questions here.
mscientist
Posts: 8
Joined: Wed Jul 21, 2021 10:00 am

Repository items visibility during runtime

Post by mscientist » Wed Jul 21, 2021 10:06 am

Hello.

My company is evaluating your product, and we come across a problem we could not resolve.
Tracking engine can see 2 items, parent and child. These are theirs urls:
/form[@title>'Prenotazione - Ricetta Numero']//element[@controlid='1017']/element[@controlid='1016']

/form[@title>'Prenotazione - Ricetta Numero']//element[@controlid='1017']/element[@controlid='1016']/text[@accessiblename='pranaprz_prz_desb']

But in runtime, child can not be seen. When I stop app execution, and try to locate child with track, he does not see it.
If I close the app, and open it regularly, this item can be tracked.

Thank you in advance.
You do not have the required permissions to view the files attached to this post.

User avatar
tmcdoniel
Certified Professional
Certified Professional
Posts: 78
Joined: Mon Dec 07, 2020 6:30 pm

Re: Repository items visibility during runtime

Post by tmcdoniel » Wed Jul 21, 2021 6:13 pm

Hello, try tracking the items using Ranorex Spy, find the item and click on it. The path should be visible in Spy. Right click on spy and add it and children to your repository.

Image
Sales Engineer @ Ranorex

mscientist
Posts: 8
Joined: Wed Jul 21, 2021 10:00 am

Re: Repository items visibility during runtime

Post by mscientist » Thu Jul 22, 2021 1:44 pm

Thank you for quick response.

I dont have option for adding item to repository, probably because this is desktop app.
In attach is how parent and child items are defined.
The problem is that ranorex detects them as separate entities.
I also tried to make parent item as root folder, and to add child to it, but logic in ranorex spy is again the same.
In runtime he is trying to find child inside parent item, and can not.
You do not have the required permissions to view the files attached to this post.

mscientist
Posts: 8
Joined: Wed Jul 21, 2021 10:00 am

Re: Repository items visibility during runtime

Post by mscientist » Thu Jul 22, 2021 1:46 pm

Sorry, here is expanded parent tree. As you can see, there is not present required child element.
You do not have the required permissions to view the files attached to this post.

User avatar
tmcdoniel
Certified Professional
Certified Professional
Posts: 78
Joined: Mon Dec 07, 2020 6:30 pm

Re: Repository items visibility during runtime

Post by tmcdoniel » Thu Jul 22, 2021 10:16 pm

Perhaps you already are doing this? But make sure you are running Ranorex as Administrator, that way it will also launch the AUT as administrator as well.
Sales Engineer @ Ranorex

mscientist
Posts: 8
Joined: Wed Jul 21, 2021 10:00 am

Re: Repository items visibility during runtime

Post by mscientist » Fri Jul 23, 2021 7:48 am

I tried to run ranorex as admin, but the problem is same.

In ranorex spy I put parent item as root directory, and put child item inside, but he still can not find child in parent directory.

Does this means that we have no control of element connections, but it is fixed as ranorex tracking system sees it?
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: Repository items visibility during runtime

Post by odklizec » Fri Jul 23, 2021 7:57 am

Hi,

Could you please create and post a Ranorex snapshot (NOT screenshot) of the AUT during the execution? Simply add Create snapshot action in recording of your choice, ideally, just before the failing action. Thanks.
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

mscientist
Posts: 8
Joined: Wed Jul 21, 2021 10:00 am

Re: Repository items visibility during runtime

Post by mscientist » Fri Jul 23, 2021 11:29 am

Additional info:

When ranorex is not in runtime mode, parent is seen like this:

/form[@title>'Prenotazione - Ricetta Numero']//element[@controlid='1017']/element[@controlid='1016']

and it has child

And when ranorex is in runtime mode, parent is seen like this:

/form[@title>'Prenotazione - Ricetta Numero']/element[@controlid='1009']/element[@controlid='1000']/element[@controlid='1017']/element[@controlid='1016']

and it has no child

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

Re: Repository items visibility during runtime

Post by odklizec » Fri Jul 23, 2021 11:44 am

Hi,

Well the first issue is, that controlids are not persistent. Therefore, you will have to eliminate them and use something else to identify the element in question, maybe even directly unrelated to the element in question (using xpath axes)? Unfortunately, it's impossible to suggest something reliable without, at very least, a Ranorex snapshot.

As for missing child element in runtime, usually, this is a common issue for windows comboboxes or context menus, which often opens in a separate window, completely disconnected from the main app UI. This is a windows "feature" (issue) and there is nothing Ranorex can do about. Unfortunately, it's hard to tell what's wrong in your case, without seeing, at very least, a Ranorex snapshot. Could you please create and post a Ranorex snaphsot during runtime, as requested in my previous post?

Additionally, please make sure both standalone Spy and Studio use the same settings! Simply export the settings from Standalone Spy and import them to Studio Settings while the solution is open.
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

mscientist
Posts: 8
Joined: Wed Jul 21, 2021 10:00 am

Re: Repository items visibility during runtime

Post by mscientist » Fri Jul 23, 2021 2:31 pm

Good day.

Here are the snapshots.
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: Repository items visibility during runtime

Post by odklizec » Fri Jul 23, 2021 9:32 pm

Hi,

Thanks for the snapshots. It really seems to me like the Settings are different for Standalone spy and Studio settings/settings stored in your solution. Have you tried what I suggested (export settings from standalone Spy and import them to Studio).
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

mscientist
Posts: 8
Joined: Wed Jul 21, 2021 10:00 am

Re: Repository items visibility during runtime

Post by mscientist » Mon Jul 26, 2021 9:18 am

Good day.

Yes, I did export-import for settings, but the problem is the same.

And in runtime we also have another problem.
Texts for dialog boxes of our application is in one .ini file.
When ranorex is in runtime, before every dialog box, our app tell us that it can not find that .ini file. And when we confirm it, our regular dialog shows text. So that file is not visible in one brief moment before it is needed for dialog boxes.
Do you have any theory regarding this?

mscientist
Posts: 8
Joined: Wed Jul 21, 2021 10:00 am

Re: Repository items visibility during runtime

Post by mscientist » Mon Jul 26, 2021 9:29 am

And one comment regarding settings.
When I change some setting in ranorex application, and go to ranorex spy, the settings are also changed there.