public void AlwaysPassedTest() { YouTubePage page = new YouTubePage("https://www.youtube.com/watch?v=UKKYpdWPSL8"); string author = page.GetAuthorName(); JiraInfoProvider.SaveParameter("Author", author); JiraInfoProvider.SaveParameter("Title", page.GetVideoTitle()); Assert.AreEqual(author, "EPAM Systems Global"); }
public void AlwaysFailedTest() { YouTubePage page = new YouTubePage("https://www.youtube.com/watch?v=sU4i4DTr1HQ"); string author = page.GetAuthorName(); string title = page.GetVideoTitle(); JiraInfoProvider.SaveParameter("Author", author); JiraInfoProvider.SaveParameter("Title", title); Screenshoter.Instance.TakeScreenshot(); Assert.AreEqual("Atlassian", author); }
public void INavigateToMainPage(string mainPage) { JiraInfoProvider.SaveParameter("title", page.GetVideoTitle(), scenarioContext); }