Hello Allen,
Thanks for the tip. But it didn't work.
If TestComplete can't find myprocess it give me a error in my Log.
function CloseProcess()
{
var Client = Sys["Process"]("WorkRecordingClient") - This line gives error in Log if process not exists.
var p = Sys["WaitProcess"]( Client, 1000, 1 );
while (p["Exists"])
{
p["Close"]();
p = Sys["WaitProcess"]( Client, 1000, 1 );
}
}
I made this function and called it from my run_application function.
Is there any way to do my scenario? Can i catch the Error "Process not found"?
It workes perfectly when the process is started. But if not i get the error.