How to import Test Cases and Test Steps from a CSV file
Place steps in Description field in Test Cases
About this task
The first option uses the Description field of Test Cases. This field allows to store Steps and Success details as well as other relevant data. Download the CSV file template, fill it with your values and run the import. At this point there is no need to deal with individual Test Step entities at all.
The first option uses the Description field of Test Cases. This field allows to store Steps and Success details as well as other relevant data. Download the CSV file template, fill it with your values and run the import. At this point there is no need to deal with individual Test Step entities at all.
Procedure
Insert detailed Test Steps for Test Cases
About this task
The second option is to break down Steps and Success details of the Test Case into separate Test Steps entities. This method requires two steps to complete the import instead of one. First, create Test Cases through importing them from a list (download CSV file template), and then import detailed Test Steps for each Test Case from another list (download CSV file template).
Step 1. Test Cases Pre-Import
Procedure
Step 2. Detailed Test Steps Import
Procedure
Import Test Cases and detailed Test Steps from single CSV file
About this task
It is possible to use a common CSV file for both Test Cases and Test Steps. Download CSV file
template, fill it with your values and run the import.
Procedure
Import Test Cases into Test Plans, User Stories and other assignable entities
About this task
It is possible to import Test Cases into existing Test Plans. It is also possible to import Test
Cases for assignable entities (including User Stories, Features, Bugs). The key principle here is
that test cases are not linked to work items directly. Instead, every work item may have its
associated test plan which keeps collection of test cases. And new test cases must be imported to
this collection rather than to the work item itself.
Procedure
- In Targetprocess, create a test plan for an entity or open existing test plan.
- Copy its numeric ID
- In your CSV file with list of test cases, add Test Plan column.
- For each test case paste the numeric ID of target parent test plan.
- Save your CSV file.
- When doing import, map Test Plan column properly.
- Imported test cases become linked to proper test plans. We will illustrate this flow for User Story test cases. The same actions can be applied to Features, Bugs and other assignable items as well.
Create Test Plan for an entity
About this task
In User Story detailed view, open Tests tab. Create new Test Plan for the User Story.
New Test Plan for the User Story is created. Initially it is empty.
Find numeric ID of Test Plan of an entity
From detailed view for a User Story, open detailed view for Test Plan. You will find its numeric
ID there.
Prepare CSV file with list of Test Cases
Copy this numeric ID and paste it into "Test Plan" column of Test Cases list. Save your CSV
file.
Import CSV file with list of Test Cases
Perform import of test cases file using wizard as shown below (Settings → Import)
Imported test cases appear in Tests tab for user story and in its test plan as well.
It is no longer possible to map User Story column during import of Test Cases. This won't work since v3.7.0 when Entity Test Plan feature has been introduced.
Import Test Case into multiple Test Plans
About this task
In the CSV file, the Test Plan column for every test case can contain only a single numeric ID of target parent test plan.
However, it is possible to update existing test cases and add links to test plans. It is done one addition operation per row. Within CSV file you pass rows that contains numeric ID of existing test case, link (numeric ID or name) to its parent Project and link (numeric ID) to the test plan you would like to include this test case to.
For this purpose please create in your CSV file and map three columns:
- Project → Project
- Test Case ID → ID
- Test Plan → Test Plan
Newly added links do not overwrite existing connections between test cases and test plans.