<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Remote Launch SDK - is it possible to return test run Attachments inside AutomatedTestRun4 class (Thread)</title><description>&#xD;
Hi,&#xD;
&#xD;
    I'm using SpiraSDK, namely the part of AutomationEngine to make my own plugin for RemoteLaunch. So far I was quite successful.     Although I'd like to return some attachments of testrun to Spira. However there was no example in SDK (except the one for screenshots) I tried to use .AttachedDocuments class hoping that SPIRA server will poll the data out once the test run finishes, similar as it is for .TestRunSteps.     The point is, one can not known which of AutomatedTest4 members are supposed to be used as In or Out for the purpose of StartExecutin() method. Is it possible to use  .AttachedDocuments to transfer files from Remote launch plugin back to Spira? This makes me sence.         See the example code I use:             var attachment = new AttachedDocument();    byte[] data = null;    attachment.BinaryData = data;    attachment.FilenameOrUrl = filePath;    attachment.ProjectAttachmentFolderId = 147;    attachment.ProjectAttachmentTypeId = 21;    attachment.CurrentVersion = "1.0";    attachment.EditedDate = DateTime.Now;    attachment.UploadDate= DateTime.Now;    attachment.TestCaseId = automatedTestRun.TestCaseId;    attachment.Type = AttachedDocument.AttachmentType.File;    automatedTestRun.AttachedDocuments.Add(attachment);   </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/remotelaunch/issues-questions/1563.aspx</link><item><guid isPermaLink="false">threadId=1563</guid><author>Josef Vopicka (josef.vopicka@siemens.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">remote launch sdk </category><title>Remote Launch SDK - is it possible to return test run Attachments inside AutomatedTestRun4 class</title><description>&#xD;
Hi,&#xD;
&#xD;
    I'm using SpiraSDK, namely the part of AutomationEngine to make my own plugin for RemoteLaunch. So far I was quite successful.     Although I'd like to return some attachments of testrun to Spira. However there was no example in SDK (except the one for screenshots) I tried to use .AttachedDocuments class hoping that SPIRA server will poll the data out once the test run finishes, similar as it is for .TestRunSteps.     The point is, one can not known which of AutomatedTest4 members are supposed to be used as In or Out for the purpose of StartExecutin() method. Is it possible to use  .AttachedDocuments to transfer files from Remote launch plugin back to Spira? This makes me sence.         See the example code I use:             var attachment = new AttachedDocument();    byte[] data = null;    attachment.BinaryData = data;    attachment.FilenameOrUrl = filePath;    attachment.ProjectAttachmentFolderId = 147;    attachment.ProjectAttachmentTypeId = 21;    attachment.CurrentVersion = "1.0";    attachment.EditedDate = DateTime.Now;    attachment.UploadDate= DateTime.Now;    attachment.TestCaseId = automatedTestRun.TestCaseId;    attachment.Type = AttachedDocument.AttachmentType.File;    automatedTestRun.AttachedDocuments.Add(attachment);   </description><pubDate>Wed, 09 Nov 2016 10:01:55 -0500</pubDate><a10:updated>2016-11-13T13:55:44-05:00</a10:updated><link>/Support/Forum/remotelaunch/issues-questions/1563.aspx</link></item><item><guid isPermaLink="false">messageId=2811</guid><author>Jim R (donotreply5@kronodesk.net)</author><title>&#xD;
 Hi Josef     I'm glad that you've been able to create a plugin for RemoteLaunch, that is great.  </title><description>&#xD;
 Hi Josef     I'm glad that you've been able to create a plugin for RemoteLaunch, that is great.     I have checked with our development team and the  .AttachedDocuments  class is only used to provide documents/files TO the executing test (i.e. from the SpiraTest test case), it is not used to get documents FROM the executing test. Those documents should be sent back using the  .Screenshots  collection instead. Despite its name, it's able to attach any kind of file/document, not just screenshots and images. Sorry for any confusion!     Regards  Jim &#xD;
&#xD;
</description><pubDate>Sun, 13 Nov 2016 13:55:44 -0500</pubDate><a10:updated>2016-11-13T13:55:44-05:00</a10:updated><link>/Support/Forum/remotelaunch/issues-questions/1563.aspx#reply2811</link></item></channel></rss>