Testing E-mail: The Code
by Željko Filipin
Lately I have been testing e-mail functionality of web application. This is the fifth post about that experience. Last week I wrote about lessons learned.
I have written a little framework that helps me with testing e-mail.
To use it, you will have to install Ruby, Tmail and SMTP server.
mail.zip (2,20 KB) and extract it. No installation required. There are even some unit tests (
unit_tests.rb) and example code (
Check if application sent mail that you have expected.
For now, mail that is sent can only contain
body. While receiving, I only check
This is code that I am really using every day.
Please understand that I am a tester, not a developer, and I know that this code could be better. Feel free to improve it. Post bug reports and your comments here.tags: code - ruby