| 90 | === Importing Test Cases from a CSV file into a Test Catalog === |
| 91 | |
| 92 | If you already have Test Cases defined elsewhere you can import them into the Test Manager. |
| 93 | While browsing a Test Catalog, click on "Import Test Cases" at the bottom of the page. The dialog box shown in the following figure will pop-up. |
| 94 | Browse for the CSV (comma-separated values) file containing your Test Cases, specify the value separator (default is the comma character) and click "Import". |
| 95 | |
| 96 | The CSV file must have the following format. |
| 97 | |
| 98 | The first row will have column names. Use lowercase identifiers, with no blanks, for them. |
| 99 | |
| 100 | The data must start from the second row. There must be at least the following '''required columns''': |
| 101 | * title |
| 102 | * description |
| 103 | |
| 104 | Any subsequent columns are optional, and will generate [wiki:TestManagerForTracPlugin#Customfields custom test case fields]. To fully appreciate custom fields, switch to the Test Catalog Tabular view. |
| 105 | |
| 106 | A sample CSV file may be the following: |
| 107 | {{{ |
| 108 | title,description,platform,greetings |
| 109 | First Test Case,This is the long description for the first test case,linux,bye bye |
| 110 | Second Test Case,This is the long description for the second test case,windows,ciao |
| 111 | Third Test Case,This is the long description for the third test case,macosx,hasta la vista |
| 112 | }}} |
| 113 | |
| 114 | [[BR]] |
| 115 | [[BR]] |
| 116 | [[Image(screen18.png)]] |
| 117 | [[BR]] |
| 118 | '''Import Test Cases dialog''' |
| 119 | [[BR]] |
| 120 | [[BR]] |
| 121 | |