public class MakeAttachmentEvent extends AbstractMakeAttachmentEvent
StepEventattachment, title, type| Constructor and Description |
|---|
MakeAttachmentEvent(byte[] attachment,
String title,
String type)
Constructs an new event with specified binary attachment source, title and MIME-type
|
| Modifier and Type | Method and Description |
|---|---|
void |
process(ru.yandex.qatools.allure.model.Step step)
Write attachment from event using
AllureResultsUtils.writeAttachmentSafely(byte[], String, String)
Then add attachment to step attachments. |
equals, equals, getAttachment, getTitle, getType, hashCode, hashCode, setAttachment, setTitle, setTypepublic MakeAttachmentEvent(byte[] attachment,
String title,
String type)
attachment - as byte array.title - of attachment. Shown at report as name of attachmenttype - MIME-type of attachmentpublic void process(ru.yandex.qatools.allure.model.Step step)
AllureResultsUtils.writeAttachmentSafely(byte[], String, String)
Then add attachment to step attachments.step - to changeCopyright © 2017 Yandex. All rights reserved.