Page 1 of 1

FEATURE REQUEST: WaitForValidLicense extension

Posted: Fri Aug 16, 2013 3:32 pm
by odklizec
Hi,

Would it be possible to extend the WaitForValidLicense method with a parameter, which would make the Ranorex to wait/ignore a specific license or licenses (e.g. limit the license use just to Runtime and Professional and ignore Premium)?

Use case:
Currently, we are using one floating Runtime and one floating Premium. Our test scripts use WaitForValidLicense to wait for an available license. If both Runtime and Premium is in use, test runner waits for first available license to start the scheduled/queued test. Now let's say I close the Ranorex Studio, test runner takes just released Premium license and use it for running test, which actually locks me from using Studio, until the test is finished. Therefore, it would be useful to be able to limit the license use from the test code.

In a near future, we are most probably going to buy some more Runtime and also Pro/Premium licenses. But I would still like to prevent the test runner to use the Premium licenses and allow to use just Runtime and Pro for running the tests.

Thanks for the consideration!

Re: FEATURE REQUEST: WaitForValidLicense extension

Posted: Fri Aug 16, 2013 3:48 pm
by krstcs
+1

This is an excellent point.

Re: FEATURE REQUEST: WaitForValidLicense extension

Posted: Sat Aug 17, 2013 10:40 pm
by Support Team
This feature already kind of exists, even if not from code:
Just change the floating license type configured on the runtime machine to "Runtime" (instead of "Auto") using the Ranorex Licensing Tool (see this section in the user guide). Then only Runtime licenses will be acquired.

Regards,
Alex
Ranorex Team

Re: FEATURE REQUEST: WaitForValidLicense extension

Posted: Mon Aug 19, 2013 7:45 am
by odklizec
Thanks for the tip Alex! It could be a perfect solution of my problem ;) I will keep you informed.

Re: FEATURE REQUEST: WaitForValidLicense extension

Posted: Tue Aug 20, 2013 1:50 pm
by krstcs
Ahh!! Learn something new every day...

Thanks Alex!