Forum Discussion
I'm having the same kind of trouble with this "If Object Exists" test action on keyword tests too.
During testing, depending on certain previous conditions, I may or may not get a windows message asking if you want to proceed. If the message pops up, I want to click yes and proceed with the test; if the message doesn't pop up, I just proceed as expected.
So, I put up a "If Object Exists" check for the message box...
On the Additional Info tab I get the following message:
"Possible reasons:
- The test run was stopped manually.
- The test run was terminated as a result of the Runner.Halt method call. "
As per response from AlexeyK above, are you sure you mapped the top level item of the message box popup?
Because if you haven't it will fail due to stop on error if the parent of the message box is missing.
Whats the error you're getting? You told us what happens, but you didn't say what the actual error message said or where it pointed to?
- jferreira8 years agoOccasional Contributor
Yes, I think I have mapped the top level item of the message box popup correctly.
The message entry on the Test log is "The test execution was interrupted.".
It seems that Test Complete just keeps waiting for the message window to pop up until the time runs out and then halts execution.
Anyway, I've now found a workaround it:
I've added a code snippet with the Find method to check if the process child window message exists
[ TestObj.Find(PropNames, PropValues, Depth, Refresh).Exists ]
and then use the If...Then statement to check the Last Operation Result. It works.
Thank you for your reply.