Class XmlSuiteUtils

java.lang.Object
org.testng.xml.internal.XmlSuiteUtils

public final class XmlSuiteUtils extends Object
A utility class to work with XmlSuite
  • Method Details

    • validateIfSuitesContainDuplicateTests

      public static void validateIfSuitesContainDuplicateTests(List<XmlSuite> suites)
      A validator that runs through the list of suites and checks if each of the suites contains any XmlTest with the same name. If found, then a TestNGException is raised.
      Parameters:
      suites - - The list of XmlSuite to validate.
    • adjustSuiteNamesToEnsureUniqueness

      public static void adjustSuiteNamesToEnsureUniqueness(List<XmlSuite> suites)
      Ensure that two XmlSuite don't have the same name
      Parameters:
      suites - - The List of XmlSuite that are to be tested and names updated if duplicate names found.
    • newXmlSuiteUsing

      public static XmlSuite newXmlSuiteUsing(List<String> classes)