Monthly Archives: June 2009

Still, distractions are inevitable, and problems that need a developer to help solve them will come up every day. A production system may run into trouble, another developer may need help with a hairy problem, a member of another team may want to know how your product solves a particular problem, and so on. At Atlassian, we try to manage these interruptions in two ways.

Continue reading »

Selenium Testing with Windows Integrated Auth

Automated web testing generally has problems testing sites using Windows Integrated Authentication. This is because the nature of integrated auth is to supply the credentials of the logged-on user - which in the general case is going to be the user running the tests. This may work in some cases, but at the very least it's likely you want to test using both an admin and non-admin user. This can be done with Selenium, but requires some work to get it set up (I'm assuming we're using Selenium Server here).

Continue reading »

How Hamcrest can save your soul

I considered calling this post, "assertEquals considered harmful" but thought that it might be a bit too harsh. After all, assertEquals is still good for asserting that the primitive result of a calculation is accurate. But I will never again use it for complex objects and I hope to convince as many people as possible that there is a better way. First off, let's start with some assumptions: We want our tests to be clear to the reader and convey what we are trying to test without a lot of extra

Continue reading »