Import test cases form

This popup form can be accessed via the CSV import iconimport icon at the bottom of the Test cases tab at the Project iconproject or Subproject iconsub-project view pages, as shown in Figure 1. import test case via tab

Figure 1 – Access via test cases tab

The import popup is shown in conjunction with each phase below, and can be used to import a number of test cases from a Comma Separated Values (CSV) file into the selected parent asset. Completing the test cases CSV import iconimport consists of a number of phases:

Phase 1 – Import file

import test cases form 1

Figure 2 – Import test cases form (1)

The first phase is to select file you want to import and some details about the file, using the browse option of the import file field. You can also set the delimiter used in the file, if the file includes a header row and test steps and whether you want Psoda to match the entries in the file with existing test cases and update those. Click the Next button to move to the next step.

Phase 2 – Mapping

import test cases form 2

Figure 3 – Import test cases form (2)

Phase 2 allows you to map or specify which columns from the import file should go into which fields of the new test cases. For example the Reference field allows you to select which column to import into the reference field. The Title field allows you to select the title column, and so on. If the column headers already match the field names then Psoda will automatically select those. If you do not want to import a particular column from the file the just select the “Do not import” option from the list. You will be given an opportunity in the next step to specify default values for any fields you do not want to import. NOTE: The reference field must be unique for every test case in your asset so you cannot choose not to import the reference. Select the Next button to move to the next step. If you have selected columns for all the fields then you will skip over the next phase (default values) and go straight to the last phase (results).

Phase 3 – Default values

Phase 3 allows you to set default values for any fields you chose not to import from the file. The fields may be the same as for creating a new test case, but the fields present in this phase are very much dependent on which options you selected in phase 2. If you have selected in phase 2 that the CSV file includes test steps, this phase will also include the test step fields such as the test step description and expected outcome. Click the Import test cases button to start importing the test cases.

Phase 4 – Results

Once the import is completed, click on the Next button to see the results. If there were any failures while importing a table will by shown listing all of the failures including the line where the failure occurred, descriptions of the failures and the first 20 characters of the line to make it easier to identify. If any test cases were successfully imported they will be listed in a table with links allowing you to easily view the new lessons. The Import test cases form will remember the options that you selected for next time that you want to import more test cases.