Ranorex freezes on VM

Ask general questions here.
acost
Posts: 11
Joined: Thu Nov 10, 2011 3:47 pm

Ranorex freezes on VM

Post by acost » Tue Nov 29, 2011 11:35 am

Using VirtualBox with Windows XP SP3 and Ranorex 3.1.1

I created a test suite that works fine on a standard install of XP but as soon as I move it to a VM it develops a problem.

It runs fine sometimes, other times the test runner randomly freezes and doesn't give me an error report or log. To stop the test runner I have to then go into Ranorex Studio and manually terminate the test - i'm sure I don't have to tell you how annoying this is.

Are there any problems currently with Ranorex and virtual machines? Or anything that might cause the test runner to freeze?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Ranorex freezes on VM

Post by Support Team » Tue Nov 29, 2011 11:37 am

Hi,

please have a look at following chapter of our user guide:
http://www.ranorex.com/support/user-gui ... norex.html

Regards,
Tobias
Ranorex Support Team
.
Image

acost
Posts: 11
Joined: Thu Nov 10, 2011 3:47 pm

Re: Ranorex freezes on VM

Post by acost » Tue Nov 29, 2011 12:06 pm

I'm not really sure how anything on that page will help me. Ranorex test runner is not timing out; it's actually freezing completely.

I did a re-run with a much higher timout and it froze again while looking for an on-screen object (the object was visible).

Doesn't make any sense...

Edit: Installing Windows updates on my VM to see if that will help - might take a while on my connection :roll:

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Ranorex freezes on VM

Post by Support Team » Tue Nov 29, 2011 1:21 pm

Hi,

install the windows update and inform us about your success.
Also install the VMWare tool if you haven't done already.

Regards
Tobias
Ranorex Support Team
.
Image

acost
Posts: 11
Joined: Thu Nov 10, 2011 3:47 pm

Re: Ranorex freezes on VM

Post by acost » Tue Nov 29, 2011 2:48 pm

Well, I installed the updates but the problem still persists.

I ran the test suite again and when it froze, I broke the debugging in Ranorex Studio and stepped into the next part of the test. It continued for a little while on auto-pilot afterwards before I had to repeat the process.

The interesting thing is, when I broke the debugging, it had stopped inside one of my unexpected dialog watcher threads...

All this code and these tests ran PERFECTLY on my host machine before i ported it to the VM.

acost
Posts: 11
Joined: Thu Nov 10, 2011 3:47 pm

Re: Ranorex freezes on VM

Post by acost » Tue Nov 29, 2011 6:19 pm

I moved to VMware Workstation from VirtualBox and noticed a huge improvement.

I will be running a very long test tonight to see if I've managed to stamp out the bug and will get back to you tomorrow with the test results.

acost
Posts: 11
Joined: Thu Nov 10, 2011 3:47 pm

Re: Ranorex freezes on VM

Post by acost » Wed Nov 30, 2011 10:53 am

Okay, besides my poor exception handling, the test ran without a hitch as far as I know.

It seems moving to VMware solved the issue..