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

Tuesday, August 16, 2011
Avatar
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
Avatar
re: DaisyDai Tuesday, August 16, 2011
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
Avatar
re: mtha 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.

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, August 16, 2011
  • Last Reply: Wednesday, August 17, 2011
  • Replies: 2
  • Views: 3303