public class FileSystemResultsWriter extends Object implements AllureResultsWriter
| Constructor and Description |
|---|
FileSystemResultsWriter(Path outputDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(String source,
InputStream attachment)
Writes given attachment.
|
void |
write(TestResult testResult)
Writes Allure test result bean.
|
void |
write(TestResultContainer testResultContainer)
Writes Allure test result container bean.
|
public FileSystemResultsWriter(Path outputDirectory)
public void write(TestResult testResult)
AllureResultsWriterwrite in interface AllureResultsWritertestResult - the given bean to write.public void write(TestResultContainer testResultContainer)
AllureResultsWriterwrite in interface AllureResultsWritertestResultContainer - the given bean to write.public void write(String source, InputStream attachment)
AllureResultsWriterwrite in interface AllureResultsWritersource - the file name of the attachment. Make sure that file name
matches the following glob: *-attachment*. The right way to generate attachment is generate UUID, determinate attachment extension and then use it as
{UUID}-attachment.{ext}attachment - the steam that contains attachment body.Copyright © 2017 qameta.io. All rights reserved.