nancy_arias
2 years agoOccasional Contributor
Emailing failed test log after test execution
Hi, i'm monitoring a web system throw an authomation script using Keyboard test. So i want to send an email when the test execution results on a failure. I saw the documentation but still i cant get...
- 2 years ago
In this example,
When I run Test1, to purposely cause an error. The event OnLogError() is triggered automatically, and then the Log.Error() message is shown afterwards. Make sure you fully understand how Events are triggered.
To send an email, follow the example shown in Sending Email From Scripts. Depending on your email system (SMTP), you might not be able to send an email using an external application. You have to test this though.
You can then incorporate the above into your keyword tests.