Any idea on how can I execute 2 classes one after the other in 1 browser.
I tried to use "extends" in my 2nd class but I think there is something missing in my code. Any idea on how can I fix this? 

My 1st Class

```
package TestNg_Package;

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

 public class T3EmployeeMaintenance{
 public static WebDriver driver = new FirefoxDriver(); 

  @BeforeClass
  public void invokeBrowser() {

  //driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);
  driver.get("http://xxxxxxxxxxxxxx.net");
  driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
  driver.manage().window().maximize();
  }

  @Test(priority = 1)
  public void Login() {

   driver.findElement(By.name("login_id")).sendKeys("admin");
   driver.findElement(By.name("password")).sendKeys("12345678");
   driver.findElement(By.name("buttonAction")).click();     
   }

  @Test(priority = 2)
  public void GoToEmpMain(){
  driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);      
  driver.findElement(By.cssSelector(".fi-archive")).click();
  driver.findElement(By.linkText("Employee Maintenance")).click();
   }
}

```

My 2nd Class

```
 package TestNg_Package;

 import java.util.concurrent.TimeUnit;
 import org.openqa.selenium.By;
 import org.openqa.selenium.WebDriver;
 import org.openqa.selenium.WebElement;
 import org.openqa.selenium.firefox.FirefoxDriver;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;

 public class T3DetailedTimeTrackingReport extends T3EmployeeMaintenance{

  @Test(priority = 1)
  public void GoToDTTR(){
  driver.findElement(By.cssSelector("i.fi-graph-bar")).click();
  driver.findElement(By.linkText("Detailed Time Tracking Report")).click();
   }

  @Test(priority = 2)
  public void ClickDropdown(){
  driver.findElement(By.xpath("//*[@id='panel-1063-innerCt']")).click();
    WebElement ele = driver.findElement(By.id("ext-gen1204"));
    ele.click();
  }
}

```

My TestNg.XML Code

```
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Suite One">
 <test name="Test One" > 
  <classes> 
  <class name="TestNg_Package.T3EmployeeMaintenance" /> 
   <class name="TestNg_Package.T3DetailedTimeTrackingReport" /> 
 </classes> 
 </test> 
 </suite> 

```

My goal is after executing the "Class 1 @Test(Priority=2)" the "Class 2 @Test(Priority=1)" will execute right away.