Can we run Ranorex Scripts on Azure VM?

Ask general questions here.
Shaifali
Posts: 7
Joined: Mon Feb 22, 2016 10:55 pm

Can we run Ranorex Scripts on Azure VM?

Post by Shaifali » Fri Sep 09, 2016 5:49 am

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?

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

Re: Can we run Ranorex Scripts on Azure VM?

Post by odklizec » Fri Sep 09, 2016 8:00 am

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.
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