org.testng.TestNGException: No free nodes found in:[DynamicGraph

automation, testng

Solution

It appears that each class can only be declared once in the list, even if different methods are included on each declaration, otherwise you will see this error message :( Using latest TestNG 6.8.8. I was able to get this to work with @Test(priority=#) with the specific priority on each test method. See http://testng.org/doc/documentation-main.html#annotations.

My use case: crud tests for entities. Each Entity has its own test class with 4 methods (so I can test only a single entity CRUD in isolation), but I also want to run the overall suite (will fail due to integrity constraints and different generated ID keys unless they are run in exactly the right order).

Same question asked at Getting org.testng.TestNGException: No free nodes found in:[DynamicGraph Exception.

Problem

I am using two methods of same class in testng, but it is not allowing me so... it is giving exception org.testng.TestNGException: No free nodes found in:[DynamicGraph my testng file is ``` <test name="User Data" preserve-order="true"> <classes> <class name="LoginTest"> <methods> <include name="Login" /> </methods> </class> <class name="xtr.chaut.test.PatientProfileTest"> <methods> <include name="openPatientProfile"></include> <include name="checkUserData"></include> </methods> </class> <class name="xtr.chaut.test.Login"> <methods> <include name="logout"></include> </methods> </class> </classes> ``` here login and logout methods are from same class please give me any solution for this Thanks in advance

Original source