<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: RemoteLaunch with Command-line Tools (Thread)</title><description>Hi, I'm trying to run a test script from Robot Framework using RemoteLaunch with command-line tools. I'm missing something in the Filename field because i'm getting the following error: "Parsing C:\Windows\system32\${filename}" failed.     Filename: C:\Python27\Scripts\pybot.bat | ${filename} |     What i'd like to do is run pybot.bat with the name of the file i uploaded to attachment (which is widgets.txt).  How can i achieve that? The file wasn't supposed to be downloaded and the name replaced in that ${filename} field?  Thanks </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/509.aspx</link><item><guid isPermaLink="false">threadId=509</guid><author>Critical Software (inflectra@criticalsoftware.com)</author><title>RemoteLaunch with Command-line Tools</title><description>Hi, I'm trying to run a test script from Robot Framework using RemoteLaunch with command-line tools. I'm missing something in the Filename field because i'm getting the following error: "Parsing C:\Windows\system32\${filename}" failed.     Filename: C:\Python27\Scripts\pybot.bat | ${filename} |     What i'd like to do is run pybot.bat with the name of the file i uploaded to attachment (which is widgets.txt).  How can i achieve that? The file wasn't supposed to be downloaded and the name replaced in that ${filename} field?  Thanks </description><pubDate>Tue, 19 Feb 2013 12:38:03 -0500</pubDate><a10:updated>2024-03-18T03:22:13-04:00</a10:updated><link>/Support/Forum/remotelaunch/issues-questions/509.aspx</link></item><item><guid isPermaLink="false">messageId=945</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> The ${filename} part only works when the test script is attached to the script in the text box part</title><description> The ${filename} part only works when the test script is attached to the script in the text box part of the Automation tab. It won't substitute it for general SpiraTest attachments.  I'd suggest logging a help desk ticket if you have any questions.  Regards  Adam </description><pubDate>Wed, 20 Feb 2013 17:43:29 -0500</pubDate><a10:updated>2013-02-20T17:43:29-05:00</a10:updated><link>/Support/Forum/remotelaunch/issues-questions/509.aspx#reply945</link></item><item><guid isPermaLink="false">messageId=6571</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> Hi Folks,  Good news, we have just released a Robot Framework integration:    https://github.com/In</title><description> Hi Folks,  Good news, we have just released a Robot Framework integration:    https://github.com/Inflectra/robot-framework    https://pypi.org/project/spira-robot-framework/    https://spiradoc.inflectra.com/Unit-Testing-Integration/Integrating-with-Robot-Framework/    Regards  David </description><pubDate>Tue, 02 Jan 2024 22:25:37 -0500</pubDate><a10:updated>2024-01-02T22:25:37-05:00</a10:updated><link>/Support/Forum/remotelaunch/issues-questions/509.aspx#reply6571</link></item><item><guid isPermaLink="false">messageId=6632</guid><author>Alan Watkins (tidyartistic@gmail.com)</author><title> Instead of directly specifying ${filename} in the Filename field, you need to pass the actual filen</title><description> Instead of directly specifying ${filename} in the Filename field, you need to pass the actual filename widgets.txt. Since you mentioned that you dont want the file to be downloaded, you cant directly reference it in the Filename field.  However, you can achieve this by passing the filename as an argument when running the Robot Framework test script. Heres an example command you can use in the command-line tools:  C:\Python27\Scripts\pybot.bat your_test_script.robot --variable filename:widgets.txt  In this command:   Replace your_test_script.robot with the actual filename of your Robot Framework test script.  --variable filename:widgets.txt sets a variable named filename with the value widgets.txt. This variable can then be accessed within your test script.   Within your Robot Framework test script, you can access the filename using the ${filename} variable, like this:  *** Settings *** Variables    widgets.txt  *** Test Cases *** Example Test     Log    The filename is: ${filename}     # Add your test steps here </description><pubDate>Mon, 18 Mar 2024 03:22:13 -0400</pubDate><a10:updated>2024-03-18T03:22:13-04:00</a10:updated><link>/Support/Forum/remotelaunch/issues-questions/509.aspx#reply6632</link></item></channel></rss>