Adding SQL MIME type to IIS 7

To download a SQL file from an IIS hosted website the website needs to know how to handle the file. In general terms a SQL file is plain text, so the respective MIME type would be text/plain This can be added to IIS manually using the MIME types editor. Or for a more reliable approach... Continue Reading →

Working around Selenium

After you've used selenium for a while, you'll be familiar with some of the problems. Yep, WaitForElement doesn't exactly cover itself in glory. It is possible to work round this a bit using a static helper for retries. Something like this; public static void MyNavigateMethod(this IWebDriver driver, int retryCounter = 0) { try { driver.DoSomething();... Continue Reading →

Collect performance data from remote servers

To collect performance data from remote servers, when running a load test for example, use the following PowerShell script: clear$testId = "doodle"$durationSeconds = 20$threadsPerAgent = 5$client = ""$counterList = @( ".NET CLR Exceptions()# of Exceps Thrown / sec", ".NET CLR Memory()# Total committed Bytes", "\ASP.NET\Application Restarts", "\ASP.NET\Request Wait Time", "\ASP.NET\Requests Queued", "\ASP.NET Applications()\Requests/Sec", "\Web Service()\Current... Continue Reading →

Goldilocks and the 3 reseller packages

Goldilocks was walking through the wood one winters day when she came across a house with three computers. (Yes there was also fibre broadband installed - it's a tech savvy wood - get over it!) The first computer was connected to Fasthosts. A solid offering she thought, back by over a decade of experience. But... Continue Reading →

The Art Of Unit Testing, TDD

My quote-of-the-day, regarding Test Driven Development: I am convinced that it [TDD] can work to your benefit, but it’s not without a price (time to learn, time to implement, and more). It’s definitely worth the admission price, though. Taken from the excellent The Art of Unit Testing: with Examples in .NET by Roy Osherove.

Microsoft Mocking

As a .NET developer I don’t like using third party controls when there is tooling available from MS that will do the job I need. For example I prefer using the “baked in” MSTest suit as opposed to NUnit or MBUnit. The same is true for a mocking framework. I have tried with varying levels... Continue Reading →

A WordPress.com Website.

Up ↑