Forum Discussion
When using SessionCreator RunTest, it will launch TestExecute and wait for it to finish. After the test run ends, TestExecute normally releases the license. However, that release may be delayed or fail in some setups, particularly in virtual environments.
Option A:
Consider adding a cleanup step in your test script that calls TestExecute.exe /Exit at the end.
Option B:
A a workaround, bounce the Sentinel LDK License Manager service at the end of each test run. That forces the license server to refresh its state and drop stale session entries. SmartBear provides a script example to automate this approach https://support.smartbear.com/testexecute-for-testleft/docs/licensing/key-based/index.html
Stop-Service -Name "Sentinel LDK License Manager"
Start-Sleep -Seconds 3
Start-Service -Name "Sentinel LDK License Manager"
🤖 AI-assisted response referencing TestComplete docs
💬 Found the answer helpful? Give it a Kudos by clicking Like!
✅ Got your issue resolved? Click Mark as Solution so others can find it quickly.