title: @Before Suite and @BeforeTest methods are not called if groups are executed in TestNG
body: <p>Below is my XML file and Demo Class. Precondition() method will run before demo1() method and postCondition() method will run after demo1() method. Same process is for demo2(). But when i run the code, BeforeSuite and BeforeTest Methods are not Called. Why.? How to call them ?</p>
  
  <pre><code>Output :           
  Before Method is executing                                                       
  DEMO -1   
  After Method is executing  
  Before Method is executing  
  DEMO 2  
  After Method is executing
  </code></pre>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"&gt;
  &lt;suite name="Suite"&gt;
      &lt;test name="Test"&gt;
          &lt;groups&gt;
              &lt;run&gt;
                  &lt;include name = "Hey"&gt;&lt;/include&gt;
              &lt;/run&gt;
          &lt;/groups&gt;
          &lt;classes&gt;
              &lt;class name="practicepackage.Demo"/&gt;
          &lt;/classes&gt;
      &lt;/test&gt; &lt;!-- Test --&gt;
  &lt;/suite&gt; &lt;!-- Suite --&gt;  
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>package practicepackage;
  
  import org.testng.annotations.AfterMethod;
  import org.testng.annotations.BeforeMethod;
  import org.testng.annotations.BeforeSuite;
  import org.testng.annotations.BeforeTest;
  import org.testng.annotations.Test;
  
  public class Demo {
  
      @BeforeSuite
      public void beforeSuite(){
          System.out.println("Before Suite method is being launched");
      }
  
      @BeforeTest
      public void beforeTest(){
          System.out.println("Before Test Method is being luanched");
      }
  
      @BeforeMethod(groups = {"Hey"})
      public void PreCondition(){
          System.out.println("Before Method is executing");
      }
  
      @Test (groups = {"Hey"})
      public void demo1(){
          System.out.println("DEMO -1 ");
      }
  
      @Test(groups = {"Hey"})
      public void demo2(){
          System.out.println("DEMO 2");
      }
  
      @AfterMethod(groups = {"Hey"})
      public void postCondition(){
          System.out.println("After Method is executing");
      }
  }
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"&gt;
  &lt;suite name="Suite"&gt;
      &lt;test name="Test"&gt;
          &lt;groups&gt;
              &lt;run&gt;
                  &lt;include name = "Hey"&gt;&lt;/include&gt;
              &lt;/run&gt;
          &lt;/groups&gt;
          &lt;classes&gt;
              &lt;class name="practicepackage.Demo"/&gt;
          &lt;/classes&gt;
      &lt;/test&gt; &lt;!-- Test --&gt;
  &lt;/suite&gt; &lt;!-- Suite --&gt;
  </code></pre>