<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Programmatically attach file to test run (QTP) (Thread)</title><description>&#xD;
&#xD;
&#xD;
Does anyone have example of code for attaching a file to the current test run?  I would like to include an attachment to an automated QTP test each time it executes from remotelaunch.</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/868.aspx</link><item><guid isPermaLink="false">threadId=868</guid><author>Robert C Mehler (robert.mehler@faro.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">uft</category><title>Programmatically attach file to test run (QTP)</title><description>&#xD;
&#xD;
&#xD;
Does anyone have example of code for attaching a file to the current test run?  I would like to include an attachment to an automated QTP test each time it executes from remotelaunch.</description><pubDate>Tue, 25 Mar 2014 15:51:16 -0400</pubDate><a10:updated>2024-08-16T17:59:55-04:00</a10:updated><link>/Support/Forum/remotelaunch/issues-questions/868.aspx</link></item><item><guid isPermaLink="false">messageId=1583</guid><author>Jim R (donotreply5@kronodesk.net)</author><title>&#xD;
Hi Robert  Most likely you'd need us to give you the source code to the QTP plugin, that would be </title><description>&#xD;
Hi Robert  Most likely you'd need us to give you the source code to the QTP plugin, that would be the easiest way. If you send a request to support@inflectra.com or log a help desk ticket on our website, we can provide it for you.  Regards  Jim &#xD;
&#xD;
</description><pubDate>Mon, 31 Mar 2014 15:38:10 -0400</pubDate><a10:updated>2014-03-31T15:38:10-04:00</a10:updated><link>/Support/Forum/remotelaunch/issues-questions/868.aspx#reply1583</link></item><item><guid isPermaLink="false">messageId=1591</guid><author>Robert C Mehler (robert.mehler@faro.com)</author><title> &#xD;
&#xD;
&#xD;
I can include code below in a QTP test to check for a Quality Center connection and attach a </title><description> &#xD;
&#xD;
&#xD;
I can include code below in a QTP test to check for a Quality Center connection and attach a file to the current executed run.  Generally I write to a log during a test run and upload to Quality Center at the end of the run.  I may want to use similar code to attach a screenshot or other data that is otherwise lost.  Is there similar code I can use in a QTP script to attach data to the test run in SpiraTeam?  var_connection = QCUtil.IsConnected If var_connection = True Then  If QCUtil.CurrentTestSetTest is Nothing then    Exit Function  Else    Set CurrentRunObj = QCUtil.CurrentRun.Attachments   Set AttcObj = CurrentRunObj.AddItem(Null)   AttcObj.FileName = Log_File   AttcObj.Type = 1   AttcObj.Post   AttcObj.Refresh    Set fso = CreateObject("Scripting.FileSystemObject")   Set ResultFile = fso.GetFile(Log_File)   ResultFile.Delete  End If  End If </description><pubDate>Thu, 03 Apr 2014 15:17:14 -0400</pubDate><a10:updated>2014-04-03T15:17:14-04:00</a10:updated><link>/Support/Forum/remotelaunch/issues-questions/868.aspx#reply1591</link></item><item><guid isPermaLink="false">messageId=3239</guid><author>Evgeny Vaneev (evaneev@hotmail.com)</author><title> Does anybody know how to fix the following problem with UFT 12.54 and ALM 12.50?  QCUtil.CurrentTes</title><description> Does anybody know how to fix the following problem with UFT 12.54 and ALM 12.50?  QCUtil.CurrentTestSetTest is Nothing  AND  QCUtil.CurrentRun. Attachments  ----------------------------------&gt; Err.Number = 424  ############################################################  Probably it needs to install an additional patch or addin    </description><pubDate>Wed, 28 Feb 2018 07:58:55 -0500</pubDate><a10:updated>2018-02-28T07:58:55-05:00</a10:updated><link>/Support/Forum/remotelaunch/issues-questions/868.aspx#reply3239</link></item></channel></rss>