Example #1
0
        public void verifyLoginpage()
        {
            ExtentReport.CExtentReport();
            ExtentReport.test = ExtentReport.extent.StartTest("Verify the Login Page");
            LoginPage login = new LoginPage(_driver);

            BaseMethods.verifyWebElement(login.EperformUserNameText, "Eperform UserName Text is not displayed in login page", "Eperform UserName Text is displayed in login page");
            BaseMethods.verifyWebElement(login.EperformPasswordText, "Eperform Password Text is not displayed in login page", "Eperform Password Text  is  displayed in login page");
            BaseMethods.verifyWebElement(login.EperformSubmitButton, "Eperform Submit Button is not displayed in login page", "Eperform Submit Button is  displayed in login page");
            BaseMethods.verifyWebElement(login.EperformForgotPasswordLink, "Eperform ForgotPassword Link is not displayed in login page", "Eperform ForgotPassword Link  is  displayed in login page");
        }
Example #2
0
        public void verifyUsernamePasswordInvalidBlankErrorMessage()
        {
            ExtentReport.CExtentReport();
            ExtentReport.test = ExtentReport.extent.StartTest("Verify the Login Page");
            LoginPage login = new LoginPage(_driver);
            ArrayList list  = BaseClass.GetData("ER_TESTDATA", "LoginTest", "KeyName", "User3");

            login.EperformSubmitButton.Click();
            BaseMethods.verifyWebElement(login.EperfromUserNameBlankErrorMessageText, "The Username field is required. is not displayed in login page", "The Username field is required. is displayed in login page");
            BaseMethods.verifyWebElement(login.EperfromPasswordBlankErrorMessageText, "The Password field is required. is not displayed in login page", "he Password field is required. is displayed in login page");
            login.EPerformUserNameTextBox.SendKeys(list[1].ToString());
            login.EperformPasswordTextBox.SendKeys(list[2].ToString());
            login.EperformSubmitButton.Click();
            BaseMethods.verifyWebElement(login.EperfromUserNamePasswordInvalidText, "The username or password you entered is incorrect. Please check your details and try again. is not displayed in login page", "The username or password you entered is incorrect. Please check your details and try again. is displayed in login page");
        }
Example #3
0
        public void loginEperformApplicaton()
        {
            ExtentReport.CExtentReport();
            ExtentReport.test = ExtentReport.extent.StartTest("Login to the Application");
            LoginPage login    = new LoginPage(_driver);
            ArrayList list     = BaseClass.GetData("ER_TESTDATA", "LoginTest", "KeyName", "Admin");
            string    username = list[1].ToString();
            string    pwd      = list[2].ToString();

            login.Login(username, pwd);
            login.EperformSystemAdministratorArrowDropDownIcon.Click();
            BaseMethods.verifyWebElement(login.EperformLogoutOption, "The Logout option is not displayed in the home page", "Logout option is displayed in the Home page");

            login.EperformLogoutOption.Click();
        }
 public void Initialize()
 {
     this._driver = new TWebDriver();
     ExtentReport.CExtentReport(_driver);
     _01_BrowserClass.LaunchBrowser(_driver);
 }
Example #5
0
 public void OneTimeIntialize()
 {
     ExtentReport.CExtentReport();
 }