Page 1 of 1

BUG: Ranorex not saving, deleting repo items.

Posted: Mon Oct 07, 2013 9:21 pm
by kmck
I have noticed after installing the updated version of Ranorex (4.1.1) that saving does not always save my test suite in its current state. I will press save, perform some actions, and when I come back to a test suite, my repository items are missing, yet my actions are still present with "(Item not found)" listed next to the item.

There are also issues where if I manually create or edit repository items, the items will not save. For instance, if I change the path from @index=1 to @index=2 and hit save, it will show @index=2 as the saved path, but it will revert back to @index=1 if I play back my tests, or switch to another module.

This seems to also be attached to an issue with Ranorex not being able to close out using File > Exit or the X button in the titlebar. I generally have to kill the process, and once I boot Ranorex back up, it works and saves fine for a couple of hours before doing it again.

I have uninstalled and reinstalled Ranorex with no resolution, and this has occurred over multiple test suites.

Re: BUG: Ranorex not saving, deleting repo items.

Posted: Wed Oct 09, 2013 2:40 pm
by Support Team
Hello,

Do you start Ranorex Studio as Administrator?
Have you installed Ranorex with all prerequisites?
Which Windows version do you use?
Do you experience memory related issues on your system?
What would happen if you create a new solution with new repo items?

Regards,
Markus (T)

Re: BUG: Ranorex not saving, deleting repo items.

Posted: Wed Oct 09, 2013 3:04 pm
by kmck
Hello Markus,

Thank you for your response.

Do you start Ranorex Studio as Administrator? Yes, it is run as administrator.
Have you installed Ranorex with all prerequisites? All prerequisites have been met.
Which Windows version do you use? Windows 2008 R2
Do you experience memory related issues on your system? No memory related issues outside of Ranorex.
What would happen if you create a new solution with new repo items? The issue has come up within two different solutions, but no others as of yet. It has been difficult to track exactly when the issue arises, but it seems to show up after extended use of Ranorex (a couple of hours+), and while adding items to a module, saving, and then switching back to the test suite overview to save.

*EDIT*
One action that seems to cause the loss of information is copying items from one recording and pasting into a new recording. Those items will copy and paste, but once the solution is saved from the test suite view (after the individual recording has been saved), the items will disappear from the second recording.

Re: BUG: Ranorex not saving, deleting repo items.

Posted: Wed Oct 09, 2013 5:29 pm
by krstcs
You cannot copy and paste many of the items in Ranorex due to the use of GUIDs for identification.

So, let's say you have a module variable called "MyVar".

Ranorex identifies it, not by the name "MyVar", but by a GUID like '[TestVariable("ac75c438-edc6-4f98-b893-4a337ba41a99")]' in the back-end.

If you copy the variable, it just copies a shallow version of it, it doesn't make a new GUID, so all the changes will be lost or cause other undesirable changes to your tests.

You should create new versions of variables, test cases, test suites, projects, etc., instead of copy/paste.

Re: BUG: Ranorex not saving, deleting repo items.

Posted: Wed Oct 09, 2013 8:27 pm
by kmck
This is an issue with copying regular items not bound to variables, however. Simple clicks, set values, mouse move actions, etc.

Re: BUG: Ranorex not saving, deleting repo items.

Posted: Thu Oct 10, 2013 2:35 pm
by Support Team
Hello kmck,

Is your project stored on a network location or specific local location?
Do you use a source/version control tool?
Do you experience this behavior also in small projects?
Do you use more than one repository?

Regards,
Markus (T)

Re: BUG: Ranorex not saving, deleting repo items.

Posted: Fri Oct 11, 2013 2:10 pm
by kmck
Hello Markus,

The project is stored on a specific local location (Desktop).
We do not use a version control tool at this time.
So far this issue has happened with two projects, one relatively large, and the other moderately-sized project. I have not noticed this to happen on a small project yet.
I am using only one repository for this project.

Re: BUG: Ranorex not saving, deleting repo items.

Posted: Tue Oct 15, 2013 4:59 pm
by Support Team
Hello,

Could you please describe detailed steps how you copied actions?
This would help us in analyzing your issue.

Thank you in advance.

Regards,
Markus (T)

Re: BUG: Ranorex not saving, deleting repo items.

Posted: Wed Oct 16, 2013 3:14 pm
by kmck
Hello Markus,

To copy the items, I open up a recording file, copy a few basic actions (click on a button, for example), and then paste the items into a new recording. I will continue to build upon that recording, and then every so often (at least a few times per day) additional actions I add will not save for whatever reason. It seems fairly random and does not occur after a specific set of steps.

This issue persists beyond just copying and pasting items as well. Sometimes when I add a variable through the Ranorex interface, then develop a usercode module and try to use that variable within the recording, auto-complete will not recognize the variable when I type it in. Even if I type it in manually the test suite will not build and tells me that variable does not exist. If I go back and view the recording's variables, it will indeed show it as an unused variable.

If I click out of the recording, then click back in, the variable I added will no longer appear under the listed variables. If I shut down Ranorex, then reopen and try to add the variable again it will work fine.

Just recently I was adding items to a recording module, saved, shut down, and when I opened it back up all the actions were missing from the recording and all the repository items I created were gone from the repository.

After a check, I do not appear to have any memory issues on my system, and so far this has only been an issue with 4.1.1.

Re: BUG: Ranorex not saving, deleting repo items.

Posted: Thu Oct 17, 2013 2:11 pm
by Support Team
Hello,

We could reproduce your issue with the incorrect state of repository and recording.
Unfortunately, this is a known issue in our current version that we will fix in our next service release.
Ranorex 4.1.2 including this fix will be released within the next two weeks.

Thank you for your patience and understanding.

Regards,
Markus (T)