testng - How to run only tests that contain both groupA and groupB (both. not either or) -
is possible in testng run tests contain 2 groups (groupa & groupb) not tests contain 1 or other
e.g:
- method1 has groupa & groupb
- method2 has groupb
- method3 has groupa
goal: want run tests contain both groupa & groupb not tests contain 1 or other. in case, want method1 executed.
is possible?
not "plain" xml config operates includes , excludes.
take @ tasty feature of using beanshell scripts inside <method-selector>
tag.
some usage example available @ http://blog.strug.de/tag/testng/
Comments
Post a Comment