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