Forum Discussion

p_bremm11's avatar
p_bremm11
Contributor
10 years ago

Recording error log without stopping the test


I have the following active method (Events - OnLogError) when enters this method would save the Log error (MHT format).
I used the 'Log.SaveResultsAs' but did not bring the error, just what passed the test.

Would I like to save it with the Error Log, for there handle the error and continue the test.

 

Thank you,

Patrick Bremm

  • NisHera's avatar
    NisHera
    Valued Contributor

    Log.SaveResultsAs for export log files. According to documentation ..............

     

    there is no need to call the SaveResultsAs method from each test item. You just need to call this method from the last test item.

     

    if your test stops at error may be you have ticked project/properties/Payback/stop on error check box (uncheck it)

     

    to handle errors please read this

    • p_bremm11's avatar
      p_bremm11
      Contributor

      Maybe I found a solution through the tip. In my company is with the short time. When you have time there, I'll post the results here.