how to upload/download attachment of testcases by add-in/WS API

Tuesday, August 16, 2011 9:22:37 AM
For some test cases, need attachment. We can manually upload it to SpiraTeam. 

1. If use SpiraTeam MS-Office 2007/2010 Add-Ins, how to import/export the attachment?
I try to add a testcase with attachment, then use the excel add-in, set Artifact as Test Cases, click Import button, then the no any column related to the attachment
I also not sure whether it is possible to use the excel add-in to upload the attachment to SpiraTeam and how.

TestCase_Create and TestCase_RetrieveById, the attachment is just as int id in the RemoteTestCase Structure, and how to upload/download the attachment file from the id?

2 Replies
Wednesday, August 17, 2011 1:50:14 PM
Avatar
re: DaisyDai on Tuesday, August 16, 2011 9:22:37 AM
Hej Daisy, when you use the WS API, you must first convert the file to type Byte, then this file you can upload.  You use one method for text and a different for a graphic.
Wednesday, August 17, 2011 3:16:51 PM
Avatar
re: mtha on Wednesday, August 17, 2011
Daisy,

Also the SpiraTeam automationHost feature will not support how we do test automation.  Don't even invest time with it...have the test cases remote control your framework and basically replacing the CSV file data you currently use.
Statistics
  • Started: Tuesday, August 16, 2011 9:22:37 AM
  • Last Reply: Wednesday, August 17, 2011 3:16:51 PM
  • Replies: 2
  • Views: 1398