Best practices, code snippets for common functionality, examples, and guidelines.
Posts: 1
Joined: Fri Jun 07, 2019 12:49 am


Post by Fuentes » Fri Jul 26, 2019 2:36 am

Hi Team, I'm breaking my head thinking for a solution that allows me to execute my Ranorex scripts using TeamCity nightly builds on an AWS Virtual Machine. If I'm on an RDP works pretty well. But we all know that if I logged off the scripts fails because the windows session closes. So I discovered this link: ... g-and-faq/

And works for me pretty well but the resolution is super tiny. Somebody knows how to increase the size of the resolution using the same batch file instructions.

What I'm looking for is be able to execute my scripts at night using TeamCity without log on to the Virtual Machine, is that possible?

What I got so far.
TeamCity building steps configured and working well if I'm login.
TeamCity agent not started as a windows server.
Ranorex version 8.3

Thanks in advance.

User avatar
Posts: 135
Joined: Mon Jul 11, 2016 4:01 pm

Re: KeepSessionOpen.bat

Post by N612 » Fri Jul 26, 2019 9:14 pm

The resolution when disconnected from the machine is the machines default resolution. If you are not able to change the default resolution through the normal Windows settings, you can try QRes or another third-party tool. If using QRes, simply add the command at the end of the KeepSessionOpen batch file.