setPreserveOrder("False") which bypassed the error but each data row ran twice.
Please suggest some solution.
Thanks
You would need to show us :
1. Your test code.
2. Your suite xml.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
org.testng.TestNGException:
No free nodes found in:[DynamicGraph
That still doesn't help. If you are generating the xml dynamically you should still be able to print it out on the console no ?
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite thread-count="0" verbose="5" name="ABC Tests" data-provider-thread-count="0" group-by-instances="true">
<parameter name="EnvironmentURL" value="https://abc.com/"/>
<listeners>
<listener class-name="ABCListener"/>
</listeners>
<test thread-count="0" verbose="0" name="Test1" time-out="0">
<parameter name="SheetName" value="QAZ"/>
<parameter name="FileName" value="\\ABC.xlsx"/>
<classes>
<class name="Test1">
</class>
</classes>
</test>
<test thread-count="0" verbose="0" name="Test2 " time-out="0">
<parameter name="SheetName" value="QAZ"/>
<parameter name="FileName" value="\\ABC.xlsx"/>
<classes>
<class name="Test2">
</class>
</classes>
</test>
</suite>
package organized.chaos.forums.testng;
import org.testng.Assert;
import org.testng.annotations.Factory;
import org.testng.annotations.Test;
import java.util.Map;
public class TestClass1 {
@Factory (dataProvider = "getData", dataProviderClass = LocalDataProvider.class)
public static Object[] createInstances(Map<String, String> data) {
return new Object[] {
new TestClass1(data)
};
}
private Map<String, String> map;
public TestClass1(Map<String, String> data) {
this.map = data;
System.err.println("Instantiating " + getClass().getName() + " on thread " + threadId());
}
private long threadId() {
return Thread.currentThread().getId();
}
@Test
public void method1() {
Assert.assertFalse(this.map.isEmpty());
String method = getClass().getName() + "." + new Object(){}.getClass().getEnclosingMethod().getName() + "() ";
System.err.println("Executing " + method + " on thread " + threadId());
}
@Test
public void method2() {
Assert.assertFalse(this.map.isEmpty());
String method = getClass().getName() + "." + new Object(){}.getClass().getEnclosingMethod().getName() + "() ";
System.err.println("Executing " + method + " on thread " + threadId());
}
}
package organized.chaos.forums.testng;
import org.testng.Assert;
import org.testng.annotations.Factory;
import org.testng.annotations.Test;
import java.util.Map;
public class TestClass2 {
@Factory (dataProvider = "getData", dataProviderClass = LocalDataProvider.class)
public static Object[] createInstances(Map<String, String> data) {
return new Object[] {
new TestClass2(data)
};
}
private Map<String, String> map;
public TestClass2(Map<String, String> data) {
this.map = data;
System.err.println("Instantiating " + getClass().getName() + " on thread " + threadId());
}
private long threadId() {
return Thread.currentThread().getId();
}
@Test
public void method1() {
Assert.assertFalse(this.map.isEmpty());
String method = getClass().getName() + "." + new Object() {
}.getClass().getEnclosingMethod().getName() + "() ";
System.err.println("Executing " + method + " on thread " + threadId());
}
@Test
public void method2() {
Assert.assertFalse(this.map.isEmpty());
String method = getClass().getName() + "." + new Object() {
}.getClass().getEnclosingMethod().getName() + "() ";
System.err.println("Executing " + method + " on thread " + threadId());
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite thread-count="5" verbose="5" name="ABC Tests" data-provider-thread-count="0" group-by-instances="true"
parallel="tests">
<test thread-count="0" verbose="0" name="Test1" time-out="0">
<classes>
<class name="organized.chaos.forums.testng.TestClass1"/>
</classes>
</test>
<test thread-count="0" verbose="0" name="Test2 " time-out="0">
<classes>
<class name="organized.chaos.forums.testng.TestClass2"/>
</classes>
</test>
</suite>
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+unsubscribe@googlegroups.com.
Shrey,
Can you please help share your suite xml file that is causing the problem for you ?
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.