예제 #1
0
        public void Commons()
        {
            LoginPage loginPage = new LoginPage(this.Driver);

            UserCommons.CreateUser(
                loginPage,
                ConfigurationManager.AppSettings["USERNAME"],
                ConfigurationManager.AppSettings["PASSWORD"],
                ConfigurationManager.AppSettings["NEW_USER"],
                ConfigurationManager.AppSettings["NEW_PASSWORD"],
                true,
                true);
            UserCommons.ChangePassword(
                loginPage,
                ConfigurationManager.AppSettings["USERNAME"],
                ConfigurationManager.AppSettings["PASSWORD"],
                ConfigurationManager.AppSettings["NEW_USER"],
                ConfigurationManager.AppSettings["CHANGE_PASSWORD"]);
            UserCommons.CheckUser(
                loginPage,
                ConfigurationManager.AppSettings["NEW_USER"],
                ConfigurationManager.AppSettings["CHANGE_PASSWORD"]);
            UserCommons.DeleteUser(
                loginPage,
                ConfigurationManager.AppSettings["USERNAME"],
                ConfigurationManager.AppSettings["PASSWORD"],
                ConfigurationManager.AppSettings["NEW_USER"]);
        }
예제 #2
0
        public void CheckUser(String newUser, String newPassword)
        {
            LoginPage loginPage = new LoginPage(this.Driver);

            UserCommons.CheckUser(
                loginPage,
                newUser,
                newPassword);
        }