Forum Discussion

azakharov's avatar
azakharov
Contributor
11 years ago

Email Test Results as a small txt file

Is there a way to convert test results to small txt file and email it?



I used slPacker and SendMail methods to pack and email an mht file. It works fine when I run just a few test scripts but there is a problem when I run a lot of them. The mht file becomes to big and is rejected by smtp.



I only need test script name and execution result. If there was at least one error during test run I can assume that this test failed.
  • It sounds like you're just looking for a summary of the log file results.

    I would recommend reading the Log.ErrCount and Log.WrnCount properties of the log to compose your email text body. You don't need to include this as a text file attachment to accomplish this.
  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor
    It sounds like you're just looking for a summary of the log file results.

    I would recommend reading the Log.ErrCount and Log.WrnCount properties of the log to compose your email text body. You don't need to include this as a text file attachment to accomplish this.
  • Thanks Ryan. Do I need to add this procedure to each one of my tests?