How to import test cases from excel to VSTS

梦想的初衷 提交于 2020-06-26 04:08:23

问题


I have some (in fact a lot of) test cases which are currently in excel. Now I need to migrate those to VSTS/Azure DevOps. Can someone recommend me a good way to do that.

Any help is highly appreciated.


回答1:


  • Install Team Foundation Server Office® Integration (Excel Add-In)
  • Open Excel and go to Team Tab and then click on New List
  • Connect to your TFS
  • Choose Input List then click OK
  • Click on choose columns so we get all the necessary ones for creating test cases
  • The Work Item item is set to "All Work Item Types", change this to "Test Case"
  • Click Add Required and you should have about 8 columns, then click ok
  • Now you should see a slightly different excel worksheet. -Change the work item type on the first line to "Test Case" and it should auto-populate the defaults



回答2:


I searched for almost an entire week before getting this to work and there were no answers online so, I thought I would share.

  1. Install the Test & Feedback plugin for Chrome. (*this may or may not be necessary but it worked for me and I have this installed)
  2. Navigate to the *old view of the Test Plan.
    • Note: To confirm you are in the 'old view', a blue link in the upper right hand side that says 'Switch to new view' will be displayed.
    • Note: When you hover over the test icon in the left navigation bar, choose the option "Test Plans" not "Test Plans*". The latter is the new view.
  3. Select the folder that contains the test cases on the left and wait for the Test Cases to populate in the pane on the right side.
  4. Click "Offline Test Execution" at the top of the pane above the Test Cases.
  5. Choose to export the entire Test Plan or entire suite of Test Cases, etc., and click 'Export'. Note: If you try to export the entire plan or several folders worth of test cases and the export fails, choose less test cases at a time to export.

Hope this helps.




回答3:


This is a manual way but maybe it will be useful for you. On IE or Edge. You can try the grid view on your test plan and just copy/past test cases:

  1. In test suite select creation of test cases with grid view:

  1. Copy/past you test cases and save edits:




回答4:


I was able to upload the test cases including the test steps using Microsoft Test Manager and which can be accessed through Azure devops.

If you guys have Microsoft Test Manager, please find the required information at the below link.

https://github.com/premboyapati/Test-Case-Migrator-Plus



来源:https://stackoverflow.com/questions/55136232/how-to-import-test-cases-from-excel-to-vsts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!