title: How to share a variable between two test classes?
body: <pre><code>public class Reg {
     @BeforeClass
     public void setUp() throws Exception
     {    
       // Generate a unique email every time 
       String email= UniqueEmail.now()+"@test.com";
       .....
      }
     @Test()
     public void Reg1() throws Exception 
     {
        // Registration Test
     }
  }
  
  public class Login{
     @BeforeClass
     public void setUp() throws Exception
     {    
       //How to parse in the email variable from Class Reg?
      }
     @Test()
     public void Login() throws Exception 
     {
        // Use the email generated from class A
        selenium.type("EmailID", email)
     }
  }
  </code></pre>
  
  <p>Class <code>Reg</code> will always be executed before Class <code>Login</code>. How can I store the <code>email</code> variable after executing Class <code>Reg</code> so that it can be used in Class <code>Login</code>?</p>