Class Parser

java.lang.Object
org.testng.xml.Parser

public class Parser extends Object
Parser is a parser for a TestNG XML test suite file.
  • Field Details

    • TESTNG_DTD

      public static final String TESTNG_DTD
      The name of the TestNG DTD.
      See Also:
    • OLD_TESTNG_DTD_URL

      public static final String OLD_TESTNG_DTD_URL
      The URL to the deprecated TestNG DTD.
      See Also:
    • TESTNG_DTD_URL

      public static final String TESTNG_DTD_URL
      The URL to the TestNG DTD.
      See Also:
    • HTTPS_TESTNG_DTD_URL

      public static final String HTTPS_TESTNG_DTD_URL
      See Also:
    • DOMAINS

      private static final List<String> DOMAINS
    • DEFAULT_FILENAME

      public static final String DEFAULT_FILENAME
      The default file name for the TestNG test suite if none is specified (testng.xml).
      See Also:
    • DEFAULT_FILE_PARSER

      private static final ISuiteParser DEFAULT_FILE_PARSER
    • PARSERS

      private static final List<ISuiteParser> PARSERS
    • m_fileName

      private String m_fileName
      The file name of the xml suite being parsed. This may be null if the Parser has not been initialized with a file name. TODO CQ This member is never used.
    • m_inputStream

      private InputStream m_inputStream
    • m_postProcessor

      private IPostProcessor m_postProcessor
    • m_loadClasses

      private boolean m_loadClasses
  • Constructor Details

    • Parser

      public Parser(String fileName)
      Constructs a Parser to use the inputStream as the source of the xml test suite to parse.
      Parameters:
      fileName - the filename corresponding to the inputStream or null if unknown.
    • Parser

      public Parser()
      Creates a parser that will try to find the DEFAULT_FILENAME from the jar.
    • Parser

      public Parser(InputStream is)
  • Method Details