Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Attachments

Nick Chursin edited this page Jan 17, 2022 · 4 revisions

Make sure you use [AllureNUnit(false)], so the attachments added directly to testResult and not root testCase

Attachments

public static void Attachment()
{
    AllureLifecycle.Instance.AddAttachment("allureConfig.json","AllureConfig.json");
    AllureLifecycle.Instance.AddAttachment("file", "text/plain", "file.txt");
}

Screen Diffs

Implementation of screen-diff-plugin.

public static void Diff()
{
    AllureLifecycle.Instance.AddScreenDiff("expected.png", "actual.png", "diff.png");
}
screenshotDiff label is not required.
Clone this wiki locally