Running UI-tests in parallel

Some background When the CI job approached a time limit that made it feel noticeable I started to look into how to make it faster. To no surprise to anyone the biggest amount of time was spent on running the UI tests. Outside of the .Net space there are a few ways to run tests …

When running IE8 UI-tests on a build server…

Dear future Stefan, When running IE8 UI-tests on a build server, always remember to login to the machine with the same user account that is used by your CI framework of choice. There are many different reasons why selenium can have a hard time communicating with IE such as running in protected mode and/or having …

In memory IContentRepository – The genealogy of pages

This post is part of a series of post where I try to implement an in memory IContentRepository. The tests for this posts are found here and here. This post will look at the last members of the IContentLoader interface for a while, namely GetDescendents and GetAncestors. First thing that pop out is that Descendents …

In memory IContentRepository – Getting children

This post is part of a series of post where I try to implement an in memory IContentRepository. The tests for this posts are found here. In this post we’ll continue to look at another member of the IContentLoader interface, namely the GetChildren method. There’s an interesting method with the signature But since we, like …

In memory IContentRepository – Getting a page

This post is part of a series of post where I try to implement an in memory IContentRepository. The tests for this posts are found here. When getting a page we’re using the IContentLoader interface. In this post we’ll focus in the most simple case, to load a page by a page reference and not …

Testing IContentRepository

If you want to test against IContentRepository you have some different options. 1. Database This is basically the same thing as when you’re running the site. In your test project you start up episerver in a console mode and each query/command is executed against the database in the same way it would have been if …

SpecFlow scoped bindings

Some background: on the site I’m currently working with searching is a key part and a search might exist in many different context and differ somewhat depending on the context. When writing a feature file I’d typically end up with something like this Duplicated steps When running these scenarios SpecFlow will execute the same method …

EPiServer 7 patch 2, MVC and session state

When my colleague Niklas Melinder applied patch 2 for EPiServer 7 he ran into trouble when the site was deployed to our acceptance server. The site started to throw “System.InvalidOperationException: The SessionStateTempDataProvider class requires session state to be enabled.”. Since our acceptance environment runs with sessions state switched off it was pretty clear what caused …