azakharov
11 years agoContributor
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.
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.