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

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -