View from the Ivory Tower

Chris Kadel's attempt at a blog with an ironic title.

Archive for October, 2009

Test Case Management in VSTS 2008

Posted by cbkadel on October 19, 2009

I think the excitement for the Visual Studio 2010 (formerly known Rosario) has grown dramatically. With the announcement on October 19th, the Beta 2 was released, and now that we have a launch date (March 22nd 2010 for those of you not on the tubes of the internet) – I really could not be more excited.  I’ve always loved the tools, but now – love may turn into something greater.

 

One of the things many of my clients have found limiting/frustration is the manual testing & test case management story with the current set of tools.  My answer has been for a little while – wait until you see Rosario/2010.  Even with that, sometimes we needed something in place for a little bit of effort.  Here was my implementation of a rudimentary test management suite using 2008.

 

The solution must meet the following requirements: somehow test cases should be linked to requirements, we should be able to know how many test cases have been identified, authored, and executed, as well as some statistics about how many passed/failed.  Without spending a lot of time on the details on Work Item Type customizations, here was my high level solution.

 

image

 

Create a new Work Item Type called Test Case.

For minimal effort, a work item type can have a few text boxes to handle the steps of a manual test case, it’s state, and pass/fail nature.  We also created a Custom User Control here to handle the steps because sometimes that grid-like functionality just is irresistible to testers.  Let your end users link those test cases to requirements.

 

Create a Report [Test Cases by Requirement]

You can get more complicated, but this report can be used to identify gaps.  In this, you’d need to look at all Test Cases Work Items, and group them by their related Requirement Work Item ID.  Now – just a few implementation details here: Use the TfsWarehouse relational database.  It is your friend.  It contains work item relationships without requiring MDX.  Some have asked – can I use a query if we’re just getting a list of Work Items.  Nope – any time you need to deal in terms of work item relationships, crack open the SSRS/SQL skills.  You can now get for each requirement, the number and details of any test cases.  You can get fancy by putting coverage % there if you want, too.  Some teams need this.

 

Create a Windows Forms App – Test Case Copier

Testers do not run all tests just once.  Tests are meant to be re-executed in every test iteration, or cycle.  If you can get comfortable with the TFS API – you can have it iterate through Test Cases that perhaps meet a criteria (you can get arbitrarily complex depending on how your team breaks down their test cases), take that work item [one for each test case] – and copy some of the basic details (test description, author), but do *not* copy the state or the results.  You can then create a brand new Test Case for a new iteration.  A key point here – is have in your Test Case Work Item type have some indicator [a text field perhaps] for your test iteration.

 

Create a Report [Test Results by Test Iteration]

Now – back to SSRS – let’s create a report for our management that perhaps lists all the test cases that have been executed (that’s a TFS Work Item State you should have) – and the % that have passed / failed.  You can take [because we now know how to relate those test cases back to requirements from the earlier report] those %’s and tie them directly to your requirements.  You now can calculate how many of your requirements 1.) have tests written for them 2.) and the percentage of tests that are passing.

 

So – that’s your basic test case management solution in VSTS 2008.  Let me be clear, it’s some customization, but not a lot.  If you can wait until 2010 – you should because this customization – while probably will work in 2010, you will not want to when you see the features that are coming there!

 

Good luck, if you need any more details on this solution – http://twitter.com/cbkadel

Posted in Uncategorized | Leave a Comment »

Development Process – A Lesson From Microsoft

Posted by cbkadel on October 19, 2009

Often times in the media today, you read about the end-products of Microsoft such as Windows or Office, but not often do you get some insight in how those products were developed.  In the Online WSJ – http://online.wsj.com/article/SB10001424052748703816204574483533753673144.html – there is mention of how Microsoft re-organized its Windows development team.  I think there a few lessons that as a consultant or even a developer in corporate IT, we can take to heart.

 

Firstly, rigid silos within teams or between teams.  Microsoft worked on fostering communication among its teams to ensure that information was shared more effectively.  I think we all believe innately that silos in IT are “bad” but it is surprising how often they manifest themselves.  One cause, in general, is the environment that we work within.  We like to send email to people, we like to IM, and we like to have face-to-face conversations.  I think that those things, informally are absolutely critical in every project, but I do think there are some things that we should be using a structured way of communicating so that it gets captured for others.  It is one reason that I’ve been a big believer in Visual Studio Team System since v1.0.  By using task management and SharePoint collaboration, communication can be structured and viewable by all – that need to do it.

 

Just using the tool alone will not solve those issues, but I believe it can be a great enabler.  So – I think we should all be introspective, and look for those silos.

Posted in Uncategorized | Leave a Comment »

The New Visual Studio

Posted by cbkadel on October 19, 2009

Well, today was a big day for the Microsoft Developer Tools group for sure.  They packed a bunch of huge announcements.  I’m sure you’ve seen the big announcements for the launch date for sure (March 22nd, 2010).  Also the new product SKUs which hopefully will simplify the choices for most teams that have been accustomed to buying role editions.

 

What I think i find most interesting is how this will affect customers using the products going forward.  My guess is that – for most developers having what was called the Database/Developer edition functionality, now going forward “Premium” will be what’s needed.  I’m thinking this is really an awesome amount of functionality into the entry level Team System product line.  This of course includes a CAL (I’m assuming) and the improved database + developer functionality.

 

If you’re anyone else on the project, or a developer that plays a lot of roles, Ultimate becomes very attractive, as you get the development functionality, database functionality, testing, and architecture functionality included now.

 

It will be interesting to see how this is presented, I’m starting to wonder if more people should be looking at Ultimate:

 

How does the business analyst fit in?
How about the Business Analyst that is going to be doing heavy modeling?  I know this type of functionality was previously viewed as “Architecture” – but business people certainly are no stranger to the Use Case diagram. I’d say Ultimate looks like the edition for those people. If they do not do modeling per-se, using a CAL and Team Explorer may get them the functionality that they need.

How does the ‘do-everything’ person fit in?

The “Project Guru” – this is the person that probably is working as a developer as well as a liaison to the business. He/She has to write code, and model.  That person is going to want Ultimate.  

Testers?

Testers – They have a choice for the Testing Elements – which is the stand alone tool that is targeted specifically for testers, or they can get Ultimate.

 

For the most part, it seems that this change in product SKUs really brings the Visual Studio line more into line (though not perfectly) with other Microsoft products such as Windows and Office.  Both of those products sport names like “Professional” and “Ultimate.” So from a marketing perspective, I can really see the value.

 

One thing I think that is important to remember here too, before people did complain about the functionality changes in Windows Vista.  There were some more expensive versions that did not contain all the functionality of perceived lesser versions.  Vista business line versions did not include Media Center and a few other things.  Customers were somewhat confused because they had to make some hard choices: Do I want media center or AD integration?

 

The good news, I think is that each subsequently advanced version of Visual Studio now will have a superset of functionality than the previous one.

Posted in Uncategorized | Leave a Comment »

Presenting VSTS 2010 at the TSUG – Virtual Edition

Posted by cbkadel on October 14, 2009

Tomorrow, Thursday October 15th @ 7PM CST, I will be giving a talk on the Architect Edition functionality for Team System 2010.  I’m very excited to be presenting with that group and it should be a good lap around the functionality of the new tools coming out next year!

 

There is no official sign up, but if you go to http://www.tsug-ve.com/, you’ll see the Live Meeting link/invitation that you can use to connect.

 

Audio will be through Live Meeting so have your computer speakers turned on!

Posted in Uncategorized | Leave a Comment »