Parser is a parser for a TestNG XML test suite file.
| Modifier and Type | Field and Description |
|---|---|
| private static final ISuiteParser | |
| public static final String | DEFAULT_FILENAME
The default file name for the TestNG test suite if none is specified (testng.xml). |
| public static final String | |
| private String | m_fileName
The file name of the xml suite being parsed. |
| private InputStream | |
| private boolean | |
| private IPostProcessor | |
| public static final String | OLD_TESTNG_DTD_URL
The URL to the deprecated TestNG DTD. |
| private static final List | |
| public static final String | TESTNG_DTD
The name of the TestNG DTD. |
| public static final String | TESTNG_DTD_URL
The URL to the TestNG DTD. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| private static URI | |
| private static IFileParser | |
| public static boolean | Returns: -true if the uri has "file:" as its scheme.- The uri to be verified. uri)
|
| private void | |
| private static Parser | |
| private static Parser | |
| public Collection | Returns: the parsed TestNG test suite.Parses the TestNG test suite and returns the corresponding XmlSuite, and possibly, other
XmlSuite that are pointed to by |
| public static Collection | |
| public static Collection | |
| public List | |
| public void | |
| public void |
| DEFAULT_FILE_PARSER | back to summary |
|---|---|
| private static final ISuiteParser DEFAULT_FILE_PARSER | |
| DEFAULT_FILENAME | back to summary |
|---|---|
| public static final String DEFAULT_FILENAME The default file name for the TestNG test suite if none is specified (testng.xml). | |
| HTTPS_TESTNG_DTD_URL | back to summary |
|---|---|
| public static final String HTTPS_TESTNG_DTD_URL | |
| m_fileName | back to summary |
|---|---|
| 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 | back to summary |
|---|---|
| private InputStream m_inputStream | |
| m_loadClasses | back to summary |
|---|---|
| private boolean m_loadClasses | |
| m_postProcessor | back to summary |
|---|---|
| private IPostProcessor m_postProcessor | |
| OLD_TESTNG_DTD_URL | back to summary |
|---|---|
| public static final String OLD_TESTNG_DTD_URL The URL to the deprecated TestNG DTD. | |
| PARSERS | back to summary |
|---|---|
| private static final List<ISuiteParser> PARSERS | |
| TESTNG_DTD | back to summary |
|---|---|
| public static final String TESTNG_DTD The name of the TestNG DTD. | |
| TESTNG_DTD_URL | back to summary |
|---|---|
| public static final String TESTNG_DTD_URL The URL to the TestNG DTD. | |
| Parser | back to summary |
|---|---|
| public Parser(String fileName) Constructs a
| |
| Parser | back to summary |
|---|---|
| public Parser() Creates a parser that will try to find the DEFAULT_FILENAME from the jar. | |
| Parser | back to summary |
|---|---|
| public Parser(InputStream is) | |
| canParse | back to summary |
|---|---|
| public static boolean canParse(String fileName) | |
| constructURI | back to summary |
|---|---|
| private static URI constructURI(String text) | |
| getParser | back to summary |
|---|---|
| private static IFileParser | |
| hasFileScheme | back to summary |
|---|---|
public static boolean hasFileScheme(String uri)
| |
| init | back to summary |
|---|---|
| private void init(String fileName, InputStream is) | |
| newParser | back to summary |
|---|---|
| private static Parser newParser(String path, IPostProcessor processor) | |
| newParser | back to summary |
|---|---|
| private static Parser newParser(InputStream is, IPostProcessor processor) | |
| parse | back to summary |
|---|---|
| public Collection Parses the TestNG test suite and returns the corresponding XmlSuite, and possibly, other
XmlSuite that are pointed to by
| |
| parse | back to summary |
|---|---|
| public static Collection | |
| parse | back to summary |
|---|---|
| public static Collection | |
| parseToList | back to summary |
|---|---|
| public List | |
| setLoadClasses | back to summary |
|---|---|
public void setLoadClasses(boolean loadClasses)
| |
| setPostProcessor | back to summary |
|---|---|
| public void setPostProcessor(IPostProcessor processor) | |