Updates:
Status: Accepted
Labels: -Priority-Medium Priority-Low
Blockedon: 826
Comment #1 on issue 945 by pekka.klarck: Allow changing tags in suite setup
so test execution is influenced.
http://code.google.com/p/robotframework/issues/detail?id=945
Dynamically selecting test cases to run would be a useful feature but
unfortunately it's very hard to implement currently. At the moment the test
cases to run are selected before the actual execution starts and changing
this would be hard.
We are, however, already planning to refactor the whole test execution
logic (issue 826) to separate executable test cases and actual execution
better. After that change implementing this enhancement ought to be much
easier.
In the mean time, a good workaround is making the tests that you would like
to exclude non-critical and then failing them with a clear error message.
Mikko explained this approach, with an example, in the mail discussion
linked in the original description.
Another workaround is post-processing the produced XML output file so that,
for example, test cases with a certain tag or certain message are removed.
This can be done using Robot's internal modules [1] or just standard XML
modules. After processing the output file, logs and reports can be
generated with rebot.
[1]
http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html#executed-test-data