Forum Discussion
A work around for now
In Task Manager, I have been killing the 'TestComplete_Chrome_Host_32_bit'
that are not cleaning up during automation testing.
This has been hanging up my automation testing.
As I wait for the next TC\TC version release, I was planning to add the below before each script executes just to cleat out the tcCrHost process.
---------------------------
function KillChromeHost()
{
Indicator.Show();
var pName = "tcCrHost";
var p;
// 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.");
}
I installed ProcessExplorer to watch the processes get terminated and checked Task Manager as well for my testing phase.
https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer