Dreamcore AU 2011
It was my great pleasure to present at Sitecore’s Dreamcore event in Sydney, Australia this week. This was the first time the conference was held in Australia and it was fantastic with lots of great speakers and interesting people.
My session was titled “Testing Strategies for Sitecore” and was run in the developer stream, so it focused on automated/unit testing. As promised for everyone who attended my session, here is the code for my demo site and test project, as well as the slides.
The test project shows a few different techniques for automated testing your Sitecore projects including:
- Testing pages over HTTP
- Testing using a web browser driver (WatiN)
- Instantiating a Sitecore control
- Testing within the HTTP Context
- Testing without an HTTP Context
I’ve covered all of the above techniques before, except for the last one, testing without an HTTP Context. I’ll cover that technique in detail in a future post.
apparently there’s this secret feature in c# where you can write code against this thing called an “interface”. i hear it helps testability and decoupling components of a system? i’m slightly cynical of these bold claims, but maybe someone will whisper the secret in sitecore’s ear at some point, spurring them to investigate the validity of these claims.