Skip to content

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

Closed

Description

@X-NoNAME

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.

Activity

  1. added this to the 7.12.0 milestone on Feb 17, 2025
  2. added 2 commits that reference this issue on Feb 20, 2025
    24bd0ad
    44b0f23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions