Importing TFS test cases to TA
Test cases residing on TFS may be imported into TestArchitect, establishing one-to-one mappings between the two sets of test cases.
Ensure that you have already taken the following steps:
- Registered the TFS server with TestArchitect. (Learn more.)
- Mapped the TestArchitect project containing the test cases of interest to a TFS project. (Learn more.)
To import TFS test cases into TestArchitect:
In TestArchitect, check out the test module into which you want to import TFS test cases.
Perform either of the following:
- Right-click the target test module in the TestArchitect explorer tree. On the context menu, select External Tool > Visual Studio > Import from Team Foundation Server.
- Right-click the TestArchitect test editor of the target test module. On the context menu, select External Tool > Visual Studio > Import from Team Foundation Server.
In the Import from Team Foundation Server dialog box, select the TFS test case you want to import into TestArchitect.
Select the preferred options:
Test Case(s): This check box must be selected.
All Contents: Import all contents of the TFS test case into TestArchitect test case.
Test Steps Only: Only import all steps of the TFS test case into the TestArchitect test case. The imported test steps will not be displayed in the test editor, but the Steps tab of the test case.
Scan Project for Existing Test Cases/Modules: if selected, the whole TestArchitect project will be scanned for test cases that already exist. Otherwise, the selected test node will be scanned.Note:The Scan Project for Existing Test Cases/Modules function applies to Test Steps Only
Click the OK button.
Only if you have chose the Test Steps Only option in the previous step, does the Confirm Overwriting dialog box appear, showing the list of test cases/ test modules that already exists in TestArchitect. Select the check boxes for the TestArchitect test cases/ test modules that you want to overwrite with the TFS test cases. Click the OK button.Note:The Copy to Clipboard button is used to copy the list of existing test cases to the clipboard.
An information dialog box will appear stating The importing process completed successfully if the upload was successful. Click the OK button.
TestArchitect creates a corresponding test case with the following attributes added automatically:
The TFS steps are imported as comments in the test module, which may be viewed in the TestArchitect test editor.
TestArchitect maps each TFS test ID to the Source field of the corresponding TestArchitect test case. The Source number can be found on the Information tab of the test case.