Support Team wrote:Hi,
hschmitt wrote:Is there a way to wait (C# or within NAnt) for our test execution until a license becomes available?
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.
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
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.
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;
}
Which operation would you suggest? It should be one, that never fails when a valid license is available.