Automate tests on virtual machine without graphical session Automate tests on virtual machine without graphical session jenkins jenkins

Automate tests on virtual machine without graphical session


Had to go through this many times and you can find a lot of resources related to your issue in the Ranorex Forum. (My username there is Martin for reference).

But to go through the points you need to do quickly:1) Have an RDP machine to connect to that is used to run your tests2) You need to disable screen saver for that machine (I had to do it from registry)3) Then disable the "On Resume, display logon screen" option under Personalize settings for the screen saver4) And finally create a .bat script with the following content "%windir%\System32\tscon.exe RDP-Tcp#0 /dest:console"

So basically when you have everything set up (required only once) you will run the .bat script. This will close the RDP window BUT the session will be left open with the screen enabled.

Just connect the RDP with Jenkins and you have full functionality that you need to run your tests.

RegardsMartin


In the Tools ⇨ Options menu, select General ⇨ Run Sessions there you will find an option to Enable continued testing on locked/disconnected remote computers.

screenshot

If this fails, see my other answer.


I had the same problem when I try to run an automate tests on virtual machine and I find this solution to generated a graphical session although you are not connected to the virtual machine. You need to created a task to opend a session on the virtual machine when you disconected or terminated the session , this created a graphical session but will not function when you are connected and you have the screen minimize. Here is the link for the solution and the explanation

http://blogs.microsoft.co.il/arnona/2016/01/03/keeping-an-active-desktop-session/