Package io.qameta.allure
Class FileSystemResultsWriter
java.lang.Object
io.qameta.allure.FileSystemResultsWriter
- All Implemented Interfaces:
AllureResultsWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringprotected static Stringprotected static Stringprotected static StringgenerateTestResultName(String uuid) voidwrite(io.qameta.allure.model.TestResult testResult) Writes Allure test result bean.voidwrite(io.qameta.allure.model.TestResultContainer testResultContainer) Writes Allure test result container bean.voidwrite(String source, InputStream attachment) Writes given attachment.
-
Constructor Details
-
FileSystemResultsWriter
-
-
Method Details
-
write
public void write(io.qameta.allure.model.TestResult testResult) Description copied from interface:AllureResultsWriterWrites Allure test result bean.- Specified by:
writein interfaceAllureResultsWriter- Parameters:
testResult- the given bean to write.
-
write
public void write(io.qameta.allure.model.TestResultContainer testResultContainer) Description copied from interface:AllureResultsWriterWrites Allure test result container bean.- Specified by:
writein interfaceAllureResultsWriter- Parameters:
testResultContainer- the given bean to write.
-
write
Description copied from interface:AllureResultsWriterWrites given attachment. Will close the given stream.- Specified by:
writein interfaceAllureResultsWriter- Parameters:
source- 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.
-
generateTestResultName
-
generateTestResultName
-
generateTestResultContainerName
-
generateTestResultContainerName
-