Forum Discussion
- karkadilValued ContributorAs it happens in many cases, your question contains the answer.
Try reading TestComplete documentation more carefully before asking questions on the forums.
Runner.Stop can be definitely used in your case
http://support.smartbear.com/viewarticle/33312/ - jorgesimoes1983Regular ContributorDefault Project Properties - Project - Playback - Disable "Stop on error"
- karkadilValued ContributorNo Jorge, your solution won't work as it will stop the whole execution of the project/project suite
- jorgesimoes1983Regular ContributorForgot to tell, and it should/can be used with this event:
function GeneralEvents_OnLogError(Sender, LogParams)
{
Log.CallStackSettings.EnableStackOnError = true;
// Posts an image of the whole screen
Log.Picture(Sys.Desktop.Picture(), "Image of the whole screen");
if(LogParams.Priority >300)
Runner.Stop(true);
}
Something like this --> http://smartbear.com/forums/f81/t78352/runner-stop%28true%29-stops-all-tests,-not-just-the/