1.

How To Create Group Of Groups In Testng?

Answer»

Groups can also INCLUDE other groups. These groups are called MetaGroups. For example, you might want to define a GROUP all that includes smokeTest and functionalTest.

LET’s modify our testng.xml FILE as FOLLOWS:

  1. <groups>
  2. <define name="all">
  3.  <include name="smokeTest"/>
  4.  <include name="functionalTest"/>
  5. </define>
  6. <run>
  7. <include name="all" />
  8. </run>
  9. </groups>

Groups can also include other groups. These groups are called MetaGroups. For example, you might want to define a group all that includes smokeTest and functionalTest.

Let’s modify our testng.xml file as follows:



Discussion

No Comment Found