Forum Discussion

Rodm00011's avatar
Rodm00011
Occasional Contributor
15 days 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

 

17 Replies

    • rraghvani's avatar
      rraghvani
      Champion Level 3

      I'm a customer, a user of TestComplete. I try my best to help others on this forum.

      • Rodm00011's avatar
        Rodm00011
        Occasional Contributor

        I appreciate your efforts - but where is actual Smart Bear support

  • Rodm00011's avatar
    Rodm00011
    Occasional Contributor

    AND I DID NOT MARK THIS AS A SOLUTION - GRRRRRRRRRRR

  • Rodm00011's avatar
    Rodm00011
    Occasional Contributor

    my test script SHOULD POST ERRORS AND WARNINGS...  dont give me test entity crap - support the customer - not the tech

    • rraghvani's avatar
      rraghvani
      Champion Level 3

      I had several notification indicating that


      I'm not sure what you are doing!

      • Rodm00011's avatar
        Rodm00011
        Occasional Contributor

        ARE YOU smart  ear tech support or just a user

  • Rodm00011's avatar
    Rodm00011
    Occasional Contributor

    why cant I have both - errors and warnings ... I must be misunderstanding

    • rraghvani's avatar
      rraghvani
      Champion Level 3

      The Test Execution Summary documentation will give you more information.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    If you have two execution entities, then it shown as

    However, having just one execution entity, it will post the results having the highest priority, in this case it's Log.Error. This is just a summary of the results.

    Further information is shown in Log Details tab.