コード例 #1
0
 def test_pm_attendance_records(cls, data, expect):
     PersonnelManagement(cls.driver).pm_attendance_records()
     if Service.is_element_present(cls.driver, By.LINK_TEXT, '考勤记录'):
         actual = 'PM_correct'
     else:
         actual = 'PM_failed'
         cls.driver.refresh()
     cls.assertEqual(actual, expect)
コード例 #2
0
 def test_pm_recipients(cls, data, expect):
     PersonnelManagement(cls.driver).pm_staff_management()
     if Service.is_element_present(cls.driver, By.LINK_TEXT, '员工管理'):
         actual = 'PM_correct'
     else:
         actual = 'PM_failed'
         cls.driver.refresh()
     cls.assertEqual(actual, expect)
コード例 #3
0
 def test_fm_monthly_accounting(cls, data, expect):
     FinancialManagement(cls.driver).fm_monthly_accounting()
     if Service.is_element_present(cls.driver, By.LINK_TEXT, '月度核算'):
         actual = 'FM_correct'
     else:
         actual = 'FM_failed'
         cls.driver.refresh()
     cls.assertEqual(actual, expect)
コード例 #4
0
 def test_fm_class_management(cls, data, expect):
     FinancialManagement(cls.driver).fm_class_management()
     if Service.is_element_present(cls.driver, By.LINK_TEXT, '班级管理'):
         actual = 'FM_correct'
     else:
         actual = 'FM_failed'
         cls.driver.refresh()
     cls.assertEqual(actual, expect)
コード例 #5
0
 def test_em_orientation_information(cls, data, expect):
     EmploymentManagement(cls.driver).em_orientation_information()
     if Service.is_element_present(cls.driver, By.LINK_TEXT, '入职信息'):
         actual = 'EM_correct'
     else:
         actual = 'EM_failed'
         cls.driver.refresh()
     cls.assertEqual(actual, expect)
コード例 #6
0
 def test_em_corporate_clients(cls, data, expect):
     EmploymentManagement(cls.driver).em_corporate_clients()
     if Service.is_element_present(cls.driver, By.LINK_TEXT, '企业客户'):
         actual = 'EM_correct'
     else:
         actual = 'EM_failed'
         cls.driver.refresh()
     cls.assertEqual(actual, expect)
コード例 #7
0
 def test_em_interview_records(cls, data, expect):
     EmploymentManagement(cls.driver).em_interview_records()
     if Service.is_element_present(cls.driver, By.LINK_TEXT, '面试记录'):
         actual = 'EM_correct'
     else:
         actual = 'EM_failed'
         cls.driver.refresh()
     cls.assertEqual(actual, expect)
コード例 #8
0
 def test_am_return(cls, data, expect):
     AdministrativeManagement(cls.driver).am_return_interface()
     if Service.is_element_present(cls.driver, By.LINK_TEXT, '归还记录'):
         actual = 'AM_correct'
     else:
         actual = 'AM_failed'
         cls.driver.refresh()
     cls.assertEqual(actual, expect)
コード例 #9
0
    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)
コード例 #10
0
    def testLogin(cls, uname, upass, ucode, expect):

        # driver =Service.get_driver(add_user_info)
        login_data = {
            'username': add_user_info['username'],
            'password': add_user_info['password'],
            'code': '0000'
        }
        Login(cls.driver).do_login(add_user_info, login_data)
        Service.click_text(cls.driver, '行政综合')
        Service.decryption(cls.driver)
        Service.click_text(cls.driver, '就业培训')
        sleep(5)
        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)
コード例 #11
0
	def fm_financial_statements(self):
		Service.click_text(self.driver, '财务报表')
コード例 #12
0
	def fm_accountant_course(self):
		Service.click_text(self.driver, '会计科目')
コード例 #13
0
	def fm_account_management(self):
		Service.click_text(self.driver, '账户管理')
コード例 #14
0
	def fm_monthly_accounting(self):
		Service.click_text(self.driver, '月度核算')
コード例 #15
0
 def am_return_interface(self):
     Service.click_text(self.driver, '归还记录')
コード例 #16
0
 def am_management_interface(self):
     Service.click_text(self.driver, '采购登记')
コード例 #17
0
	def fm_advance_settlement(self):
		Service.click_text(self.driver, '预支结算')
コード例 #18
0
	def fm_financial_interface(self):
		Service.click_text(self.driver, '财务流水')
コード例 #19
0
 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)
コード例 #20
0
 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, '行政综合')
コード例 #21
0
 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)
コード例 #22
0
 def pm_staff_management(self):
     Service.click_text(self.driver, '员工管理')
コード例 #23
0
 def am_recipients_interface(self):
     Service.click_text(self.driver, '领用登记')
コード例 #24
0
 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, '人事管理')
コード例 #25
0
	def fm_students_tuition(self):
		Service.click_text(self.driver, '学员学费')
コード例 #26
0
 def setUpClass(cls):
     cls.driver = Service.get_driver(add_user_info)
コード例 #27
0
	def fm_deposit_check(self):
		Service.click_text(self.driver, '定金复核')
コード例 #28
0
	def fm_class_management(self):
		Service.click_text(self.driver, '班级管理')
コード例 #29
0
 def pm_attendance_records(self):
     Service.click_text(self.driver, '考勤记录')
コード例 #30
0
 def em_corporate_clients(self):
     Service.click_text(self.driver, '企业客户')