I know you can define in your xml which groups that you want to run, but I want to know whether it is possible to say run these methods if they are both member of groups A &
If that doesn't work, you can "hack" around it by having 3 test methods in your class (with preserve order turned on) and have the first 2 tests set a flag on a condition, and then then 3rd test only runs if both conditions are set.