How to distibute licenses.

Ranorex Spy, Recorder, and Studio.
User avatar
WilcoRakhorst
Posts: 6
Joined: Tue Nov 04, 2014 2:20 pm

How to distibute licenses.

Post by WilcoRakhorst » Tue Jan 15, 2019 10:17 am

I would like to be able to assign a specific number of licenses to two Jenkins installations.
For example:
* Jenkins server 1 (Final software tests) gets 10 licences to run at night
* Jenkins server 2 (Beta software tests) gets 8 licences to run at night

We use a floating licensing configuration. Can this be done?
A test employee does not break it. He only proves it was already broken.

qwertzu
Posts: 215
Joined: Wed Jan 25, 2017 11:08 am

Re: How to distibute licenses.

Post by qwertzu » Tue Jan 15, 2019 10:44 am

Hi,

Generally, the machines on which the tests get executed, need access to your license server where the floating licenses are installed.
If you run one test after the other, you will only need one floating runtime license. If you want to execute multiple tests at the same time, each test needs its own floating runtime license.

You can simply download the license manager on one of your machines in your network and install all your floating licenses on this machine.
All machines in the same network will be able to lease licenses for running tests. As soon as a test ends, the license will be released.

regards, qwertzu

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4421
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to distibute licenses.

Post by odklizec » Tue Jan 15, 2019 10:53 am

Hi,

Additionally, to what qwertzu suggested, I would suggest to implement WaitForValidLicense to all your projects. See this post:
web-license-manager-t10286.html#p41281
This will assure that the test will not fail (immediately) if there is currently no license available ;)
Pavel Kudrys
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

User avatar
WilcoRakhorst
Posts: 6
Joined: Tue Nov 04, 2014 2:20 pm

Re: How to distibute licenses.

Post by WilcoRakhorst » Tue Jan 15, 2019 11:06 am

Thank you both for replying.
We have 1 licensing server available. On this machine are all our licenses (RT + premium) installed. Our Jenkins configuration is running multiple scripts simultaneously. So when a script is executed it will wait if a license is available. And yes Odklizec, we have the WaitForValidLicense implemented, which is very useful!
What I would like to achieve is that each Jenkins configuration can only use 50% of the licences. I don't want a Jenkins configuration to use all the licenses during the night. If it does, I don't know my test results for the other Jenkins configuration in the morning.
We run our tests nightly on Final and Beta software. In the morning the test results are reviewed. And this is why I don't want a Jenkins configuration to take up all of the licenses. Because when it does, the other Jenkins configuration will not be ready in the morning.
For your information, each Jenkins configuration runs around 200 test scripts. We have this configured so it runs a lot of tests simultaneously, because we have multiple licenses for this.
I hope I made my case clear (enough).
A test employee does not break it. He only proves it was already broken.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4421
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to distibute licenses.

Post by odklizec » Tue Jan 15, 2019 11:18 am

Hi,

In my opinion, you will have to use two license servers and instruct each Jenkins machine to use one of them? I don't think there is a way to achieve what you want, with single license server.
Pavel Kudrys
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

User avatar
WilcoRakhorst
Posts: 6
Joined: Tue Nov 04, 2014 2:20 pm

Re: How to distibute licenses.

Post by WilcoRakhorst » Tue Jan 15, 2019 1:31 pm

odklizec wrote:
Tue Jan 15, 2019 11:18 am
Hi,

In my opinion, you will have to use two license servers and instruct each Jenkins machine to use one of them? I don't think there is a way to achieve what you want, with single license server.
I already thought it would come to that. Thanks for your advice!
A test employee does not break it. He only proves it was already broken.