Forum Discussion

Rodm00011's avatar
Rodm00011
Occasional Contributor
2 years ago

Log.Error supressing Log.Warning in Execution Summary

basic script

 

function main()
{
  TestedApps.notepad.Run();
  aqObject.CheckProperty(Aliases.notepad.wndNotepad, "WndCaption", cmpEqual, "Untitled - Notepad");
  
  
   Log.Warning("test warning");
//  Log.Error("test error");
//   Log.Error("test log of error");
   closeNotepad();

}


function closeNotepad()
{
//  Log.Warning("closing app");
   Log.error("test logging of error");
   TestedApps.notepad.Close();


}

 

upon execution - the warning does not appear in the Test Execution Summary  : says 1 error, 0 warnings... however the warning does appear in the log details

does using Log.Error suppress Log.Warning messages