How to create Group of Groups in TestNG?
● These groups are called metagroups.
● Example: you might want to define a group
all that includes smokeTest and FunctionalTest.
Let’s modify our testing.xmlfile:
<groups>
<define name=”all”>
<include name =”smoke Test”/>
<include name = “functionalTest”/>
</define>
<run>
<include name = “all”/>
</run>
</groups>