Forum Discussion
stevereiss
15 years agoOccasional Contributor
Hi!
I ran into the same problem with a User Form bringing TestComplete back to its restored state. The code works fine in TC, but will fail if the suite is run in TestExecute because the process name ('TestComplete') will NOT be found.
I've tried to use a Try..Except block and Log.LockEvents / Log.UnlockEvents :
try
Log.LockEvents(); (* turn OFF logging *)
Sys.Process('TestComplete').Window('TfrmTCMainForm', '*', 1).Minimize();
Log.UnlockEvents(); (* turn ON logging *)
except
end;
This will still trigger an error condition when run in TestExecute....
Is there some other way to have a special case for TestExecute so there
will not be an Error in the logs due to this condition?
Thanks!
Steve
I ran into the same problem with a User Form bringing TestComplete back to its restored state. The code works fine in TC, but will fail if the suite is run in TestExecute because the process name ('TestComplete') will NOT be found.
I've tried to use a Try..Except block and Log.LockEvents / Log.UnlockEvents :
try
Log.LockEvents(); (* turn OFF logging *)
Sys.Process('TestComplete').Window('TfrmTCMainForm', '*', 1).Minimize();
Log.UnlockEvents(); (* turn ON logging *)
except
end;
This will still trigger an error condition when run in TestExecute....
Is there some other way to have a special case for TestExecute so there
will not be an Error in the logs due to this condition?
Thanks!
Steve
Related Content
- 14 years ago
- 2 years ago
Recent Discussions
- 3 days ago