public void TC0001_SmokeTest() { GuiHelper.OpenWebBrowser(); Navigation.NavToWebPageUnderTest(); HomePage.VerifyOnHomePage(TestAssert); GuiHelper.CloseWebBrowser(); }
public void TC0004_FormAuthenticationBadInfo() { const string userId = "sdetAutomatiom"; const string password = "******"; const string expectedMsg = "Your username is invalid!"; GuiHelper.OpenWebBrowser(); Navigation.NavToWebPageUnderTest(); HomePage.ClickFormAuthentication(); LoginPage.EnterCredentials(userId, password); LoginPage.VerifyMessage(TestAssert, expectedMsg); GuiHelper.CloseWebBrowser(); }
public void TC0002_ForgetPasswordTest() { const string email = "*****@*****.**"; const string expectedMsg = "Your e-mail's been sent!"; GuiHelper.OpenWebBrowser(); Navigation.NavToWebPageUnderTest(); HomePage.ClickForgetPassword(); ForgetPasswordPage.EnterEmail(email); ForgetPasswordPage.ClickRetrieveButton(); EmailSentPage.VerifyEmailSent(TestAssert, expectedMsg); GuiHelper.CloseWebBrowser(); }
public void TC0003_FormAuthentication() { const string userId = "tomsmith"; const string password = "******"; const string expectedLoginMsg = "You logged into a secure area!"; const string expectedLogoutMsg = "You logged out of the secure area!"; GuiHelper.OpenWebBrowser(); Navigation.NavToWebPageUnderTest(); HomePage.ClickFormAuthentication(); LoginPage.EnterCredentials(userId, password); SecureAreaPage.VerifyMessage(TestAssert, expectedLoginMsg); SecureAreaPage.ClickLogoutButton(); LoginPage.VerifyMessage(TestAssert, expectedLogoutMsg); GuiHelper.CloseWebBrowser(); }