简体   繁体   English

如何将具有共享步骤的测试用例从 TFS 迁移到 Azure DevOps?

[英]How can I migrate test cases with shared steps from TFS to Azure DevOps?

How can I migrate test cases with shared steps and shared parameters from TFS to Azure DevOps?如何将具有共享步骤和共享参数的测试用例从 TFS 迁移到 Azure DevOps? I could migrate test cases but they didn't include the shared steps and shared parameters.我可以迁移测试用例,但它们不包括共享步骤和共享参数。

Found this GitHub thread: https://github.com/nkdAgility/azure-devops-migration-tools/issues/518 , which sharing one workaround as following.找到了这个 GitHub 线程: https://github.com/nkdAgility/azure-devops-migration-tools/issues/518 ,它共享一个解决方法如下。

  • import all work items except shared steps, shared parameter, test plans and test suites.导入除共享步骤、共享参数、测试计划和测试套件之外的所有工作项。 (Custom reference) (自定义参考)
  • run a script on test cases to mirror the custom reference field to integration build在测试用例上运行脚本以将自定义参考字段镜像到集成构建
  • import shared steps, shared parameter and test cases(integration build)导入共享步骤、共享参数和测试用例(集成构建)
  • finally, import test suites using the test migration method.最后,使用测试迁移方法导入测试套件。

User this tool: https://marketplace.visualstudio.com/items?itemName=nkdagility.vsts-sync-migration使用此工具: https://marketplace.visualstudio.com/items?itemName=nkdagility.vsts-sync-migration

In the configuration.json file update below code, it will migrate test cases along with Shared steps and shared parameters在下面代码的configuration.json文件更新中,它将迁移测试用例以及共享步骤和共享参数

"WIQLQueryBit": "AND [Microsoft.VSTS.Common.ClosedDate] = '' AND [System.WorkItemType] IN ('Test Case','Test Suite','Shared Steps','Shared Parameter')", "WIQLQueryBit": "AND [Microsoft.VSTS.Common.ClosedDate] = '' AND [System.WorkItemType] IN ('Test Case','Test Suite','Shared Steps','Shared Parameter')",

There are different work item types: Test case , Shared Steps and Shared Parameter .有不同的工作项类型:测试用例共享步骤共享参数 You could export them to CSV files separately, and then import them to Azure DevOps projects.您可以将它们单独导出到 CSV 文件,然后将它们导入到 Azure DevOps 项目中。 在此处输入图像描述 update>> If your test case adds shared steps, export it to csv from a query containing steps column, you will find that steps contains section like <compref id="2" ref="734"> , the 734 is the id of shared steps in this project.更新>>如果您的测试用例添加了共享步骤,将其从包含步骤列的查询中导出到 csv,您会发现步骤包含类似<compref id="2" ref="734">的部分,其中 734 是此项目中的共享步骤。

Therefore, if you import shared steps to Azure DevOps project, the shared steps will own a new id, you need to edit the csv file to update the id of shared steps, and then import it to Azure DevOps project can find this previously imported shared steps. Therefore, if you import shared steps to Azure DevOps project, the shared steps will own a new id, you need to edit the csv file to update the id of shared steps, and then import it to Azure DevOps project can find this previously imported shared脚步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 Azure DevOps 服务迁移到 Azure DevOps Server - How can i Migrate from Azure DevOps services to Azure DevOps Server 如何导出测试用例,包括从 excel 到 Azure 的步骤? - How to export test cases including steps from excel to Azure? 如何将单个团队项目从 TFS 2012 迁移到 Azure DevOps 服务? - How to Migrate a single Team project from TFS 2012 to Azure DevOps Services? 如何将 2 个团队 collections 从 tfs 迁移到 azure devops 服务中的一个组织? - How to migrate 2 team collections from tfs to one organization in azure devops services? 如何删除 Azure DevOps 中的共享步骤? - How do you delete shared steps in Azure DevOps? 如何下载 Azure DevOps 中的测试用例的测试步骤附件 - How Do I Download Test Step Attachments for Test Cases in Azure DevOps 在测试人员测试和批准之前,如何在 azure devOps 中锁定测试用例的编辑 - how to lock test cases from editing in azure devOps until tester tested and approved 在 Azure-Devops 订购测试用例 - Ordering Test Cases in Azure-Devops Azure DevOps (TFS) 仪表板测试开始日期 - Azure DevOps (TFS) dashboard test start date 仅将具有历史记录的 TFS 存储库的一部分迁移到 Git azure devops - Migrate only part of TFS repository with history to Git azure devops
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM