Exemplo n.º 1
0
 public static void TearDown()                                             //metodas testo failinimams
 {
     if (TestContext.CurrentContext.Result.Outcome != ResultState.Success) //kai testo rezultatas nera sekmingas, daromas screenshotas
     {
         MyScreenshot.TakeScreenshot(driver);                              //metodo issaukimas
     }
 }
Exemplo n.º 2
0
 public void Screenshot()
 {
     if (TestContext.CurrentContext.Result.Outcome != ResultState.Success)
     {
         MyScreenshot.TakeScreenshot(driver);
     }
 }