Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I understand the end result you want is to have your output files in their custom folders. If this is your desire, it can be accomplished at runtime and you won't have to move them as part of your post processing. This will not work in RIDE, unfortunately, since the folder structure is created dynamically. I have two options for you.</p> <h2>Option 1: Use a script to kick off your tests</h2> <p>RIDE is awesome, but in my humble opinion, one shouldn't be using it to run ones tests, only to build and debug ones tests. Scripts are far more powerful and flexible.</p> <p>Assuming you have a test, test2.txt, you wish to run, the script you use to do this could be something like: </p> <pre><code>from time import gmtime, strftime import os #strftime returns string representations of a date-time tuple. #gmtime returns the date-time tuple representing greenwich mean time dts=strftime("%Y.%m.%d.%H.%M.%S", gmtime()) cmd="pybot -d Run%s test2"%(dts,) os.system(cmd) </code></pre> <p>As an aside, if you do intend to do post processing of your files using rebot, be aware you may not need to create intermediate log and report files. The output.xml files contain everything you need, so if you don't want to create superfluous files, use <code>--log NONE --report NONE</code></p> <h2>Option 2: Use a <a href="http://robotframework.googlecode.com/hg-history/2.0.3/doc/userguide/src/ExtendingRobotFramework/ListenerInterface.txt" rel="nofollow">listener</a> to do post processing</h2> <p>A listener is a program you write that responds to events (x_start, x_end, etc). The <code>close()</code> event is akin to the teardown function and is the last thing called. So, assuming you have a function <code>moveFiles()</code> you simply need to create a listener class (myListener), define the <code>close()</code> method to call your <code>moveFiles()</code> function, and alert your test that it should report to a listener with the argument <code>--listener myListener</code>. </p> <p>This option should be compatible with RIDE though I admit I have never tried to use listeners with the IDE.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload