Making a class dependent on other class using TestNG xml
We are facing an issue where while specifying dependency in TestNG xml the dependent test class runs but the depended test don't run once the dependent tests execution is complete
We are running test suites in parallel however there are certain tests which conflict with tests in other class and cause test failures. So we are looking a way to mark a test class - test1 dependent on another test class - test2 using TestNG xml. So that tests in test1 will only execute once tests in test2 are executed (We are not bothered about the results of test2)
Can someone provide thoughts what could be the issue?
Following is the xml we have created using xml based dependency