def test_Login_T(cls, uname, upass, ucode, expect): Service.login_account(cls, add_user_info) Service.click_text(cls.driver, '行政综合') Service.decryption(cls.driver) if cls.driver.find_element_by_link_text('注销'): actual = 'loogin_correct' # cls.driver.find_element_by_link_text('注销').click() else: actual = 'loogin_failed' cls.driver.refresh() cls.assertEqual(actual, expect) sleep(5) Service.restart(cls)
def setUpClass(cls): print("test start") cls.driver = Service.get_driver(fm_financial_user_info) Service.login_account(cls, fm_financial_user_info) Service.click_text(cls.driver, '财务管理') Service.decryption(cls.driver)
def setUpClass(cls): print("test start") cls.driver = Service.get_driver(am_management_user_info) Service.login_account(cls, am_management_user_info) Service.click_text(cls.driver, '行政综合')
def setUpClass(cls): print("test start") cls.driver = Service.get_driver(em_mock_interviews_user_info) Service.login_account(cls, em_mock_interviews_user_info) Service.click_text(cls.driver, '就业管理') Service.decryption(cls.driver)
def setUpClass(cls): print("test start") cls.driver = Service.get_driver(pm_staff_management_user_info) Service.login_account(cls, pm_staff_management_user_info) Service.click_text(cls.driver, '人事管理')