Test management features since 2012

Ravi Shankar, my colleague in the test management team, published a list of features that we added in test case management tool in last 1 year or so. I find that list really useful, so sharing it with all of you here. Here you go: – VS 2012 (Microsoft Test Manager) – RTM: · MTM…

0

How to run tests on a machine without Visual Studio/Team Build/Test agent etc?

I have heard a lot of customers ask about how to make the tests run on a machine without visual studio components or whether you have xcopy-able install etc. The official answer to all these questions is that you should have a visual studio or team build or test agent installed on the box, but…

2

Test management SQL query to find out the test results associated with a suite

One of the customer wanted to know the sql query which he can use to find out the results associated with a suite. Nipun sent the following query: –   DECLARE @deletedSuiteId INT SET @deletedSuiteId = 167 –Replace with appropriate suite Id SELECT r.* FROM tbl_testresult r JOIN tbl_point p ON r.PartitionId = p.PartitionId AND…

0

Test plan cannot be saved. The structure path XXX is not valid

Lately one of our customer reported this problem that on hosted tfs service, he is not able to create a test plan and creation/update of test plan fails with the error “Test plan cannot be saved. The structure path XXX is not valid”. Here is how we solved this problem. Nipun & me investigated this…

0

How to run test explorer based tests from a stand-alone executable?

To run test explorer based tests from your own custom exectuable (32 bit/64 bit does not matter), you should do the following steps: –   Ensure that you have visual studio 2012 or above installed on your machine. Download this sample (RunTests.exe) and extract it on your machine. You can use this as a starting…

0

Change ClassCleanup timeout

I have seen few people writing a lot of code in their class cleanup and then complaining that the clean-up is timing out and how they can increase this timeout. To do this, I suggest them the following steps: – Ensure that your class cleanup is indeed timing out. To do this, please check whether…

0

How to preserve the test results directory?

In VS 2012, when you are running mstest based tests, then the framework deletes the test results directory when the following condition is met. All the test case passes. There is no attachment which got produced in the test run. The option to preserve the test results directory is turned off (default is off). This…

2

How to enable MSTest logs

Here are the steps which you should perform to enable mstest logs. 1. Go to your mstest installation directory via an administrator command prompt. (typically the installation directory is something like C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\). 2. Open the mstest configuration file (mstest.exe.config) and add a snippet similar to the one shown below under the…

3

How to find test points assigned to a particular person

Here is a code snippet which you can use to find test points assigned to a particular person. # Load Client Assembly [Reflection.Assembly]::Load(“Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”); [Reflection.Assembly]::Load(“Microsoft.TeamFoundation.TestManagement.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”); [Reflection.Assembly]::Load(“Microsoft.TeamFoundation.TestManagement.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”);   # Define parameters $tfsCollectionUrl = “http://myserver:8080/tfs/DefaultCollection”; $projectName = "DefaultProject"; $planId = "1"; $userDisplayName = "Aseem Bansal"; # Connect to tfs…

0