As a user, I can attach files to Tests and to Test steps, whenever using the Test Case Importer.
For this, a column mapped to "Attachments" or "Step Attachments" should be used.
In the CSV column, file(s) are refered by URL.
The attachment may be referred by name (in this case the file:// protocol is assumed), by "file://" or "http(s)://".
Multiple files may be specified within one CSV column; for this, the attachments must be delimited by space.
|TCID||Test Summary||Component||Step||Data||Result||Step Attachments||Attachments|
|1||Test sum of two numbers||UI||press 1||1||somefile.gif||calculator.png file:///photo/awesome_calc.png|
|1||press key||+||+||file1.png http://www.example.com/file2.gif|
|2||Simple Test Case||Core||press ON||calculator turned on||on.jpg off.jpg|
- inspired on JIRA CSV importer (see https://confluence.atlassian.com/adminjiraserver073/importing-data-from-csv-861253680.html)
- You can also use the FILE protocol to access files in the import/attachments subdirectory of your JIRA home directory.
- the mappings to "Attachments" or to "Step Attachments" can only be used once; thus, as an example, if you several step attachments then you should enumerate them in one column mapped to "Step Attachments"
- attachments to the Test issue should be added in the row corresponding to the first step