def test_prof_update_change_pword(self):
     module_logger.info('Started FE Update Profile / Change Password Test')
     up = UpdateProfile(self.driver)
     #changes password / logs out
     self.info_entry(up)
     self.password_entry(up)
     up.update_profile_submit()
     module_logger.info('profile updated')
     self.log_out()
     # logs in w/new password
     lpo = LoginPageObject(self.driver, self.base_url)
     lpo.username = test_info["login_username"]
     lpo.password = test_info["new_pword_strong"]
     lpo.submit()
     User_Menu_Bar(self.driver).profile()
     module_logger.info('logged in w/new password')
     # changes password back to original / verifies user can log back in using original password
     self.info_entry(up)
     up.current_pword = test_info["new_pword_strong"]
     up.new_pword = test_info["login_pword"]
     up.con_pword = test_info["login_pword"]
     up.update_profile_submit()
     self.log_out()
     self.log_in()
     module_logger.info(
         'password set back to original. Change Password Test Complete ')
 def test_prof_update_change_pword(self):
     module_logger.info('Started FE Update Profile / Change Password Test')
     up = UpdateProfile(self.driver)
     #changes password / logs out
     self.info_entry(up)
     self.password_entry(up)
     up.update_profile_submit()
     module_logger.info('profile updated')
     self.log_out()
     # logs in w/new password
     lpo = LoginPageObject(self.driver, self.base_url)
     lpo.username = test_info["login_username"]
     lpo.password = test_info["new_pword_strong"]
     lpo.submit()
     User_Menu_Bar(self.driver).profile()
     module_logger.info('logged in w/new password')
     # changes password back to original / verifies user can log back in using original password
     self.info_entry(up)
     up.current_pword = test_info["new_pword_strong"]
     up.new_pword = test_info["login_pword"]
     up.con_pword = test_info["login_pword"]
     up.update_profile_submit()
     self.log_out()
     self.log_in()
     module_logger.info('password set back to original. Change Password Test Complete ')
Exemplo n.º 3
0
 def test_umb_links(self):
     # logs in
     module_logger.info('Started User Menu Bar Test')
     lpo = LoginPageObject(self.driver, self.base_url)
     lpo.username = test_info["login_username"]
     lpo.password = test_info["login_pword"]
     lpo.submit()
     module_logger.info('logged in')
     # proceeds to click the links all of the links
     dash = User_Menu_Bar(self.driver)
     dash.admin_db()
     module_logger.info('@ admin db')
     dash.user_admin()
     module_logger.info('@ user admin')
     dash.proj_admin()
     module_logger.info('@ project admin')
     dash.site_admin()
     module_logger.info('@ site admin')
     wpumb = WpUmb(self.driver)
     wpumb.go_2_FE()
     module_logger.info('@ FE DB')
     dash.dashboard_button()
     dash.user_manager()
     module_logger.info('@ user manager')
     dash.project()
     module_logger.info('@ project')
     dash.profile()
     module_logger.info('@ profile')
     dash.check_user_info()
     module_logger.info('@ check user info')
     dash.balfour_tools()
     module_logger.info('@  bt')
     dash.bt_faq()
     module_logger.info('@  bt faq')
     dash.my_year()
     module_logger.info('@  my year')
     dash.contact()
     module_logger.info('@ contact')
     dash.dashboard_button()
     module_logger.info('@ FE DB')
     DashBoard(self.driver).log_out()
     module_logger.info('logged out')
     module_logger.info('User Menu Bar Test Complete')