01.30.07

Testing E-mail: Lessons Learned

Posted in E-mail at 5:58 pm by Željko Filipin

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.

01.29.07

Watir: Select Element Using Custom Attribute

Posted in Watir at 5:56 pm by Željko Filipin

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

ie.text_field(:index, 1).attribute_value(”custom_attribute”)
=> “so cool”

and you can set value of that text field using custom_attribute

ie.text_field(:xpath , “//input[@custom_attribute='so cool']/”).set(”even more cool”)

01.25.07

Podcasts I Listen To: Iteration Three

Posted in Podcasts at 5:41 pm by Željko Filipin

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.

« Previous entries Next Page » Next Page »