【发布时间】:2014-06-05 07:39:04
【问题描述】:
我正在开发此功能以等待 WPF 应用程序完成。
while (stillRunning)
{
if (timeOut > maxTime)
{
Log["Error"]("The App failed to shutdown correctly.");
break;
}
else
{
if (Aliases[process]["Exists"])
{
timeOut+=1000;
if ((timeOut % 1000) == 0)
{
Log["Message"]("The Application process is still running. " + (timeOut / 1000) + " seconds and waiting");
}
}
else
{
stillRunning = false;
}
}
}
Log["Message"]("The Application process has been shutdown correctly.");
}
现在,TestComplete 9 无法识别应用程序何时关闭。我的意思是...我可以清楚地看到任务管理器中不再存在该进程,而 TC 一直计数直到达到限制时间(在这种情况下已经足够了)。
有什么线索吗?
【问题讨论】:
标签: process automated-tests terminate testcomplete