Using a Base Class for your Unit Test Classes

Overview: This post will go over some simple but effective ways to setup common initialization and cleanup for Unit Tests on a larger scale than [ClassInitialize] and [TestInitialize] methods can provide for. First, to establish a common starting point I’ll go over some of the basics, if you’re already familiar with using the ClassInitialize/Cleanup and…

7

The Test Management API – Getting Started (Updated for RC Release)

Overview This post kicks off a series that will explore the Test Management API’s.  Using these API’s you can accomplish many tasks that may not be possible via the UI, Microsoft Test Manager (MTM).  Perhaps you have test assets in another system for example, with the API you could create your own solution that fits…

4

Automated Testing in VSTS / TFS 2010

I thought I’d make a brief post giving an overview of what automated testing looks like in our 2010 release.  While it’s true that in this release we focused primarily on nailing the experience for the manual tester there is quite a bit of carryover from those features that also apply to automated testing, and…

4

Orcas WebTest API Enhancements

Several new API Enhancements have been made for WebTest’s in the Orcas release of Visual Studio Team System.  Here are some links to examples: DeclarativeWebTest & DeclarativeWebTestSerializer:  http://blogs.msdn.com/densto/pages/declarativewebtest-declarativewebtestserializer.aspx WebTestRequest.DependentRequests Collection: http://blogs.msdn.com/densto/pages/webtestrequest-dependentrequests-collection.aspx WebTest.Outcome & WebTestRequest.Outcome: http://blogs.msdn.com/densto/pages/webtest-outcome-webtestrequest-outcome.aspx To find out about more of the new additions to Orcas check out the links in this post: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1177487&SiteID=1

4

How to keep your Test Plans / Suites in sync with your Unit Test assemblies

In my last post I gave an overview of what automated testing looks like in VS / TFS 2010 with the new testing features.  In 2010 we’ve added Test Plans which contain Test Suites which you can think of as a folder hierarchy to separate and organize your tests within.  Test Suites contain Test Cases…

3

The Test Management API – Getting Started

Overview This post kicks off a series that will explore the Test Management API’s.  Using these API’s you can accomplish many tasks that may not be possible via the UI (Microsoft Test and Lab Manager (MTLM) code named Camano).  Perhaps you have test assets in another system for example, with the API you could create your…

3

QueryString Correlation: Custom Extraction Rule – Basic

  using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using Microsoft.VisualStudio.TestTools.WebTesting; using Microsoft.VisualStudio.TestTools.WebTesting.Rules;   namespace WhidbeyCorrelation {         public class DynamicQueryStringExtraction : ExtractionRule     {           public override string RuleName         {             get             {                 return “DynamicQueryStringExtraction”;             }         }           public override string RuleDescription         {             get…

2

Test Management Terminology: What is a Test Point?

I was just getting started on what I intended to be my next post on this blog when I realized that the topic in that post would be much easier to discuss and understand if I first wrote about Test Points.  A Test Point is an object in our TCM Object Model that isn’t really…

2

WebTestRequest.DependentRequests Collection

Another new addition to the API is the DependentRequests collection which is a property of the WebTestRequest object.  This collection gives you complete access to all Dependent Requests of a top-level request.  You can use this access to attach PreRequest and PostRequest event handlers to your dependent requests, as well as add or remove dependent…

2

DeclarativeWebTest & DeclarativeWebTestSerializer

In Orcas, all of the API needed to programmatically create Declarative WebTests (non-coded webtests that show up in the webtest editor UI) has been exposed.  If you have a need to programmatically generate webtests you can now do this using the DeclarativeWebTest and DeclarativeWebTestSerializer classes.  Perhaps something in your web application has changed that affects…

2