Ranorex Test Unable to Run on Gitlab CI Environment

Ranorex Studio, Spy, Recorder, and Driver.
lackmoo3
Posts: 1
Joined: Thu Sep 17, 2020 4:33 am

Ranorex Test Unable to Run on Gitlab CI Environment

Post by lackmoo3 » Fri Sep 18, 2020 6:04 am

Hi all,

I am currently using the trial access account of Ranorex Studio, and would like to integrate my Ranorex Tests into the Gitlab CI/CD environment as this is used by my team in our developmental work. I am using Gitlab Runner to run my tests on a remote machine that is hosting the Ranorex Studio license. When I use Remote Desktop Connection to connect to my remote machine, I am able to run the Ranorex tests on the through the command line and execute a simple test of opening an application. However, when I integrate my Ranorex test into the Gitlab CI/CD environment and command the Gitlab Runner Agent to execute the test on my remote machine, I faced the error as specified in the screenshot below.

I suspect that this error could have occurred due to the evaluation dialog that is prompted right before the execution of a Ranorex test while I am on trial license. Is this the case, and what should I do in order to rectify this error? Thank you!

Operating system (+service packs): Windows 10
Ranorex version (determine the Ranorex version by clicking on the Ranorex logo in the Ranorex Spy): v9.3.2
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Ranorex Test Unable to Run on Gitlab CI Environment

Post by Support Team » Fri Sep 25, 2020 7:28 pm

Hi!

Please contact us via the links below and we will be more than happy to further assist you with this! Kind Regards,
Ranorex Team

jyotidgs
Posts: 2
Joined: Wed Sep 29, 2021 8:04 pm

Re: Ranorex Test Unable to Run on Gitlab CI Environment

Post by jyotidgs » Wed Sep 29, 2021 8:27 pm

Hello lackmoo3,

I am also using trail version and trying to run test on VM through gitlab runner. I have installed Ranorex agent on VM. I have also configured "copy runtime to output" and it is committed in Master branch. However, when i run CI pipeline, the Ranorex settings fetch from gitlab runner is showing false for "copy runtime to output". So i don't get runtime libraries and executable to execute my test.

If you are able to do it please let me know about the missing steps.

Thanks

MichielV
Posts: 17
Joined: Fri Sep 07, 2018 8:12 am

Re: Ranorex Test Unable to Run on Gitlab CI Environment

Post by MichielV » Tue Nov 09, 2021 11:01 am

Ranorex needs a desktop environment to be able to run, and cannot be started from a GitLab/Jenkins slave running as a service on the target machine. For Jenkins, we fixed this by launching the Jenkins slave in the desktop session through JNLP, a batch file, and a windows scheduled task to run this batch file on login. I don't know if a similar option is available for GitLab.

batch file example for Jenkins:

@echo off
java -Dfile.encoding=UTF8 -jar slave.jar -jnlpUrl http://[YourJenkisServerURL]:8080/computer/[YourSlaveIP]/slave-agent.jnlp -secret [YourJenkinsSecret] -workDir "C:\[YourJenkinsWorkdir]"

markos
Posts: 17
Joined: Tue Mar 28, 2023 12:20 am
Contact:

Re: Ranorex Test Unable to Run on Gitlab CI Environment

Post by markos » Wed Sep 06, 2023 1:26 am

Some time has passed since the original post. Is GitLab integration possible? I just arrived at a company with GitLab doing builds, but Ranorex tests not being triggered by GitLab.