public class AsciiDocExporter extends Object implements Exporter
AsciiDocReport
Modifier and Type | Field and Description |
---|---|
protected ReporterConfiguration |
configuration |
protected static String |
FAIL_STEP |
protected static String |
FAILED_COLOR |
protected static int |
FAILED_INDEX |
protected static String |
NEW_LINE |
protected static String |
NOT_PERFORMED_STEP |
protected OutputStream |
outputStream |
protected static int |
PASSED_INDEX |
protected ResourceBundle |
resourceBundle |
protected static SimpleDateFormat |
SIMPLE_DATE_FORMAT |
protected static int |
SKIPPED_INDEX |
protected static String |
SUCCESS_COLOR |
protected static String |
SUCCESS_STEP |
protected static String |
WARNING_COLOR |
protected BufferedWriter |
writer |
Constructor and Description |
---|
AsciiDocExporter() |
AsciiDocExporter(OutputStream outputStream) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
containsAnyKeyValueEntryOrFileEntry(List<PropertyEntry> propertyEntries) |
File |
export(Reportable reportable) |
Class<? extends ReportType> |
getReportType() |
void |
setConfiguration(ReporterConfiguration configuration) |
protected void |
writeContainerProperties(Map<String,String> properties)
Method that is called to write container properties to AsciiDoc document.
|
protected void |
writeContainers(List<ContainerReport> containerReports)
Method that is called to write containers to AsciiDoc document.
|
protected void |
writeDeployments(List<DeploymentReport> deploymentReports)
Method that is called to write deployment information to AsciiDoc document.
|
protected void |
writeDocumentHeader()
First method called when report is being created.
|
protected void |
writeExtensions(List<ExtensionReport> extensionReports)
Method that is called to write extensions to AsciiDoc document.
|
protected void |
writeMedia(List<PropertyEntry> propertyEntries)
Method that is called to write media (screenshots and videos) to AsciiDoc document.
|
protected void |
writeProperties(List<PropertyEntry> propertyEntries)
Method that is called to write properties to AsciiDoc document.
|
protected void |
writeScreenshot(ScreenshotEntry screenshotEntry)
Method that is called to write screenshot.
|
protected void |
writeSummary(TestClassReport testClassReport)
Method that is called to write test summary (passed, failed tests) to AsciiDoc document.
|
protected void |
writeTestClassTitle(TestClassReport testClassReport)
Method that is called to write test class title to AsciiDoc document.
|
protected void |
writeTestMethodHeader(String testClassName,
TestMethodReport testMethodReport)
Method that is called to write test method header (that is the title, result, stack trace, ...) to AsciiDoc document.
|
protected void |
writeTestMethodProperties(TestMethodReport testMethodReport)
Method that is called to write test method properties to AsciiDoc document.
|
protected void |
writeTestMethods(TestClassReport testClassReport)
Method that is called to write all test method results of testClass report to AsciiDoc document.
|
protected void |
writeTestResults(List<TestClassReport> testClassReports)
Method that is called to write test results to AsciiDoc document.
|
protected void |
writeTestSuite(List<TestSuiteReport> testSuiteReports)
Method that is called to write properties to AsciiDoc document.
|
protected void |
writeText(List<PropertyEntry> propertyEntries) |
protected void |
writeTime(Date start,
Date stop,
long duration)
Method that is called to write test suite time to AsciiDoc document.
|
protected void |
writeVideo(VideoEntry videoEntry)
Method that is called to write video.
|
protected static final String NEW_LINE
protected static final SimpleDateFormat SIMPLE_DATE_FORMAT
protected static final int PASSED_INDEX
protected static final int FAILED_INDEX
protected static final int SKIPPED_INDEX
protected static final String FAILED_COLOR
protected static final String SUCCESS_COLOR
protected static final String WARNING_COLOR
protected static final String SUCCESS_STEP
protected static final String FAIL_STEP
protected static final String NOT_PERFORMED_STEP
protected BufferedWriter writer
protected OutputStream outputStream
protected ReporterConfiguration configuration
protected ResourceBundle resourceBundle
public AsciiDocExporter()
public AsciiDocExporter(OutputStream outputStream)
public File export(Reportable reportable) throws Exception
public Class<? extends ReportType> getReportType()
getReportType
in interface Exporter
public void setConfiguration(ReporterConfiguration configuration)
setConfiguration
in interface Exporter
protected void writeTestSuite(List<TestSuiteReport> testSuiteReports) throws IOException
testSuiteReports
- list;IOException
protected void writeTime(Date start, Date stop, long duration) throws IOException
start
- time.stop
- end time.duration
- in millis.IOException
protected void writeDocumentHeader() throws IOException
IOException
protected void writeContainerProperties(Map<String,String> properties) throws IOException
properties
- container properties as a mapIOException
protected void writeText(List<PropertyEntry> propertyEntries) throws IOException
IOException
protected void writeProperties(List<PropertyEntry> propertyEntries) throws IOException
propertyEntries
- list of properties to write to the reportIOException
protected void writeExtensions(List<ExtensionReport> extensionReports) throws IOException
extensionReports
- list.IOException
protected void writeMedia(List<PropertyEntry> propertyEntries) throws IOException
propertyEntries
- list.IOException
protected void writeVideo(VideoEntry videoEntry) throws IOException
videoEntry
- video entry to writeIOException
protected void writeScreenshot(ScreenshotEntry screenshotEntry) throws IOException
screenshotEntry
- screenshot entry to writeIOException
protected void writeContainers(List<ContainerReport> containerReports) throws IOException
containerReports
- list.IOException
protected void writeDeployments(List<DeploymentReport> deploymentReports) throws IOException
deploymentReports
- list.IOException
protected void writeTestResults(List<TestClassReport> testClassReports) throws IOException
testClassReports
- list.IOException
protected void writeTestClassTitle(TestClassReport testClassReport) throws IOException
testClassReport
- element.IOException
protected void writeSummary(TestClassReport testClassReport) throws IOException
testClassReport
- element.IOException
protected void writeTestMethods(TestClassReport testClassReport) throws IOException
testClassReport
- test class report element for which test methods will be writtenIOException
protected void writeTestMethodHeader(String testClassName, TestMethodReport testMethodReport) throws IOException
testClassName
- name of the class to write test method header fortestMethodReport
- test method report to writeIOException
protected void writeTestMethodProperties(TestMethodReport testMethodReport) throws IOException
testMethodReport
- report of test method to writeIOException
protected boolean containsAnyKeyValueEntryOrFileEntry(List<PropertyEntry> propertyEntries)
Copyright © 2014–2016 JBoss by Red Hat. All rights reserved.