Archive for January, 2007
Testing E-mail: Lessons Learned
Lately I have been testing e-mail functionality of web application. This is the fourth post about that experience. Last week I wrote about tools I use for e-mail testing.
I suggest that you start with little steps, and I mean really little steps.
I assume that you have a test suite that tests web interface of your application. Some tests cause e-mails to be sent. But, until now, you have ignored that e-mails.
First, check if your application sends correct number of mails (see, really little steps). For example, if you are testing forum application, after start a discussion test is performed, check if every member of forum gets e-mail (depending on each member’s settings).
Then, after you have checked number of e-mails after all your tests, start checking if e-mail headers (from, to, subject) are correct for every mail that is sent. After that is done, start checking body, and then attachments.
I think it is better to test only some properties of e-mail but for larger number of e-mails, than testing all properties of e-mail, but for small number of e-mails.
Of course, this is only my advice based on my recent experience. Adjust your tests to your context.
Watir: Select Element Using Custom Attribute
Paul Rogers and Prema Arya just started a very interesting thread at wtr-general.
If you have text field
<input custom_attribute="so cool" type="text" />
you can get value of custom_attribute
browser.text_field(:index, 1).attribute_value("custom_attribute")
#=> "so cool"
and you can set value of that text field using custom_attribute
browser.text_field(:xpath , "//input[@custom_attribute='so cool']/").set("even more cool")
Podcasts I Listen To: Iteration Three
When I posted list of podcasts that I listen to, I forgot stickyminds.com podcasts. I forgot to mention it because it does not have separate feed, so it was not labeled as podcast. You will have to subscribe to one of stickyminds.com’s feeds.
