Skip Navigation LinksHome Page > Forums > Rapise Forums > Rapise Issues & Questions > Can Rapise execute a test...
I want to schedule my regression test sets from SpiraTest to run them on a Virtual Machine nightly. Right now they don't run unless I log in to the machine and have the screen open.
Can I schedule some tests to run by itself nightly without a user logging in?
If not, what are my options? It doesn't make sense to me to develop automation tests but then have to manually execute them.
Please take a look at this KB article: https://www.inflectra.com/Support/KnowledgeBase/KB325.aspx
It explains how to more easily keep the VM logged with a specific user.
It needs to be logged so that it can actually perform UI actions against the UI being tested, that is the reason.
It is impossible to do UI testing of applications without a Windows desktop running unfortunately.
Hi Jim, thank you. I'll take a look at the KB and give it a try.
I setup the bat script and use it to disconnect my remote desktop session, and the tests run fine but only if I just disconnect it, or maybe about 15 minutes. If I disconnect it for about 2 hours or more, the tests fail. One day I left work at 4pm and scheduled the tests to run at 6pm, they failed. The tests that I schedule to run on a weekend also failed because the idle time of course longer than 2 hours.
Do you have any idea how to get around this?
It appears that you need to tweak MaxDisconnectionTime setting for the VM.
Here is the solution from there:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
If this doesn't work and your server is in a domain, have the IT people check in your OU the setting of "Terminate disconnected session".
FYI. This solution didn't work for me either.