--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.
The reason this happens is that tests to run are selected before the
actual test execution starts. Changes to tags while tests are run thus
have no effect on that.
I can understand that allowing tag changes done in suite setup to
affect execution would be useful in some cases. Unfortunately
implementing that would be very hard at the moment, but we plan to
refactor the execution logic anyway at some point and after that this
could be doable. So feel free to submit an enhancement request to the
tracker!
Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
One approach for fairly similar functionality is to fail the test at
the same time you change tags (add non-crititcal tag and fail).
I think this is the default way for handling situations were test
preconditions are not met.
Test is reported as non-critical failure -- but it will have (much)
less execution time.
Example:
pybot --noncritical non-critical .
*** Test Cases ***
Test some
[Tags] regression
[Setup] Check preconditions
Sleep 10
Log long test
*** Keywords ***
Check preconditions
${not ok} = Preconditions not OK
Run Keyword If ${not ok} Non Critical Fail 'Preconditions not met'
Non Critical Fail
[Arguments] ${message}
Add Tag non-critical
Fail ${message}
Cheers,
Mikko
2011/9/3 Joaquim P <jp.cai...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "robotframework-users" group.
> To post to this group, send email to robotframe...@googlegroups.com.
> To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.
>
>
--
Mikko Korpela
Very good point Mikko! Does this work for you Joaquim? You should at
least give it a try because it's unlikely that the support for
excluding tests dynamically is implemented in the near future.