Method org.testng.xml.XmlSuite#toXml do not save new properties like "share-thread-pool-for-data-providers"
X-NoNAME opened this issue · 0 comments
X-NoNAME commented
TestNG Version
7.10.2
Expected behavior
Recently added properties (in version 7.9.0) should be saved to an xml file. f.e.: share-thread-pool-for-data-providers"property
Actual behavior
The xml file has no new properties
Is the issue reproducible on runner?
- Gradle
Test case sample
public static void main(String[] args) throws IOException {
XmlSuite suite = new XmlSuite();
suite.setShareThreadPoolForDataProviders(true);
FileUtils.writeStringToFile(new File("test.xml"), suite.toXml(), Charset.defaultCharset());
}
<!-- test.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="Default Suite">
</suite> <!-- Default Suite -->
Contribution guidelines
Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.