fiuba08 / robotframework

Automatically exported from code.google.com/p/robotframework
Apache License 2.0
0 stars 0 forks source link

Rebot --rerunmerge does not update statistics info #1713

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Robot Framework v2.8.4
python 2.7.5
darwin 13.1.0 (OSX 10.9.2)

Hello,
When using --rerunfailed and --rerunmerge as described in the canonical example 
in the documentation, after rebot --rerunmerge, I don't see the statistics in 
my merged xml file updated to reflect the new merged results.

Example
- Run some tests in a suite, 1 fails (in this case it's marked noncritical, in 
case that is relevant)
- Rerun that 1 failure, it passes
- Merge the two result xml files.

Result:
The failed test result has been correctly overwritten with the new passing 
status, however all three of the Statistics sections (Total/Suite/Tag) still 
show the test run having 1 non-critical failure.

Original issue reported on code.google.com by stealthm...@gmail.com on 21 May 2014 at 5:24

GoogleCodeExporter commented 9 years ago
I tried reproducing this but statistics were updated as expected. Could you try 
running your example again? If it still fails, could you create a very simple 
example and attach it here with instructions how to reproduce the problem with 
it?

Original comment by pekka.klarck on 27 May 2014 at 8:17

GoogleCodeExporter commented 9 years ago
Looking at this again, I was assuming that when doing rebot -R run.xml 
rerun.xml, run.xml would be overwritten with the merged results, but that 
appears to not be the case, presumably by design?  However, it looks like I can 
just add a -o merge.xml to get a new merged results file, which solves my issue 
for making this work with the Jenkins plugin.  So, I believe this can be 
resolved, sorry for the trouble.

Original comment by stealthm...@gmail.com on 27 May 2014 at 9:57

GoogleCodeExporter commented 9 years ago
Yeah, you need to use --output option to get a new xml output.

Original comment by pekka.klarck on 6 Jun 2014 at 7:08