Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

TFS Test Case Export to TestRail XML Import


#1

We are migrating from Microsoft Test Manager (MTM) to TestRail. I looked at the TestRail migration tools and scripts and I didn’t see an easy way to get my test cases out of MTM and into TestRail. I already wrote a program to extract MTM test cases to an Excel spreadsheet so I figured I could modify it to write it out in the XML format that TestRail could import. It works great. If anyone is interested in this let me know. I can give you the code.


#2

Hey John,

That’s really great and we would be very interested in taking a look at the code. I’m sure this would be very helpful for a lot of teams. Would you be able to put the code somewhere on GitHub? You could alternatively share the code with us by emailing it to contact@gurock.com.

Thanks!


#3

I hope I did it right.


#4

Hey John,

Thanks for uploading the code to Github and sharing the project. That’s very useful and I’m sure various users will review/try this in the future. We will make sure to include this in an upcoming third-party project/reference list as well.

Thanks!


#5

I’ve updated the code to include Product Backlog Item references. If the test case has references to Product Backlog Items the ID numbers will be in the references field.


#6

Thanks again for sharing this, John!

Regards,
Tobias


#7

Thank you guys very much indeed. I’m not a Dev and new to this. Would you mind giving me some pointers on how to make this run to export from TFS?


#8

You will need Visual Studio to compile the code and run it.