Lee_M
3 years agoCommunity Hero
%ErrorLevel% is returned from the script, it would be nice if TestComplete could wait for this value
I have found a way to wait until the script has finished but not return the error code
insert this code into your script (and then remove it after you get the process name)
"timeout 300"
go into the object browser and get the process name, in my case Sys.Process("cmd", 2);
I wrote this little function to pause the test until the script has finished
function test_runTestedApp (){
var pName = Sys.Process("cmd", 2);
while (pName.Exists == true) {
Log.Warning("Exists = " + pName.Exists)
}
Log.Message("process has finished :: " + pName.Exists)
}
Related Content
- 8 years ago
- 12 years ago