Forum Discussion

Haiyangwhu's avatar
Haiyangwhu
Contributor
12 years ago

Get license status from command or script

Hi,



Currently we're running test cases by using TestExecute. When there is no more license available for new VM instance, test running pauses on waiting to get a license. Since we build test VM dynamically, it's wasting time and Mem/Cpu resources when VM is up but not running tests.



We would like to build VM and run tests only when a license is available. Is there a way to check whether a TestExecute license is available from command or script? 



Thanks in adance.



-Ocean

3 Replies


  • Hi Ocean,


     


    Here are several approaches that you may give a try:


    1. Analyze the Log on the Sentinel Admin Control Center: http://localhost:1947/_int_/log.html.


    2. Along with the License Manager utility, you have the HaspLogAnalyzer tool that allows you to get a lot of information about the current license state. The tool is located in the folder where the License Manager is installed. Note that the tool can collect information only on the computer where the license is activated.


     

  • Thanks Alexei for your reply.



    In the support article, it first run the tests, then get result whether can run or not. It's different to what i want: 

    I need to know whether can run at first, then create VM and run tests.



    Since our jobs are triggered to run coinstantaneous, apprearently not a good idea to test whether can run or not by running testcomplete/testexecute. One instance is launched, the other will failed as 1000.



    Is there a good solution to handle my case? I didn't get one so far.



    Thanks,

    Ocean