October 6, 2011 by Alistair Deneys
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.