Migrating test cases from Hosted service to an on premise TFS server
Here are the steps to be followed to migrate test cases from the hosted service to an on-premise server :
TFSSecurity.exe /g+ "Team Foundation Service Accounts" n:USERNAME /server:SERVERNAME
On opening test cases which contain shared steps, you might notice that the shared steps don’t show up or that the test case links to an incorrect shared step. You can run the utility present here to fix this issue.
Usage : UpdateSharedSteps.exe <Project Collection> <Project>
Migrating action recordings needs to be done using this utility.
Usage : FixActionRecording <Hosted Service project collection url> <Hosted service project name> <Hosted service alt-credential user name> <Hosted service alt-credential password> <On-prem server project collection url> <On-prem server project name>
The utility downloads all action recording attachments from the hosted service and creates a dummy test plan, a test suite within that plan, adds the test cases which have an associated recording to this test suite, creates dummy test results and associates the action recordings with this test result . This is is required because all action recordings need to be associated with a test result as well. Thus a dummy test plan and some dummy test results would be created after running this tool.