public static void AfterScenario() { if (ScenarioContext.Current.TestError != null) { SeleniumReporter.TakeScreenshot(TestContext.CurrentContext.Test.Name); } }
public void ScreenshotReport() { if (TestContext.CurrentContext.Result.Outcome.Status == TestStatus.Failed) { SeleniumReporter.TakeScreenshot(driver, TestContext.CurrentContext.Test.Name); } else { SeleniumReporter.DeleteScreenshotIfExist(TestContext.CurrentContext.Test.Name); } }
public void DownloadAndroidAppVersion() { AppVersion.Platform = "android"; SeleniumExecutor.BaseSetUp(); executor = SeleniumExecutor.GetExecutor(); executor.OpenPage(SeleniumExecutor.pageDefaultUrl); volotea = new HockeyAppPage(executor); volotea.FillUserCredentialFields(TestConfiguration.LoginToAccount, TestConfiguration.PasswordToAccount). ClickSignInButton(). SelectAndroidPlatform(). ClickOnAppVersion("PX-633"); SeleniumReporter.TakeScreenshot(SeleniumExecutor.GetDriver()); volotea.ClickDownloadButton(); executor.BaseTearDown(); }