title: How to use method dependency between two classes in testng?
body: <p>I have 2 test classes one is for testing the register functionality of a website and another is for login.</p>
  
  <pre><code>public class TestResister{
  @test
  public void testSignup(){
  }
  }
  
  public class TestLogin{
  @test
  public void testLoginUser(){
  }
  }
  </code></pre>
  
  <p>I want that when i run testLoginUser() function it automatically call testSignup().</p>