Automated UI Testing Using TestStack.White and Continuous Integration with TeamCity

by 

|

in

One of the things that our development approach at DPL allows us to do is to have a very low ratio of QA testers per software engineer. Our architecture designs and patterns provide for very isolatable and testable components, allowing us to reach high coverage numbers in most areas of our code. However, one area…

Read more…

How I Approached Unit Testing

A few months back I submitted an idea for a presentation to a developer conference. It was rejected. I’m not alone. We all have, at some point, been turned down. Maybe our ideas were not as jaw-dropping or life-changing but that’s no reason to just let those ideas never see the light of day. We…

Read more…

HTML5 Video: Lessons Learned

We recently completed a web project for a client where videos were an integral part of the site. When the client came to us, they had already vetted their design ideas and had an outside firm create a final site design. Nearly every page of the site was to have a video on it that…

Read more…

Exclude Those Unit Tests!

by 

|

in

Do you have a unit test that you don’t want to run in the nightly build? No problem. Just add the TestCategory attribute to your test and give it a “DontRunWithBuild” name or something else memorable. In Visual Studio, go to the Team Explorer, right-click on the build you want to exclude and click Edit…

Read more…

Running a Service as an Application

by 

|

in

Windows services are really cool, but they can be a little bit of a pain to work with. To debug a windows service, the typical model requires you to attach to the services process. This is incredibly annoying after you do it for the 10th time, but the good news is there’s an easy alternative….

Read more…

Load Testing in Visual Studio 2010

Have you ever wondered if your custom data access code is any more efficient than simply loading a DataTable? Not that I’d recommend using DataTables except for certain situations, but Visual Studio 2010 Ultimate makes it easy to load test your data access classes to determine performance. In order to test this out I created…

Read more…

Testing Session in MVC in Four Lines of Code

by 

|

in

Controller testing in the model-view-controller (MVC) is simple. ?The level of difficulty is increased with the use of Session in the controller, but only slightly. In this post I show how to simply test controllers which use Session. Let’s try testing this controller method: The following code (in a test project) will throw a null…

Read more…