Hi,
we are using Ronarex with floating license model.
Hudson as CI Server executes our Ranorex NUnit tests on several machine configurations.
If there is no license available the test fails and the build is marked as "failed".
Is there a way to wait (C# or within NAnt) for our test execution until a license becomes available?
Floating License: Wait for license
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Floating License: Wait for license
Hi,
But is it not possible in Hudson to start the executable on a specific time?
Then i would use this property to start your executable successive.
Regards,
Peter
Ranorex Team
Sorry but this is not possible at the moment. The only public property for the License is the Ranorex.Core.ElementEngine.IsLicnesed, but i think this won't help you out.hschmitt wrote:Is there a way to wait (C# or within NAnt) for our test execution until a license becomes available?
But is it not possible in Hudson to start the executable on a specific time?
Then i would use this property to start your executable successive.
Regards,
Peter
Ranorex Team
Re: Floating License: Wait for license
Sure it is possible to start each OS we want to test at a specific time, but if there is no license left, the build fails. And we have to start it again manually.Support Team wrote:Hi,
Sorry but this is not possible at the moment. The only public property for the License is the Ranorex.Core.ElementEngine.IsLicnesed, but i think this won't help you out.hschmitt wrote:Is there a way to wait (C# or within NAnt) for our test execution until a license becomes available?
But is it not possible in Hudson to start the executable on a specific time?
Then i would use this property to start your executable successive.
Regards,
Peter
Ranorex Team
But could a seperate executable an option with code like this
Code: Select all
while(!Ranorex.Core.ElementEngine.IsLicensed && timeoutNotReached) {
try {
//Ranorex Operation that triggers license check
} catch(Exception e) {
//Wait a bit
continue;
}
break;
}
- artur_gadomski
- Posts: 207
- Joined: Mon Jul 19, 2010 6:55 am
- Location: Copenhagen, Denmark
- Contact:
Re: Floating License: Wait for license
It would be nice feature if Ranorex could hold and wait for floating licence to become available.
We could specify a timeout and frequency of checks.
We could specify a timeout and frequency of checks.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Floating License: Wait for license
Hi,
I talked to our lead developer for licensing and he told me, this is only working with node locked licenses. So your code above won't work. But I will add a feature request to our internal bug tracking system and in a future release of Ranorex there will be a method or a option in our UI to set this flag.
Regards,
Peter
Ranorex Team
I talked to our lead developer for licensing and he told me, this is only working with node locked licenses. So your code above won't work. But I will add a feature request to our internal bug tracking system and in a future release of Ranorex there will be a method or a option in our UI to set this flag.
Regards,
Peter
Ranorex Team
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Floating License: Wait for license
We will add the feature to wait for a valid license to become available with Ranorex V3.0.2 in terms of the ElementEngine.WaitForValidLicense method.
Regards,
Alex
Ranorex Team
Regards,
Alex
Ranorex Team