Forum Discussion
irina_lukina
15 years agoSuper Contributor
Hi Roman,
If I uncheck these properties the Test Item will not stop.
The situation is correct:
"Right after the execution of the test item has finished, the test engine searches for the error message in the test log formed during the test item's execution. If the log contains errors, the test engine performs one of the following actions: None, Stop Project, Stop Test Item"
(a quote from the [url= http://smartbear.com/support/viewarticle/11001/]Test Items Page (Project Editor)[/url] help topic).
So, TestComplete processes errors only after the test item's execution is finished.
If you need to stop only the test item that posted an error right after this one, I recommend that you follow the steps below:
1. Add the StopOnError event to the event controls (for more information, see the Adding Events to Event Controls help topic).
2. Add the following code to the project:
function GeneralEvents_OnLogError(Sender, LogParams)
{
Runner.Stop(true)
}
Does this help?