title: how to keep dependency in testng in different classes webdriver
body: <p>I have a scenario like two different test classes, second test class result depends on the first one </p>
  
  <p>public class class1
      {
          @test
          public void sometest1()
          {
              // some functionality
          }
      }</p>
  
  <pre><code>public class class2
  {
      @test
      public void sometest2()
      {
          // some different functionality
      }
  }
  </code></pre>
  
  <p>Here class2 need to be executed if class1 result is pass else class2 needs to be failed.(if no provision for the same i need to execute the test1 in class1 to be executed always first in selenium grid parallel run)</p>