Mints Jain
Mints Jain

Reputation: 21

robot framework output and result file path & name configuration

I'm using robot framework with eclipse to test the scripts. Every time I run a test it overwrites old result and output file. How & what configuration must be done in eclipse that instead of overwriting the output & result file, it always generates a new output & result files?

This is achievable by command line but i want to know how it can be configured in eclipse

Upvotes: 0

Views: 6310

Answers (2)

Ben
Ben

Reputation: 1

if you want to configure it using eclipse.

  1. right click red.xml
  2. click run as configurations
  3. type in 'Additional Robotframework arguments' --timestampoutputs --log mylog.html --report NONE tests.robot

enter image description here

Upvotes: 0

Todor Minakov
Todor Minakov

Reputation: 20067

The names of the generated statistics files are controlled with these command line options:

  • --output, for the detailed xml file which default name is "output.xml",

  • --report, for the summary html file which default name is "report.html",

  • --log, for the detailed html file which default name is "log.html".

On top of that, there is an option -T or --timestamp, which when used will put a time stamp in the file's name, just before the extension.
With it the file will be called (as an example) "output-20080604-163225.xml" - which looks like precisely what you're looking for.

Upvotes: 2

Related Questions