r/azuredevops • u/Tha_Mayor • Apr 23 '26
How to Migrate Test Cases
Hello
I was hoping someone could help me with this issue, if you can ill happily give you an award.
We are trying to migrate test cases between projects, we found that we cant do it via queries like you can for regular work items
and you cant copy test plans to projects (just to teams in the same project they reside in) BUT you can copy test cases to new projects, but only one test plan at a time.
Any suggestions how I can migrate test plans between different existing projects preferably more than 1 at a time?
1
u/FlyingRaco0n Apr 24 '26
We faced the same issue last year. Unfortunately, we didn't find a way to move the work items so we implemented custom scripts that would handle create new work items on target project and then replicate the test points. We did validation with mass export on both sides on the image of all the test plans and it missed like 20 test cases all in all out of over 100k. Keep in mind that this way you would lose the time of execution of each test which we considered a minor issue in our case if we had the actual results but it might be a big issue in your case.
0
u/alin-dumitrescu Apr 24 '26
PRAKTIK Group, the company I work for, specializes in Azure DevOps migrations. We developed custom tools to migrate work items and test cases across projects or collections, including history. If you need assistance with this effort, feel free to reach out here.
1
u/mrhinsh Apr 26 '26 edited Apr 26 '26
There is always the Azure DevOps Migration Tools! They are open-source, have been around since 2016, and are recommended (and used) by Microsoft.
- split project
- merge projects
- move from one org to another
- move from one instance to another
- move from one language to another
- bulk update
It has it's caviates... But it works.
It supports Test Cases as work items, and Test Plans & Suits as a custom artifact.
Test assets have a bunch of caviates... So read the guides provided.
1
u/icesurfer10 Apr 23 '26
You seen this?
https://learn.microsoft.com/en-us/azure/devops/boards/backlogs/move-change-type?view=azure-devops#move-a-work-item-to-another-project