Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method org.testng.xml.XmlSuite#toXml do not save new properties like "share-thread-pool-for-data-providers" #3177

Open
X-NoNAME opened this issue Sep 23, 2024 · 0 comments

Comments

@X-NoNAME
Copy link

X-NoNAME commented Sep 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant