Пример #1
0
 def test_delaymanage05(self):
     """复制审批流程"""
     delay = DelayManagePage(self.driver)
     delay.copy_flow("自动流程", "云浮延期流程")
     try:
         message = delay.get_list()
         self.assertEqual("自动流程*", message)
     except Exception as e:
         delay.get_windows_img()
         raise e
Пример #2
0
 def test_delaymanage06(self):
     """删除审批流程"""
     delay = DelayManagePage(self.driver)
     delay.delete_flow("自动流程")
     try:
         message = delay.get_message()
         self.assertEqual("删除流程成功!", message)
     except Exception as e:
         delay.get_windows_img()
         raise e
Пример #3
0
 def test_delaymanage03(self):
     """通过所属单位查询"""
     delay = DelayManagePage(self.driver)
     delay.query_danwei()
     try:
         message = delay.get_list()
         self.assertEqual("自动化查询流程*", message)
     except Exception as e:
         delay.get_windows_img()
         raise e
Пример #4
0
 def test_delaymanage04(self):
     """编辑审批流程"""
     delay = DelayManagePage(self.driver)
     delay.edit_step("自动化流程", "自动流程")
     try:
         message = delay.get_message()
         self.assertEqual("编辑延期申请流程成功!", message)
     except Exception as e:
         delay.get_windows_img()
         raise e
Пример #5
0
 def test_delaymanage01(self):
     """新增审批流程"""
     delay = DelayManagePage(self.driver)
     delay.add_flow("自动化流程", "测试科", "测试专用流程")
     try:
         message = delay.get_message()
         self.assertEqual("新增延期申请流程成功!", message)
     except Exception as e:
         delay.get_windows_img()
         raise e
Пример #6
0
 def test_delaymanage02(self):
     """通过流程名称查询"""
     delay = DelayManagePage(self.driver)
     delay.query_flow("自动化流程")
     try:
         message = delay.get_list()
         self.assertEqual("自动化流程(配置中)", message)
     except Exception as e:
         delay.get_windows_img()
         raise e
 def test_dismissedmanage05(self):
     """复制流程"""
     dismiss = DelayManagePage(self.driver)
     dismiss.copy_flow("自动流程", "海珠区延期")
     try:
         message = dismiss.get_list()
         self.assertEqual("自动流程*", message)
     except Exception as e:
         dismiss.get_windows_img()
         raise e
 def test_dismissedmanage04(self):
     """对申请撤销流程进行编辑:修改流程名称"""
     dismiss = DelayManagePage(self.driver)
     dismiss.edit_step("自动化流程", "自动流程")
     try:
         message = dismiss.get_message()
         self.assertEqual("编辑延期申请流程成功!", message)
     except Exception as e:
         dismiss.get_windows_img()
         raise e
 def test_dismissedmanage03(self):
     """查询所属单位"""
     dismiss = DelayManagePage(self.driver)
     dismiss.query_danwei()
     try:
         message = dismiss.get_list()
         self.assertEqual("自动化查询流程*", message)
     except Exception as e:
         dismiss.get_windows_img()
         raise e
 def test_dismissedmanage02(self):
     """查询流程名称"""
     dismiss = DelayManagePage(self.driver)
     dismiss.query_flow("自动化流程")
     try:
         message = dismiss.get_list()
         self.assertEqual("自动化流程(配置中)", message)
     except Exception as e:
         dismiss.get_windows_img()
         raise e
 def test_dismissedmanage01(self):
     """新增申请撤销流程"""
     dismiss = DelayManagePage(self.driver)
     dismiss.add_flow("自动化流程", "测试科", "测试专用流程")
     try:
         message = dismiss.get_message()
         self.assertEqual("新增延期申请流程成功!", message)
     except Exception as e:
         dismiss.get_windows_img()
         raise e