Пример #1
0
 public static void TakeScreeshot()
 {
     if (TestContext.CurrentContext.Result.Outcome != ResultState.Success)
     {
         MyScreenshot.MakeScreeshot(driver);
     }
 }
Пример #2
0
 public static void SingleTestTearDown()
 {
     if (TestContext.CurrentContext.Result.Outcome != ResultState.Success)
     {
         MyScreenshot.MakePhoto(driver);
     }
 }
Пример #3
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
     }
 }
Пример #4
0
 public static void SingleTestTearDown()
 {
     if (TestContext.CurrentContext.Result.Outcome != ResultState.Success)
     {
         // cia mes padarysime screenshota
         MyScreenshot.MakePhoto(_driver);
     }
 }