Page 1 of 1

Can we run Ranorex Scripts on Azure VM?

Posted: Fri Sep 09, 2016 5:49 am
by Shaifali
I'm investigating on running Ranorex Scripts on Azure VM.

The problem i'm facing right now is after i connect to azure Vm through rdp file, start the automation run and close the RDP session then when I go back to the VM the screenshots are all blank and automation failed.

Why is it happening and what is the solution as I want to build a automatic system which will install and test the build on Azure VM overnight?

Re: Can we run Ranorex Scripts on Azure VM?

Posted: Fri Sep 09, 2016 8:00 am
by odklizec
This is a problem of remote desktop connection. Active RD window cannot be closed/minimized because it automatically lock the desktop And Ranorex cannot work with locked desktop, hence the black screenshots. This is also mentioned in Ranorex user guide.

The solution of your problem is using something else than remote desktop. For example VNC, which window can be minimized and even closed and the connection remains open (I've used TightVNC in the past). Or you can use something more sophisticated, like Jenkins CI, which can be integrated with Azure VM. There seems to be an Azure Slave plugin for Jenkins, which helps with creating Azure slaves connectable to Jenkins.

While setting up a VNC connection may be relative easy, I would recommend to go the Jenkins way. It opens many new possibilities than just running tests on remote system.