public void ScreenshotGenerated(object sender, ScreenshotPluginEventArgs args) { if (!string.IsNullOrEmpty(args.ScreenshotPath)) { TestContext?.AddResultFile(args.ScreenshotPath); } }
public void ScreenshotGenerated(object sender, ScreenshotPluginEventArgs args) { if (!string.IsNullOrEmpty(args.ScreenshotPath)) { TestContext.AddTestAttachment(args.ScreenshotPath); } }
public void ScreenshotGenerated(object sender, ScreenshotPluginEventArgs e) { if (File.Exists(e.ScreenshotPath)) { _allureLifecycle.AddAttachment("image on fail", "image/png", e.ScreenshotPath); } }
public void ScreenshotGenerated(object sender, ScreenshotPluginEventArgs e) { _filesToBeAttached.Add(e.ScreenshotPath); }