cancel
Showing results for 
Search instead for 
Did you mean: 

Test Execute License Timeout

SOLVED
Highlighted
djt
Occasional Contributor

Test Execute License Timeout

  • I have a limited number of Test Execute licenses on my network
  • I have set up a Team City build agant that pulls code and runs TestExcute via a command line on a test I want to run at least once a day
  • It often fails to start as there aren't any available licenses

 

It seems you can't node lock a TE license so atm I have to remotely kick TE instances off my license server before the CI system runs to ensure it gets a license. Obviously this is fine while I'm developing the pipeline but no good long term.

 

Is there anyway to kill a license via a command line - that way if anyone forgets to shutdown TE (its not obvious its runnig after all - just a system tray icon thats usually hidden) at home time I could kick them off via a command from the build server or just a timer somewhere to ensure at, say midnight, there was a licesne available ?

 

I notice the license server has a timeout period but its fixed on 12 hours - if that was variable I could experiment with that

 

Please advise on any suitable approach to this problem...

 

Dave

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Test Execute License Timeout

If that's how you operate, then that's fine.... but there no automatic settings to release someone's licenses that I can find.  So, these will have to be manual controls you put in place...  powershell command to reboot those machines every night at a set time for example would work.  

Another option... rather than you're integration testers manually running TestExecute and then doing the whole "right click and run", you could set up a list of shortcuts in a folder that would be batch files executing TestExecute commandline instructions that would execute the tests and then exit using the /exit commandline switch.  This will ensure that TE is shut down automatically after each test execution.

Generally speaking.... most shops that I know of only use TestExecute for automated execution, not for having other testers run the tests.  Seems.... counter intuitive to create an automated test scenario that a user then needs to manually kick off...


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
4 REPLIES 4
Community Hero

Re: Test Execute License Timeout

Well, for one thing...  don't let other users run TestExecute manually... there really should be no reason to do so.  if they are developing tests, then their executions should be in TestComplete, not TestExecute.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
djt
Occasional Contributor

Re: Test Execute License Timeout

Not sure why you would say that I shouldn't let 'other' users run TestExecute ??

 

My colleague and I develop the tests using TestComplete and the test team run them using TestExecute during their weekly release integration testing.  

 

How else does it work !

Community Hero

Re: Test Execute License Timeout

If that's how you operate, then that's fine.... but there no automatic settings to release someone's licenses that I can find.  So, these will have to be manual controls you put in place...  powershell command to reboot those machines every night at a set time for example would work.  

Another option... rather than you're integration testers manually running TestExecute and then doing the whole "right click and run", you could set up a list of shortcuts in a folder that would be batch files executing TestExecute commandline instructions that would execute the tests and then exit using the /exit commandline switch.  This will ensure that TE is shut down automatically after each test execution.

Generally speaking.... most shops that I know of only use TestExecute for automated execution, not for having other testers run the tests.  Seems.... counter intuitive to create an automated test scenario that a user then needs to manually kick off...


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
djt
Occasional Contributor

Re: Test Execute License Timeout

Ah, get what you mean now

 

To be honest we have always run the tests manaully with TE - its how they worked when I got involved and I'd not had expososure to the command line approach until staring with the build pipeline so didn't know any better.

 

However, I like your idea of the testers running things with batch files - as it frees the license up on exit it makes good sense.

 

Tks

 

Dave

 

 

New Here?
Join us and watch the welcome video: