How to Export and Import Test Cases from Visual St

2020-06-30 06:25发布

问题:

I have a requirement to import the Excel Based Test Cases into VSTS and Export Test Cases from VSTS into MS Excel. VSTS(Not TFS)

回答1:

You can use below way to export test cases from VSTS to MS excel:

  1. Define a query for the test case you want to export. Create new query for all test case -> specify Work Item Type = Test case.

  2. Connect in MS excel. MS excel -> Team ribbon -> New List -> Servers -> add -> input VSTS URL(https://account.visualstudio.com) -> OK -> Close -> select a team project -> connect -> choose Query list -> select the query you just created -> OK.

Now all the test cases are export to MS excel. And you can click Choose Colums to add or remove displayed columns.

Import to VSTS: You can add new WIT in MS excel, and then click Publish to import new created WIT to VSTS.