public static void TakeScreeshot() { if (TestContext.CurrentContext.Result.Outcome != ResultState.Success) { MyScreenshot.MakeScreeshot(driver); } }
public static void SingleTestTearDown() { if (TestContext.CurrentContext.Result.Outcome != ResultState.Success) { MyScreenshot.MakePhoto(driver); } }
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 } }
public static void SingleTestTearDown() { if (TestContext.CurrentContext.Result.Outcome != ResultState.Success) { // cia mes padarysime screenshota MyScreenshot.MakePhoto(_driver); } }