tfield
14 years agoNew Contributor
Use Jscript's setTimout funciton? Or another way to not wait for a method.
Hey all,
Is there a way to use JScript's setTimeout funciton in TestComplete scripts? I am calling a method directly from TestComplete, but i do not want to wait for the return value of the method. Is there any way to do this in TestComplete? I was thinking:
setTimout(MyProcess.Object.Method(), 1);
But I cannot find a way to make TestComplete do this. I have tried:
var obj = new Object();
obj.setTimout(MyProcess.Object.Method(), 1);
Which also does not work. The problem is the method I am calling opens a window that requires user input, but I can't send user input because TestComplete is waiting for the result of the method.
Thanks,
Thomas
Is there a way to use JScript's setTimeout funciton in TestComplete scripts? I am calling a method directly from TestComplete, but i do not want to wait for the return value of the method. Is there any way to do this in TestComplete? I was thinking:
setTimout(MyProcess.Object.Method(), 1);
But I cannot find a way to make TestComplete do this. I have tried:
var obj = new Object();
obj.setTimout(MyProcess.Object.Method(), 1);
Which also does not work. The problem is the method I am calling opens a window that requires user input, but I can't send user input because TestComplete is waiting for the result of the method.
Thanks,
Thomas