Assuming both tests are in the same file, i would
@Test(groups="basic", dependsOnGroups="someCleverGroupName")
How can this be handled if my group is mentioned in the other class?
Right now, i rightfully am getting the depends on nonexistent group exception.
Make sure that the you include the classes that contain the methods belonging to that group in your
testng.xml.