| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private final AutoCloseableLock | |
| private Queue | |
| private Queue | |
| private int | |
| private final Map | |
| private int | |
| private static final Pattern | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private String | |
| pack-priv static String | |
| private String | Returns: unique name for the file associated with this test context.test context context)This method guarantees unique file names for reports. |
| protected void | generateReport(ITestContext
The test context context)generate the XML report given what we know from all the test results |
| private Set | |
| private Properties | |
| public void | onConfigurationFailure(ITestResult
The test result itr)Overrides default org. |
| public void | onConfigurationSkip(ITestResult
The test result itr)Overrides default org. |
| public void | onConfigurationSuccess(ITestResult
The test result itr)Overrides default org. |
| public void | onFinish(ITestContext
The test context context)Overrides default org. |
| public void | onStart(ITestContext
The test context context)Overrides default org. |
| public void | onTestFailedButWithinSuccessPercentage(ITestResult
ITestResult containing information about the run testOverrides default org. |
| public void | onTestFailure(ITestResult
ITestResult containing information about the run testOverrides default org. |
| public void | onTestSkipped(ITestResult
ITestResult containing information about the run testOverrides default org. |
| public void | onTestSuccess(ITestResult
ITestResult containing information about the run testOverrides default org. |
| private String | |
| private void |
| ATTR_ESCAPES | back to summary |
|---|---|
| private static final Map<String, Pattern> ATTR_ESCAPES | |
| ENTITY | back to summary |
|---|---|
| private static final Pattern ENTITY | |
| GREATER | back to summary |
|---|---|
| private static final Pattern GREATER | |
| LESS | back to summary |
|---|---|
| private static final Pattern LESS | |
| lock | back to summary |
|---|---|
| private final AutoCloseableLock lock | |
| m_allTests | back to summary |
|---|---|
| private Queue<ITestResult> m_allTests | |
| m_configIssues | back to summary |
|---|---|
| private Queue<ITestResult> m_configIssues | |
| m_fileNameIncrementer | back to summary |
|---|---|
| private int m_fileNameIncrementer | |
| m_fileNameMap | back to summary |
|---|---|
| private final Map<String, String> m_fileNameMap | |
| m_numFailed | back to summary |
|---|---|
| private int m_numFailed | |
| QUOTE | back to summary |
|---|---|
| private static final Pattern QUOTE | |
| SINGLE_QUOTE | back to summary |
|---|---|
| private static final Pattern SINGLE_QUOTE | |
| JUnitXMLReporter | back to summary |
|---|---|
| public JUnitXMLReporter() | |
| createElement | back to summary |
|---|---|
| private void createElement(XMLStringBuffer doc, ITestResult tr) | |
| createElementFromIgnoredTests | back to summary |
|---|---|
| private void createElementFromIgnoredTests(XMLStringBuffer doc, ITestContext context) | |
| createElementFromTestResults | back to summary |
|---|---|
| private void createElementFromTestResults(XMLStringBuffer document, Collection<ITestResult> results) | |
| createFailureElement | back to summary |
|---|---|
| private void createFailureElement(XMLStringBuffer doc, ITestResult tr) | |
| createSkipElement | back to summary |
|---|---|
| private void createSkipElement(XMLStringBuffer doc) | |
| encodeAttr | back to summary |
|---|---|
| private String encodeAttr(String attr) | |
| formattedTime | back to summary |
|---|---|
| pack-priv static String formattedTime() | |
| generateFileName | back to summary |
|---|---|
| private String generateFileName(ITestContext context) This method guarantees unique file names for reports.
| |
| generateReport | back to summary |
|---|---|
| protected void generateReport(ITestContext context) generate the XML report given what we know from all the test results
| |
| getPackages | back to summary |
|---|---|
| private Set | |
| getPropertiesFor | back to summary |
|---|---|
| private Properties getPropertiesFor(ITestNGMethod method, long elapsedTimeMillis) | |
| onConfigurationFailure | back to summary |
|---|---|
| public void onConfigurationFailure(ITestResult itr) Overrides default org. Doc from org. Invoked whenever a configuration method failed.
| |
| onConfigurationSkip | back to summary |
|---|---|
| public void onConfigurationSkip(ITestResult itr) Overrides default org. Doc from org. Invoked whenever a configuration method was skipped.
| |
| onConfigurationSuccess | back to summary |
|---|---|
| public void onConfigurationSuccess(ITestResult itr) Overrides default org. Doc from org. Invoked whenever a configuration method succeeded.
| |
| onFinish | back to summary |
|---|---|
| public void onFinish(ITestContext context) Overrides default org. Invoked after all the tests have run and all their Configuration methods have been called.
| |
| onStart | back to summary |
|---|---|
| public void onStart(ITestContext context) Overrides default org. Invoked after the test class is instantiated and before any configuration method is called.
| |
| onTestFailedButWithinSuccessPercentage | back to summary |
|---|---|
| public void onTestFailedButWithinSuccessPercentage(ITestResult tr) Overrides default org. Doc from org. Invoked each time a method fails but has been annotated with successPercentage and this failure still keeps it within the success percentage requested.
| |
| onTestFailure | back to summary |
|---|---|
| public void onTestFailure(ITestResult tr) Overrides default org. Invoked each time a test fails.
| |
| onTestSkipped | back to summary |
|---|---|
| public void onTestSkipped(ITestResult tr) Overrides default org. Invoked each time a test is skipped.
| |
| onTestSuccess | back to summary |
|---|---|
| public void onTestSuccess(ITestResult tr) Overrides default org. Invoked each time a test succeeds.
| |
| replaceAmpersand | back to summary |
|---|---|
| private String replaceAmpersand(String str) | |
| resetAll | back to summary |
|---|---|
| private void resetAll() Reset all member variables for next test. | |