title: testng.xml not running class
body: <p>I am right clicking on my testng.xml and running as a testng Suite, but the class inside it doesn't run.</p>
  
  <p>This is my xml file:</p>
  
  <pre><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="mytestpack" &gt;
  
   &lt;test name="Firefox Test"&gt;
  
   &lt;parameter name="browser" value="Firefox"/&gt; 
  
   &lt;classes&gt;
  
   &lt;class name="mytestpack.MyTestClass" /&gt;
  
   &lt;/classes&gt;
  
   &lt;/test&gt;
  
  
  &lt;/suite&gt;
  </code></pre>
  
  <p>This is the MyTestClass code:</p>
  
  <pre><code>package testing_pack;
  
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  import org.testng.annotations.AfterMethod;
  import org.testng.annotations.AfterTest;
  import org.testng.annotations.BeforeMethod;
  import org.testng.annotations.BeforeTest;
  import org.testng.annotations.Parameters;
  import org.testng.annotations.Test;
  
  public class MyTestClass {
  
      private static WebDriver driver;
  
      @Parameters({"browser"})
      @BeforeTest
      public void setup(String browser) {
  
           System.out.println(browser);
  
                // If the browser is Firefox, then do this
  
                if(browser.equalsIgnoreCase("firefox")) {
  
                    driver = new FirefoxDriver();
  
                // If browser is IE, then do this   
  
                }
           }
  
  
      @Test
      public static void test() {
  
            driver.get("http://only-testing-blog.blogspot.in");
            String i = driver.getCurrentUrl();
            System.out.println(i);
  
      }
      @AfterTest
      public void teardown() {
          driver.close();
      }
      }
  </code></pre>
  
  <p>The class runs perfectly fine on it's own. Don't understand why testng isn't running it. It doesn't throw any errors it just displays:</p>
  
  <pre><code>[TestNG] Running:
    C:\Users\Laptops\Desktop\eclipse\workspace\testproject\src\mytestpack\testng.xml
  
  
  ===============================================
  mytestpack
  Total tests run: 0, Failures: 0, Skips: 0
  ===============================================
  </code></pre>
  
  <p>Thanks</p>