Page 1 of 1

Runner is terminated when floating license is unavailable

Posted: Tue Nov 27, 2018 5:20 pm
by mikieh1
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

Re: Runner is terminated when floating license is unavailable

Posted: Wed Nov 28, 2018 8:22 am
by odklizec
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

Re: Runner is terminated when floating license is unavailable

Posted: Mon Dec 03, 2018 1:38 pm
by mikieh1
Thank you Pavel,
I've used your solution.