Runner is terminated when floating license is unavailable

Class library usage, coding and language questions.
mikieh1
Posts: 2
Joined: Tue Nov 27, 2018 5:06 pm

Runner is terminated when floating license is unavailable

Post by mikieh1 » Tue Nov 27, 2018 5:20 pm

Hi,

We are using Ranorex libraries in our proprietary testing tool for various automated tests.
We have a license server with floating licenses.
The issue occurs when our tool tries to activate some code which uses Ranorex but there isn't an available license.
We expected that this will throw some kind of an exception that we'll be able to catch and continue with the test flow.
However it seems that Ranorex somehow causes to our testing to to terminate.
Are you familiar with this behavior?
Is it customizable?

Thanks,
Miki

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

Re: Runner is terminated when floating license is unavailable

Post by odklizec » Wed Nov 28, 2018 8:22 am

Hi,

The best you can do, to overcome this problem, is to implement WaitForAvailableLicense in program.cs. Check for example this post...
running-tests-on-numerous-machines-t8803.html#p35582
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

mikieh1
Posts: 2
Joined: Tue Nov 27, 2018 5:06 pm

Re: Runner is terminated when floating license is unavailable

Post by mikieh1 » Mon Dec 03, 2018 1:38 pm

Thank you Pavel,
I've used your solution.