title: How 2 methods in different class use method dependency in testNG
body: <p>I wanted to access test method from class a and b </p>
  
  <pre><code>Class a{
  @Test(dependsOnMethods="verifyElementsOnProfileScreen",alwaysRun = true)
      public void verifyMySelfProfileVisibility(){}
  }
  
  class b
  @Test(dependsOnMethods="testdemo",alwaysRun = true)
      public void verifyMySelfProfileVisibility(){}
  </code></pre>