Thursday, 29 March 2018

VSTS / TFS 2018 Viewing test run history for a given test case

UPDATE:
Divya Vaishyani from Visual Studio Team Services team has rightly pointed out that it is possible to view test result history for a test case using the Test results pane as documented here. However, the test results from across Test Plans. This is quite confusing and different than the test history that showed. The workaround in this post allows you to view history for the same test plan


With the release of TFS 2018, running automated tests from Microsoft Test Manager (MTM) isn't supported any more. (see TFS 2018 release notes) doesn't support MTM to run automated tests from. This was announced in VSTS and TFS road map about two years ago. 

The test planning and management features in TFS / VSTS are pretty cool. However, there is one feature that I feel is rather missing and that is ability to view the history of a particular test case. In MTM, you could just click on the "View Results" link on a Test Case and view previous results. However, in VSTS, it is not possible to view test case's run history. There is a feature request in the user voice for it. Do remember to add your vote for it!!

1) In TFS, click on "Test" from the top menu and select the test suite where your test case is. Select the test case that you are interested in. Then Click pass or fail button. This will generate a manual test run for the given test.

Trigger a Manual Run for your Test Case

2) Go to MTM --> Test --> Analyze Test Run. Select option "Manual Runs" in the View option
The good news is that there is a workaround - using MTM - for you to view history of test runs for a particular test case.


Find the Manaul Test Run in MTM

3) Open the test run. Right click on test and click "View Results".

View Test Run in MTM

4) The list of results will show you the manual run as well as automated runs, which is what you are really looking for.

View Test Results

It's still a workaround and you still need MTM but you can see the history of test cases this way. I hope you find this post useful.







6 comments:

dv said...

You can view the Test run history for a Test case in Test hub too. This is available in the Test results pane, you can browse the most recent test results associated with a test case for all configurations, across all test suites and test plans. Toggle on the Test details pane and pick Test results as your view.

https://docs.microsoft.com/en-us/vsts/release-notes/2014/nov-04-team-services#recent-test-results

Hamid said...

Hi Divya, thanks for your comment. The history that we see from Web UI spans across Test plans, which is quite confusing because the test settings, configuration etc. for test case run in a different plan is very different. MTM shows (and has always shown) the test case's history for the same test plan.

Unknown said...

i'm here to learn more about DevOps Thanks for Sharing
Here you can check best DevOps Online Training Institute
DevOps Online Training

Rajani said...

Thanks for Sharing!! it's very interesting Blog...
Microsoft Azure DevOps online Training in Hyderabad

MS Azure said...

Thanks for posting such a Useful information .You Have done a great job.

aws devops training in hyderabad
aws devops certification
aws devops online training
aws devops training

MY PET CLINIC VIZAG said...

Thank you for sharing such a really admire your post. Your post is great! . Pet Dentistry in Vizag