Forum Discussion

simon_glet's avatar
simon_glet
Regular Contributor
13 years ago

License check before launching TestComplete or TestExecute

Greetings,



We are looking into having all our tests queued and run automatically when floating licenses become available.

Currently when TestComplete is started with no licenses available a dialogue is shown for as long as the user hasn't selected an option. For unatended tests execution it is not very practical...



How can a Powershell, C# solution check if there are licences available before starting a test ? Is there a documented API for the Sentinel HASP solution. Every SmartBear installed Test solution has a Sentinel HASP Licence Manager running localy so there might be a way to connect with COM ;-)



Thanks

Simon Glet





3 Replies

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 1 rankChampion Level 1
    Hi Simon,


     


    In addition to Tanya's answer: considering that you can get license information through the web browser, I think that it should be possible to capture the relevant http requests sent by the browser and emulate them from within your custom application that will wait for the free license on the monitored license servers.


    (But some hints from Support would definitely help :) )


  • simon_glet's avatar
    simon_glet
    Regular Contributor
    Thanks Guys !



    Currently, if TC or TE is starter through COM with no available licences, a dialog is show and the Powershell Get-Object never returns.

    Could you add to your request list a non-blocking COM initialization ?



    As for Sentinel, I thought about parsing the License Manager web site pages but I was more hoping for information about how TC checks the licence availability:

    - Which dll is used

    - a code sample



    Thanks !

    Simon Glet