Specify output directory within the test case

Hi

When running test I’m using the command line options “–outputdir” to redirect the output files to a specific directory with a timestamp file name.

Is there an option to specify this within the .robot file? Instead of using the cmd line options at every run?

Thanks in advance
Niks

Hi Nikita,

There is no really “direct” way to do this in a test case or a suite. This might be linked to the fact that output are initially created based on ${execdir} path, that can vary.

Note it’s at least possible for screenshots through Set Screenshot Directory for example.
Then for log, report and xml file a solution could be to use a .bat/shell that build the required date/name strings, create folder with mkdir, pass them as argument to the robot command then.
It would just need to run it, instead of recalling last command line and modifying values manually

You could consider also to pass - - test or - - suite values.

Regards