0

Manually Changing Test Configurations in Bulk in MTM –There is an Easier Way

by Angela 12. June 2015 15:56

Another one of those silly little tricks I didn’t realize was available to me until I tried, and I thought I would share, because SURELY someone else out there would need it at some point.

Just ran into a situation where someone created a bunch of test configurations and made it their plan default, then started adding test cases like the wind.  Before we knew it, over 1,000 test points were generated! (175 test cases x 6 test configurations per test case = 1,050 test points) We really only needed one test point per test case, and the last thing I want testers doing is opening every single test and editing the configuration. Hello carpal tunnel! And I could certainly write some PowerShell to fix it too, but heck even that would take a decent time to write, test in a sandbox, run in production, etc. I figured there HAD to be a way we could quickly fix this manually. There were a LOT of test cases but only a few suites that they were all contained in. I’ll use my own test plan as an example of the steps performed to protect the innocent Smile

Here is a test plan that I am going to use as an example. And notice I am in the desktop client (against TFS 2013.4 specifically), there is not an easy way to do this in the web tools that I am aware of. I have a number of test cases with multiple configurations, and let’s say in this case I really just need a single configuration across all test cases for this plan.

image

You can certainly just open each test case and select the appropriate configurations at the test CASE level, but imagine a suite with 100 test cases, that’s a LOT of clicks.

image

Of course we can also do this at the SUITE level, and not everyone knows this is even an option so I’ll call it out just in case:

image

image

So certainly saves you from opening each test case before you can select the configuration, but again, if there are 100 test cases in this suite that is STILL a lot of clicks.

Well, did you know you could use CTRL or SHIFT to highlight multiple, or even all test cases in this view? You do now.

image

At this point, the assumption is that you want all highlighted items to end up with the same configuration.  If you need to change 100 test cases in a suite to different combinations of configurations, well, I can’t really help you.  But if you need to set them all to the same value just highlight all of the relevant ones, click in the last column, and select the configurations you want to set them all to.  If it happens that you need them all back to the plan default, just hit Reset. BOOM!

 

Hope that saves you some aggravation down the road.  Especially if you are not in the position to write PowerShell, as many MTM users are not..

Tags:

ALM | Application Lifecycle Management | MTM | Microsoft Test Manager | Microsoft Test Professional | Quality Assurance | SDLC | TFS 2013 | TFS | Team Foundation Server | Test Case Management | Testing | Visual Studio

Powered by BlogEngine.NET 2.7.0.0
Original Design by Laptop Geek, Adapted by onesoft