Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 872 by [email protected]: Outputdir shall be timestamped
http://code.google.com/p/robotframework/issues/detail?id=872

When executing a test suite with pybot the report files are stored into the outputdir given as command line parameter. Currently we also are storing test case specific additional output into that directory.

For each test run it is convenient to have associated the reports generated to the additional output.

To avoid the files being overwritten outputdir shall be extended by the timestamp (similar to option --timestampoutputs):
<outputdir>/<timestamp>/report.html (etc...
<outputdir>/<timestamp>/additional_output/.....

I did not find a setting/option to adjust this.

Workarounds:

1) Use option timestampedoutputs and parse the timestamp from report file name to create a directory with the same name. Disadvantage is that pybot always shall be started with option timestampoutputs
<outputdir>/report_<timestamp>.html (etc...
<outputdir>/<timestamp>/additional_output/.....

Disadvantage:
 * is not completely resolving the problem
 * usage of timestampedoutputs (always)
 * diffing and copying reports and additional output is not as convenient

2) In a test library, reading the key "${OUTPUT_DIR}" from GLOBAL_VARIABLES and append a timestamped/indexed directory. Additionally modify the variables '${OUTPUT_FILE}', '${SUMMARY_FILE}', '${REPORT_FILE}', '${LOG_FILE}', ‘${DEBUG_FILE}’.

apply changes to GLOBAL_VARIABLES and to settings (instance from RobotSettings) that is internally used.


to come to an end:
The change requests can be solved as one of following solutions:
1) For workaround 2 the instance settings shall be accessible as global instance.

2) create new option to create a timestamped/indexed outputdir

3) automatically create a timestamped/indexed outputdir


Reply via email to