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 TypeMethodDescriptionvoidNotifies about error during results parse.voidNotifies about error during results parse.visitAttachmentFile(Path attachmentFile) Process attachment file.voidvisitExtra(String name, Object object) Visit extra block.voidvisitTestResult(TestResult result) Process test result.
-
Method Details
-
visitAttachmentFile
Process attachment file. ReturnsAttachmentthat 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.
-