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
Ranorex Test Unable to Run on Gitlab CI Environment
Ranorex Test Unable to Run on Gitlab CI Environment
You do not have the required permissions to view the files attached to this post.
- Support Team
- 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
Hi!
Please contact us via the links below and we will be more than happy to further assist you with this!
Ranorex Team
Please contact us via the links below and we will be more than happy to further assist you with this!
- Existing Customer: https://www.ranorex.com/support-query
- Evaluation Customer: https://www.ranorex.com/prices/contact/
Ranorex Team
Re: Ranorex Test Unable to Run on Gitlab CI Environment
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
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
Re: Ranorex Test Unable to Run on Gitlab CI Environment
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]"
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]"
Re: Ranorex Test Unable to Run on Gitlab CI Environment
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.