Package io.qameta.allure.attachment
Class DefaultAttachmentProcessor
java.lang.Object
io.qameta.allure.attachment.DefaultAttachmentProcessor
- All Implemented Interfaces:
AttachmentProcessor<AttachmentData>
public class DefaultAttachmentProcessor
extends Object
implements AttachmentProcessor<AttachmentData>
Supports Allure attachment integration with Allure reporting.
Use this type through the module that owns it when translating framework execution, result metadata, or attachments into Allure report data.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a default attachment processor with default configuration.DefaultAttachmentProcessor(io.qameta.allure.AllureLifecycle lifecycle) Creates a default attachment processor with the supplied values. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachment(AttachmentData attachmentData, AttachmentRenderer<AttachmentData> renderer) Adds the attachment.
-
Constructor Details
-
DefaultAttachmentProcessor
public DefaultAttachmentProcessor()Creates a default attachment processor with default configuration. -
DefaultAttachmentProcessor
public DefaultAttachmentProcessor(io.qameta.allure.AllureLifecycle lifecycle) Creates a default attachment processor with the supplied values.- Parameters:
lifecycle- the Allure lifecycle to use
-
-
Method Details
-
addAttachment
public void addAttachment(AttachmentData attachmentData, AttachmentRenderer<AttachmentData> renderer) Adds the attachment.- Specified by:
addAttachmentin interfaceAttachmentProcessor<AttachmentData>- Parameters:
attachmentData- the attachment datarenderer- the renderer used to turn attachment data into content
-