Package io.qameta.allure.core
Interface ResultsVisitor
public interface ResultsVisitor
Visitor that stores results data to internal storage.
Creates
LaunchResults
from all visited data.- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notifies about error during results parse.void
Notifies about error during results parse.visitAttachmentFile
(Path attachmentFile) Process attachment file.void
visitExtra
(String name, Object object) Visit extra block.void
visitTestResult
(TestResult result) Process test result.
-
Method Details
-
visitAttachmentFile
Process attachment file. ReturnsAttachment
that can be used to get attachment in the report.- Parameters:
attachmentFile
- the attachment file to process.- Returns:
- created
Attachment
.
-
visitTestResult
Process test result.- Parameters:
result
- the result to process.
-
visitExtra
Visit extra block. You can access this block usingLaunchResults.getExtra(String)
.- Parameters:
name
- the name of block to add.object
- the block to add.
-
error
Notifies about error during results parse.- Parameters:
message
- the error message.e
- exception. Should not be null. If no exception is present useerror(String)
instead.
-
error
Notifies about error during results parse.- Parameters:
message
- the error message.
-