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