API when creating page data used for tests

Some context: when using an in memory implementation of IContentRepository (most likely in a test scenario) you need to create pages that are involved in the tests. I’m not quite sure which approach I fancy so I thought I’d ask you. Given that these two snippets produces the same result, do you find one “better” …

One reason why I don’t like service locator

Let’s say I want to use the new (brilliant) ISelectionFactory to easily create a list of something for the editor to choose. The data the editor uses is fetched from EPiServers IContentRepository. Unfortunately this won’t work since the class is not created from the container. Instead we get an error in edit mode saying the …

UI-testing (EPiServer): SpecFlow

This post is not going to be about what BDD / Specification by example is and the benefits of it but more of a quick start with doing UI-testing in a SpecFlow manner. Installing SpecFlow Although it’s not technically necessary I’d advice you to add the SpecFlow extension to Visual Studio. This is added through …

UI-testing (EPiServer): up and running

I’ve blogged previously about UI-testing. The purpose of that series of posts was to share information I’d gathered in the process of testing but I never really got around to writing about how to get started. Inspired by the Selenium testing tools cookbook I want to write some very hands-on posts so let’s get started. …

What’s in EPiServers container?

I was curious what’s registered in the StructureMap container by EpiServer themselves. StructureMap comes with the helpful method WhatDoIHave() which spits out everything registered. I formatted that list to make it slightly prettier Here’s the list from the above code. Rumor has it that you need to have this list memorized if you are to …

Review: Selenium testing tools cookbook

Where I’m coming from I’ve worked with web UI-testing for about 2 years. First with Selenium 1 in .Net and then later with selenium 2 in ruby using capybara/cucumber. The book Selenium testing tools cookbook is a great book for anyone getting started with UI-testing. It focuses on how to get things up and running …

Reading: Selenium testing tools cookbook

As readers of this blog might know I’m interested in UI-testing but so far there hasn’t been too many books published on the subject. Therefor I’m really looking forward to reading “Selenium testing tools cookbook” from Packt Publishing. I’m especially interested in the chapters on using ATDD/BDD tools in conjunction with Selenium. Review coming soon(ish)!

Testing strategies for EPiServer now and in the future

This post discusses some different approaches you can take to testing your EPiServer site. Unfortunately it won’t give you answers to the eternal question “what to test?”. While it’s always boring to do the typical consultant “it depends” it’s very hard to give general guidelines what to test, when to do it and what approach …