Tuesday, 5 February 2013

New web test case management features in TFS 2012

Just got back from the ALM Summit in Redmond and we watched Anutthara's talk about Agile testing, she demo'd some of the new Update 2 CTP 2 test features that Brian Harry announced a couple of days before and so I thought it might be good to put a walkthrough together for the new Web test case management features in TFS 2012 Update 2 CTP 2.

The purpose of this feature is to provide light weight test case management via a browser and this is something that a lot of our customers have been asking us about. We have been working with this feature for a while now, helping Microsoft with the testing of it and the prioritisation of their backlog and I have to say that we love it :)
To start with, if you are using Team Foundation Service, you have had it enabled from 29th Feb, but if you are using an on-premise TFS then you will need to install Update 2 CTP 2 in order to enable the feature.
So here we can see if we have logged onto Team Web Access you will see the new link “Test” hub:

From here we can interact with Test Plans that have been set up using Microsoft Test Manager (MTM). There are a number of things that you won’t be able to do like creating new test plans, creating test suites. Test Plans and Test Suites are pretty easy to create in MTM, then you will be able create new test cases and execute those test cases, let’s take a look at the experience for creating new test cases.
To create a new test case, ensure that you are positioned on a suite on the left hand side of the Test Hub, click the “New” button which is in the centre of the screen:


The Test Hub
Test Hub
This will bring up a new test case window, which is the same type of form that you would see in MTM. We won’t go into all of the fields here other than to say we will complete the test case with a Title and a series of steps by typing in the area that says “Click or type here to add a step”. One other thing to notice that is particularly powerful is the Tags functionality at the top, notice here that I have added a “Functional” tag and a “Regression” tag. This is new functionality that is not specific to just the “Test Case” work item and is such a good feature because we can add attributes to a work item without the overhead of modifying the process template. I have seen many organisations who overload the Title field with attributes to avoid modifying the process template but this approach can get very messy. Here is another example of Microsoft listening to customer’s needs. Only thing left to do is click the “Save and Close” button:


New Test Case
New Test Case

Once we click save the test case is created and brought to life in the test suite in the current test plan. From here we can choose to Reset to Active/Pass/Fail/Block or make the test case “Not applicable” without having to execute each of the test steps, which is great if you are in a hurry, know the steps that need to be executed and just want to show progress. Also note the filters that are present top right, along with the ability to change whether the test case pane is displayed at the bottom, the right or invisible.
If you want to execute the test case long hand, then that is covered too. All we have to do is select our test and click the “Run” button.


Test Suite
Test Suite
This brings up the Test Runner which docks to the left hand side of the window and displays all of the test steps for the selected test case.
Using this test runner, we can click through each test step, performing the action, checking the expected result and passing or failing the test step. If we find a bug, we can chose to fail the test step, make a comment and click the “Create Bug” button.


Test Runner
Test Runner

This will bring up the Bug form in a similar way to the test runner experience in MTM. The new bug form is already populated with the information about the steps, what the user did, what was observed, what passed and where it failed. All that is left is to complete a title and perhaps a severity, hit save and close and we are done.


New Bug
New Bug

We are back at the test runner and TFS has “filled in the blanks” and worked out that the test result is probably a failure. It is also possible to View a summary of the bugs that have been raised using the button at the bottom of the screen, the titles of the raised bugs appear in the resulting pop-up. To update TFS with the results, simply click the “Save and Close” button at the top of the Test Runner.


Test Runner
Test Runner
What is great about this is that not only has TFS allowed us to simply execute a test case from the web and given us a very efficient way of creating the bug but it has stitched everything together for us so that we have full traceability, the User Story PBI is linked to the test case, the bug is linked to the test case, the test result is linked to the test case and to the bug that was raised. Below we can see the updated results being displayed in the Test Hub:


Test Suite Results
Test Suite Results
So to summarise, this new Web test case management feature of TFS allows us to plan, manage and execute upon our testing effort from a machine that does not have to have any client software installed. It may not provide all of the features that MTM can offer the tester but there is enough to make it powerful and agile at the same time.
Nice work Microsoft, yet again we can see that a more frequent cadence of release which means that users will not have to wait before they get updates with additional functionality. The fact that Microsoft uses their own tools to manage their own application lifecycle and they can release at this cadence only goes to show that TFS and Visual Studio really enables great ALM with Build.Measure.Learn loops :)

1 comment:

TestingWhiz said...

The new add on to the software is amazing.This makes easier to test the performance before confirming the code.
Automated testing tool