示例#1
0
 public static void AfterScenario()
 {
     if (ScenarioContext.Current.TestError != null)
     {
         SeleniumReporter.TakeScreenshot(TestContext.CurrentContext.Test.Name);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
        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();
        }