You can use `rebot` to generate separate report and log with only the
critical tests. Depending did you originally use `--critical` or
`--noncritical` option, you should be able to use either
pybot --critical regression --log full_log.html --report
full_report --output full_output.xml tests.txt
rebot --include regression --log critical_log.html --report
critical_report.html full_output.xml
or
pybot --noncritical knownissue --log full_log.html --report
full_report --output full_output.xml tests.txt
rebot --exclude knownissue --log critical_log.html --report
critical_report.html full_output.xml
Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
Jussi pointed out that the original question said `failed critical
tests`. Creating a report containing only them isn't possible with
`rebot` alone. We had an issue about this kind support [1], but we
decided not to implement it. The reason was that it is possible to do
this with a custom tool using the internal APIs of the framework [2].
If there's interest, the issue [1] could be reopened.
[1] http://code.google.com/p/robotframework/issues/detail?id=127
[2] http://robotframework.googlecode.com/svn/tags/robotframework-2.5.4/doc/userguide/RobotFrameworkUserGuide.html#executed-test-data
Great.
> I looked through the issues for something related to this, but only looked
> at the open issues, I think, so I missed issue 127.
> I do think re-opening this is a good idea. Or at least re-issue the same
> idea (since RF has changed a bit since the original issue). A "PASS/FAIL"
> argument to rebot would be very useful in my opinion.
> The problem with using the internal APIs is that the criticality of a test
> case is not "correct" in the output.xml as noncritical tags are not taken
> into account.
> Hence I have to first pre-process the output.xml to remove all passed cases,
> and then post-process the new output with rebot, excluding the non-critical
> tags (or similarly but reversed).
> It's in no way impossible, but seems like a bit of an ugly workaround
> compared to doing it in one step in the "original" rebot-processing.
I reopened issue 127 and added a reference to this discussion.
Implementing support for pseudo-tags `PASS` and `FAIL` ought to be
relatively simple, and other ideas mentioned in that issue aren't
probably that useful. Are you Magnus interested in looking at how to
implement this?
[1] http://code.google.com/p/robotframework/issues/detail?id=127