Forum Discussion
itvrdeich
13 years agoContributor
function WaitThenKillClient()
{
var secondsToWait = 0;
var process = "wsClient";
var p = Sys["WaitProcess"](process, 1000, 1);
while(p["Exists"])
{
if (secondsToWait >= 20000)
{
Log["Warning"]("She is ugly. Kill Her.");
p["Terminate"]();
Log["Warning"]("TestComplete was forced to end the wsClient process.");
} else {
Log["Message"]("Running.");
Delay(500);
secondsToWait+=1000;
}
}
}
Thats what i do.
{
var secondsToWait = 0;
var process = "wsClient";
var p = Sys["WaitProcess"](process, 1000, 1);
while(p["Exists"])
{
if (secondsToWait >= 20000)
{
Log["Warning"]("She is ugly. Kill Her.");
p["Terminate"]();
Log["Warning"]("TestComplete was forced to end the wsClient process.");
} else {
Log["Message"]("Running.");
Delay(500);
secondsToWait+=1000;
}
}
}
Thats what i do.
Related Content
- 3 years agoasikrahila0786
- 2 years agosanket2799
Recent Discussions
- 3 days agoMW_Didata