Page 1 of 1
Problem with image bases recording - no folder created
Posted: Wed Jun 24, 2020 10:00 am
by BlindJones
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
Re: Problem with image bases recording - no folder created
Posted: Wed Jun 24, 2020 10:14 am
by odklizec
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
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.
Re: Problem with image bases recording - no folder created
Posted: Wed Jun 24, 2020 10:21 am
by BlindJones
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!
Re: Problem with image bases recording - no folder created
Posted: Wed Jun 24, 2020 10:37 am
by BlindJones
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
Re: Problem with image bases recording - no folder created
Posted: Wed Jun 24, 2020 10:44 am
by odklizec
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.
Re: Problem with image bases recording - no folder created
Posted: Wed Jun 24, 2020 11:25 am
by BlindJones
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
Re: Problem with image bases recording - no folder created
Posted: Wed Jun 24, 2020 1:18 pm
by odklizec
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.
Re: Problem with image bases recording - no folder created
Posted: Wed Jun 24, 2020 3:28 pm
by BlindJones
Hi odklizec,
thank you, I will try that out tomorrow.
Have a nice day!
Best regards
BlindJones
Re: Problem with image bases recording - no folder created
Posted: Wed Jun 24, 2020 6:49 pm
by BlindJones
Hi odklizec,
can you please tell me how to remove the source control from the solution?
Thank you!
Best
BlindJones
Re: Problem with image bases recording - no folder created
Posted: Thu Jun 25, 2020 6:57 am
by BlindJones
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
Re: Problem with image bases recording - no folder created
Posted: Thu Jun 25, 2020 7:02 am
by odklizec
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?
Re: Problem with image bases recording - no folder created
Posted: Thu Jun 25, 2020 7:10 am
by BlindJones
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
Re: Problem with image bases recording - no folder created
Posted: Thu Jun 25, 2020 7:13 am
by odklizec
Hi,
The best option is to contact them via support form, available here:
https://www.ranorex.com/support-query/
Re: Problem with image bases recording - no folder created
Posted: Thu Jun 25, 2020 7:56 am
by BlindJones
Okay, I will do that with a link to this forum thread.
Best
BlindJones