Example #1
0
 def test_O_People_Assist(self):
     global page, Data, PEOPLE
     page = Subject_Config_JM(self.driver, self.base_url, '')
     Data = AllData()
     PEOPLE = People_Assist(self.driver, self.base_url, '')
     page.open()
     page.input_username(Data.name_b)
     page.input_password(Data.pwd)
     page.click_submit()
     self.driver.implicitly_wait(10)
     page.CWJC()
     page.Win_XF()
     page.Win_Split()
     PEOPLE.Assist_Button()
     self.driver.implicitly_wait(10)
     PEOPLE.prevpage()
     PEOPLE.switch_frame(Data.myframe)
     Lab1 = PEOPLE.Clear_Up()
     if Lab1 == '整理':
         self.WriteXlsx(32, 11, "PASS")
     else:
         self.WriteXlsx(32, 11, "ERROR")
         do_log.error("报错:实际与预期不符")
     self.WriteXlsx(32, 10, "Y")
     PEOPLE.switch_frame_default()
     PEOPLE.nextpage()
     PEOPLE.nextpage()
     PEOPLE.switch_frame(Data.myframe)
     Lab2 = PEOPLE.Year_End()
     if Lab2 == '年结':
         self.WriteXlsx(33, 11, "PASS")
     else:
         self.WriteXlsx(33, 11, "ERROR")
         do_log.error("报错:实际与预期不符")
     self.WriteXlsx(33, 10, "Y")
Example #2
0
 def Log_In_DFKM(self):
     '''从登陆界面进入税金科目配置'''
     global page, Data
     page = Subject_Config_JM(self.driver, self.base_url, '')
     Data = AllData()
     page.open()
     page.input_username(Data.name)
     page.input_password(Data.pwd)
     page.click_submit()
     self.driver.implicitly_wait(10)
     page.CWJC()
     page.Win_XF()
     page.Win_Split()
     page.Sbu_Config()
     page.switch_frame(Data.myframe)
Example #3
0
 def Log_In_ERP(self):
     '''从登陆界面进入ERP配置'''
     global page, Data
     page = Subject_Config_JM(self.driver, self.base_url, '')
     Data = AllData()
     page.open()
     page.input_username(Data.name_b)
     page.input_password(Data.pwd)
     page.click_submit()
     self.driver.implicitly_wait(10)
     page.CWJC()
     page.Win_XF()
     page.Win_Split()
     page.ERP_config_Button()
     page.switch_frame(Data.myframe)
     sleep(1)
Example #4
0
 def Log_In_OK_ZD(self):
     '''从登陆界面进入待制单界面'''
     global page, Data, Wait_ZD_ZJM
     page = Subject_Config_JM(self.driver, self.base_url, '')
     Data = AllData()
     Wait_ZD_ZJM = Wait_ZD(self.driver, self.base_url, '')
     page.open()
     page.input_username(Data.name_b)
     page.input_password(Data.pwd)
     page.click_submit()
     self.driver.implicitly_wait(10)
     self.driver.maximize_window()
     page.CWJC()
     page.Win_PZZD()
     page.Win_Split()
     Wait_ZD_ZJM.switch_frame(Data.myframe)
Example #5
0
 def Log_In_Dep_Assist(self):
     '''从登陆界面进入部门辅助核算界面'''
     global page, Data, PEOPLE
     page = Subject_Config_JM(self.driver, self.base_url, '')
     Data = AllData()
     PEOPLE = People_Assist(self.driver, self.base_url, '')
     page.open()
     page.input_username(Data.name_b)
     page.input_password(Data.pwd)
     page.click_submit()
     self.driver.implicitly_wait(10)
     page.CWJC()
     page.Win_XF()
     page.Win_Split()
     PEOPLE.Assist_Button()
     page.switch_frame(Data.myframe)
     PEOPLE.Dep_FZHS_button()
     PEOPLE.switch_frame(Data.people_frame)
Example #6
0
 def Log_In_DF_KMPZ(self):
     '''从登陆界面进入借方科目配置,2020,001,新增按钮'''
     global page, Data
     page = Subject_Config_JM(self.driver, self.base_url, '')
     Data = AllData()
     page.open()
     page.input_username(Data.name)
     page.input_password(Data.pwd)
     page.click_submit()
     self.driver.implicitly_wait(10)
     page.CWJC()
     page.Win_XF()
     page.Win_Split()
     page.Sbu_Config()
     page.switch_frame(Data.myframe)
     page.JF_select_2020()
     page.JF_select_YWDJMJ_A()
     page.JF_ZT_and_001()
     page.Add_Button_JF()
     page.switch_frame_default()
     page.switch_frame(Data.frame1)
Example #7
0
 def test_AA_OK_ZD(self):
     global page, Data, Wait_ZD_ZJM
     page = Subject_Config_JM(self.driver, self.base_url, '')
     Data = AllData()
     Wait_ZD_ZJM = Wait_ZD(self.driver, self.base_url, '')
     page.open()
     page.input_username(Data.name_b)
     page.input_password(Data.pwd)
     page.click_submit()
     self.driver.implicitly_wait(10)
     self.driver.maximize_window()
     page.CWJC()
     page.Win_XF()
     page.Win_Split()
     page.People_Click()
     Wait_ZD_ZJM.switch_frame(Data.myframe)
     self.Glo()
     ZT_infor.Click_mytree_6_span()
     page.CXB_click()
     page.Right_ico()
     page.CXD_click()
     page.Save_Bind()