如何将测试用例从 Visual Studio Team Services 导出和导入到 MS Excel

How to Export and Import Test Cases from Visual Studio Team Services into MS Excel

我需要将基于 Excel 的测试用例导入 VSTS 并将测试用例从 VSTS 导出到 MS Excel。 VSTS(不是 TFS)

您可以使用以下方式将测试用例从 VSTS 导出到 MS excel:

  1. 为要导出的测试用例定义查询。为所有测试用例创建新查询 -> 指定 Work Item Type = Test case

  2. 在 MS excel. MS excel 中连接 -> 团队功能区 -> 新列表 -> 服务器 -> 添加 - > 输入 VSTS URL(https://account.visualstudio.com) -> 确定 -> 关闭 -> select 一个团队项目 -> 连接 -> 选择查询列表 -> select 你刚才的查询已创建 -> 确定。

现在所有的测试用例都导出到 MS excel。您可以单击选择列来添加或删除显示的列。

导入到 VSTS: 您可以在MSexcel中添加新的WIT,然后点击发布将新创建的WIT导入VSTS。