Thanks Houston TechFest!

This past weekend I gave a talk on one of my favorite topics – UI testing. In it, I focused almost exclusively on techniques for authoring maintainable UI tests, and how design for testability extends to views, models and controllers in MVC land. It’s trivial to write UI tests that break easily, but not much more difficult to write maintainable tests, given that you’ve intentionally designed your UI layer for UI testability.

Big thanks to the Houston TechFest organizers, who put on a fantastic conference, and to all the attendees, who had to put up with me for an hour. For those that are interested, you can find the code and slides here:

I had a lot of people asking about the wrappers on top of our browser automation tool, WatiN, and if they were open source. The answer is no, not yet, but we’re working on it. A quick road to fragile UI tests is browser automation code directly in your UI tests, so the sample code provided should at least provide some ideas and guidance to craft your own wrappers. And as always, my door is always open for questions. My email door, at least.

About Jimmy Bogard

I'm a technical architect with Headspring in Austin, TX. I focus on DDD, distributed systems, and any other acronym-centric design/architecture/methodology. I created AutoMapper and am a co-author of the ASP.NET MVC in Action books.

You presented well, Jimmy. Thanks for covering WatiN and MVC UI testing. I haven’t started any MVC projects, but most of the projects I have seen generally steer clear of UI testing. I was glad to learn it is so simple!

Ads

About Me

I'm the chief architect at Headspring in Austin, TX. I focus on DDD, distributed systems, and any other acronym-centric design/architecture/methodology. I created AutoMapper and am a co-author of the ASP.NET MVC in Action books.