Forum Discussion
jorgesimoes1983
12 years agoRegular Contributor
Forgot 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/
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/