Currently, I have a remote desktop with Ranorex version 8.2 installed that I would like to use to run the tests nightly. I have the Jenkins slave installed on the remote desktop, and have it set to trigger the test nightly, mainly using the following guide: https://www.ranorex.com/help/latest/int ... roduction/
However, when the tests are run I see a black screenshot for where the tests usually take a screenshot. I saw this forum post, https://www.ranorex.info/viewtopic.php? ... top#p66557, and ensured that Jenkins is not running as a service. But still no luck. Does anyone know how to solve this issue?
Using Jenkins to run Ranorex Nightly
Re: Using Jenkins to run Ranorex Nightly
Hi,
At first, the Ranorex 8.2 is way too old and no longer supported. You will have to update it with something more recent, like 9.5.3
At next, the black screens in report means that the remote desktop was most probably locked. You must ensure that the remote desktop has logged-in user and that the desktop is not locked. I'm using LogonExpert app for this, which keeps the desktop logged and unlocked.
At first, the Ranorex 8.2 is way too old and no longer supported. You will have to update it with something more recent, like 9.5.3
At next, the black screens in report means that the remote desktop was most probably locked. You must ensure that the remote desktop has logged-in user and that the desktop is not locked. I'm using LogonExpert app for this, which keeps the desktop logged and unlocked.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Using Jenkins to run Ranorex Nightly
Hello, thank you for the speedy reply! Thus far, to run the tests I have been manually logging into the remote desktops, then allowing jenkins to trigger the tests, and run a .bat script that safely logs the user off while allowing the test to run. I have pasted this .bat script at the end of this message. My question is, is there any way to automate the logging in procedure to the remote desktop (either via jenkins or some other means)? I had a look at the LogonExpert app you mentioned. Is there a free alternative?
.bat script:
for /f "skip=1 tokens=3 usebackq" %%s in (
`query user %username%`
) do (
%windir%\\\\System32\\\\tscon.exe %%s /dest:console
)
.bat script:
for /f "skip=1 tokens=3 usebackq" %%s in (
`query user %username%`
) do (
%windir%\\\\System32\\\\tscon.exe %%s /dest:console
)
Re: Using Jenkins to run Ranorex Nightly
Hi,
I'm afraid, I'm not aware of any free alternative to LogonExpert. Honestly, LogonExpert is quite cheap and does exactly what it promises. Exposing username/password (even for service account) in command line, is definitely not a very good idea
I'm afraid, I'm not aware of any free alternative to LogonExpert. Honestly, LogonExpert is quite cheap and does exactly what it promises. Exposing username/password (even for service account) in command line, is definitely not a very good idea
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Using Jenkins to run Ranorex Nightly
Thank you for the reply. Just out of curiosity, is there a way to login to the remote desktop via the command line? What should be executed within the Jenkins job?
Re: Using Jenkins to run Ranorex Nightly
You can view the MSTSC arguments at the following website, https://www.parallels.com/blogs/ras/mst ... ernatives/ to launch an RDP session from the command line.
Sales Engineer @ Ranorex
Re: Using Jenkins to run Ranorex Nightly
Microsoft's Autologon is a free alternative to get the screen unlocked after a reboot.