Problem with image bases recording - no folder created

Ask general questions here.
BlindJones
Posts: 29
Joined: Fri May 17, 2019 7:10 am

Problem with image bases recording - no folder created

Post by BlindJones » Wed Jun 24, 2020 10:00 am

Hi all,

Setup: Win 10 / AUT: 32bit / Ranorex Studio Version 9.3.2

I have a problem with my Ranorex solution:

I am building up a solution to test an application which contains a button bar that is recognized by Ranorex Spy as just one element.

To be able to click one specific button on that button bar, I switched the recording mode to "Image based recording" and clicked on the part of the button bar, which I want to access.

But when running the recording again, Ranorex shows a error message (see image attached), that part of the folder could not be found.
I checked back in the Windows explorer and the directory is not existent.

The screenshot can be seen in the repository.

Can someone help me with that? Do I have to configure anything before using "Image based recording"?
I already tried rebuilding the solution and I get a lot of warning messages there (I attach them as well). Can that be related to my problem?

Thank you! :-)

Kind regards
BlindJones
Attachments
Build_warnings.txt
(27.04 KiB) Not downloaded yet
No_folder.png
No_folder.png (55.29 KiB) Viewed 58 times
ErrorMessage.png
ErrorMessage.png (55.8 KiB) Viewed 58 times

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

Re: Problem with image bases recording - no folder created

Post by odklizec » Wed Jun 24, 2020 10:14 am

Hi,

Images for image-based actions are stored in rximg file, which should be created automatically. There is no configuration required. Could you please confirm that there is created rximg file in the main project folder? Then try to rebuild the whole solution.
2020-06-24_11-12-46.png
2020-06-24_11-12-46.png (62.19 KiB) Viewed 53 times
I see you are using multiple test suites in your solution? Maybe this could have something to do with this problem? I would suggest to try to create a new solution with just one test suite and repeat the steps.
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

BlindJones
Posts: 29
Joined: Fri May 17, 2019 7:10 am

Re: Problem with image bases recording - no folder created

Post by BlindJones » Wed Jun 24, 2020 10:21 am

Hi odklizec,

thank you for your fast answer. :-)

The file itself is there in the main folder, but in Ranorex it is shown with a exclamation mark. Do you know what that means?

I already clicked on "rebuild solution", but it still does not work...

EDIT: The exclamation marks are now gone, there disappeared after commiting the solution to Azure.

Can I copy the Testsuite to a new project to test?

Thank you!
Attachments
rximg_screenshot2.png
rximg_screenshot2.png (42.73 KiB) Viewed 52 times
rximg_screenshot.png
rximg_screenshot.png (17.31 KiB) Viewed 52 times

BlindJones
Posts: 29
Joined: Fri May 17, 2019 7:10 am

Re: Problem with image bases recording - no folder created

Post by BlindJones » Wed Jun 24, 2020 10:37 am

Hi odklizec,

I made now a new solution with just one recording Image based to access that button. And it works.
So you are right, there must be any problem with my main solution...

Best regards
BlindJones

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

Re: Problem with image bases recording - no folder created

Post by odklizec » Wed Jun 24, 2020 10:44 am

Hi,

I believe you are using Ranorex integration with version control system? I think the file with exclamation mark is either in conflict state or not yet added to version control system? Just make sure the solution is checked-in and you have all changes from server. I think it's better to use versioning outside Ranorex 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

BlindJones
Posts: 29
Joined: Fri May 17, 2019 7:10 am

Re: Problem with image bases recording - no folder created

Post by BlindJones » Wed Jun 24, 2020 11:25 am

Hi,

due to the fact, that it works, when I create a new solution...
Can I import all of my current solution (like test suites / recordings / repository) in an easy way to a new solution? :?:

Kind regards
BlindJones

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

Re: Problem with image bases recording - no folder created

Post by odklizec » Wed Jun 24, 2020 1:18 pm

Hi,

If I were you, I would first try to remove source control integration from the solution. Then try to recompile the solution.

I'm not aware of any easy way to import files from one solution to another. Of course, you can import individual files or entire projects, but I'm not so sure it will be helpful in your situation.
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

BlindJones
Posts: 29
Joined: Fri May 17, 2019 7:10 am

Re: Problem with image bases recording - no folder created

Post by BlindJones » Wed Jun 24, 2020 3:28 pm

Hi odklizec,

thank you, I will try that out tomorrow.

Have a nice day!

Best regards
BlindJones

BlindJones
Posts: 29
Joined: Fri May 17, 2019 7:10 am

Re: Problem with image bases recording - no folder created

Post by BlindJones » Wed Jun 24, 2020 6:49 pm

Hi odklizec,

can you please tell me how to remove the source control from the solution?

Thank you!

Best
BlindJones

BlindJones
Posts: 29
Joined: Fri May 17, 2019 7:10 am

Re: Problem with image bases recording - no folder created

Post by BlindJones » Thu Jun 25, 2020 6:57 am

Good morning,

I found the reason for the problem:

Two repository items had invalid characters, that Ranorex could not handle. I copied the repository to a new project and deleted the repository items step by step to see, which entries have a problem. Then I found the faulty entries, removed the invalid character and now my image-based recording works again (see example for one of that characters attached).

The weird thing is, that only the image-based-recordings failed, everything else worked fine all the time...

I hope that this post maybe helpful for another user with such a problem.

Thank you for the help!

Best regards
BlindJones
Attachments
Invalid_character.png
Invalid_character.png (1.89 KiB) Viewed 29 times

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

Re: Problem with image bases recording - no folder created

Post by odklizec » Thu Jun 25, 2020 7:02 am

Hi,

Nice find! Do you still have a copy of repository with invalid characters? I think it would be interesting for Ranorex folks to see it?
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

BlindJones
Posts: 29
Joined: Fri May 17, 2019 7:10 am

Re: Problem with image bases recording - no folder created

Post by BlindJones » Thu Jun 25, 2020 7:10 am

Hi,

yes I have still a copy containing the invalid characters.

If a Ranorex employee will reply and give me an email adress or an upload link, I will send my repository for analyzing.

Best
BlindJones

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

Re: Problem with image bases recording - no folder created

Post by odklizec » Thu Jun 25, 2020 7:13 am

Hi,

The best option is to contact them via support form, available here:
https://www.ranorex.com/support-query/
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

BlindJones
Posts: 29
Joined: Fri May 17, 2019 7:10 am

Re: Problem with image bases recording - no folder created

Post by BlindJones » Thu Jun 25, 2020 7:56 am

Okay, I will do that with a link to this forum thread.

Best
BlindJones