Coffee => Coder => Code
My ramblings on code, Sitecore and stuff

Archive for October, 2008

Automated Testing and Sitecore – Part 7

October 29, 2008

In the previous part of this series we covered testing the static output and behaviors of Sitecore presentation components such as rendering, layout and sublayout. But what about testing the dynamic behaviors of a component, such as “what happens when I push the button?”, or “did my javascript make the ajax call to grab the [...]

Automated Testing and Sitecore – Part 6

October 22, 2008

In this installment we’ll cover testing the static behaviors and presentation of our other Sitecore presentation components; layouts, sublayouts and renderings. These components are more difficult to test as they need to be hosted inside a Sitecore page to allow testing them. Because these components will be hosted in a page, we will be making [...]

Make Sitecore host WCF

October 17, 2008

For a long time I’ve been a huge fan of .net remoting. Once you got your head around the architecture, it is a really nice technology to use when you need to make calls across applications. In the past I have done this straight out of Sitecore with no problems.
The general scenario involves 2 Sitecore [...]

Automated Testing and Sitecore – Part 5

October 15, 2008

In the last part of this series we started to write tests around code which uses the Sitecore API. These tests were run inside the NUnit custom test runner we wrote back in part 3 of this series. In this post, we’ll start testing our presentation components, starting with the easiest to test, which is [...]

And Another One for Shared Source

October 14, 2008

Last night I uploaded the Quicklaunch toolbar which I created a few months ago into the Shared Source section of SDN. So hopefully more people will now be able to find it. You can check it out by following http://trac.sitecore.net/QuickLaunchToolbar/wiki. It is also listed on the SDN at http://sdn5.sitecore.net/Resources/Shared%20Source/Shell%20Extensions/Quick%20Launch%20Toolbar.aspx. You’ll find release 1.0 which I [...]

Automated Testing and Sitecore – Part 4

October 6, 2008

So far in this series we have covered some of the theories and techniques required to automate testing of Sitecore components, creating a custom NUnit test runner which runs inside the Sitecore website and exposes the Sitecore context to the running tests and how to programmatically setup our test environment for repeatable testing against know [...]