Forum Discussion
I think I experience this issue also. When I use the Run Project button to set off a series of tests, it sometimes freezes and only shows the little top-right status bar, previous browser windows are closed, but a new browser window isn't spun up. If you click the Stop icon, it does nothing, so you are forced to kill TestComplete fully via the Process Manager. (Or maybe your workaround does something similar to kill the remnant Chrome Host tasks.) This started happening for me a couple of versions ago, and was hoping it was resolved in 15.82.62 but still seems to be present.
Does that sound like your issue?
Yes - sounds like my issue
I am waiting on SmartBear to still fix, BUT in the mean time I put a piece of code in my fwk
as an Event to hit on OnStartTest to cleanup the tcCrHost processes.
It just a work-around for now, but gets me by on this issue.
function GeneralEvents_OnStartTest(Sender)
{
// -----------------------------
var pName = "tcCrHost";
var p;
Log.Message(" ");
Log.Message("Checking for "+ pName + " process(es) to terminate.");
// Wait for the process (up to 5 seconds) to avoid errors if it's already gone
p = Sys.WaitProcess(pName, 5000);
// While the process exists, keep trying to terminate it
while (p.Exists)
{
Log.Message(pName + " found (PID: " + p.Id + "). Terminating...");
p.Terminate();
// Small delay to allow the OS to clean up the process
aqUtils.Delay(500);
// Re-check existence
p = Sys.WaitProcess(pName, 5000);
}
Log.Message(pName + " process has been terminated.");
Log.Message(" ");
}
- jkrolczy13 days agoSuper Contributor
How the logs look