def test_column_type_submit(self): '''列-操作类型-提交流程''' menu3 = '列表视图_列_操作类型_提交流程' mp = MainPhonePage(self.driver) mp.open_menus(self.menu1, self.menu2, menu3) # 打开菜单 lp = ListViewPhonePage(self.driver) lp.wait_Tabloading_show_then_hide() if lp.get_rows_total() != 0: lp.clear_all_data() lp.wait_Tabloading_show_then_hide() if lp.get_rows_total() == 0: lp.add_one_row() lp.wait_Tabloading_show_then_hide() if lp.get_rows_total() == 1: lp.click_submit() lp.wait_Tabloading_show_then_hide() lp.set_val_and_submit('请审批') lp.wait_Tabloading_show_then_hide() #点击行数据 lp.open_fisrt_doc() lp.wait_Tabloading_show_then_hide() bp = ButtonPhonePage(self.driver) self.assertEqual(0, bp.is_button_exist('流程处理'), msg='列-操作类型-提交流程检验不通过')
def test_column_type_del(self): '''列-操作类型-删除''' menu3 = '列表视图_列_操作类型_删除' mp = MainPhonePage(self.driver) mp.open_menus(self.menu1, self.menu2, menu3) # 打开菜单 lp = ListViewPhonePage(self.driver) lp.wait_Tabloading_show_then_hide() if lp.get_rows_total() == 0: lp.add_one_row() lp.wait_Tabloading_show_then_hide() if lp.get_rows_total() == 1: lp.click_del() lp.wait_Tabloading_show_then_hide() self.assertEqual(0, lp.get_rows_total(), msg='列-操作类型-删除检验不通过')