def test_delete_resource_application(self):
     audit_number = self.audit.get_text(
         resource_audit.loc("resource_audit_number"))
     self.audit.click_select_edit_audit()
     self.audit.click_button_delete()
     self.audit.not_text_element(
         resource_audit.loc("resource_audit_number"), audit_number,
         "【删除资源申请】")
 def test_audit_manage(self):
     wait_audit_number = self.audit.get_element_num(
         resource_audit.loc("wait_audit_number"))
     num = 0
     while num < wait_audit_number:
         audit_number = self.audit.get_text(
             resource_audit.loc("resource_audit_number"))
         self.audit.click_wait_audit()
         self.audit.click_audit_pass()
         self.audit.not_text_element(
             resource_audit.loc("resource_audit_number"), audit_number,
             "【二级审批管理】")
         num += 1
예제 #3
0
 def test_resource_auth(self):
     wait_audit_number = self.audit.get_element_num(
         resource_audit.loc("resource_auth"))
     num = 0
     while num < wait_audit_number:
         audit_number = self.audit.get_text(
             resource_audit.loc("resource_audit_number"))
         self.audit.click_audit_manage()
         self.audit.click_browse()
         self.audit.click_select_resource_group()
         self.audit.click_finish()
         self.audit.click_confirm_again()
         self.audit.not_text_element(
             resource_audit.loc("resource_audit_number"), audit_number,
             "【管理员资源授权】")
         num += 1
 def test_new_resource_application(self, application_info):
     audit_number = self.audit.get_text(
         resource_audit.loc("resource_audit_number"))
     self.audit.click_new_resource_application()
     self.audit.click_application_class(
         application_info["application_class"])
     self.audit.input_project_name(application_info["application_class"],
                                   application_info["project_name"])
     self.audit.click_start_time()
     self.audit.click_select_time()
     self.audit.click_end_time()
     self.audit.click_select_time()
     self.audit.input_storage_capacity(application_info["storage_capacity"])
     self.audit.click_software_type()
     self.audit.click_add_software()
     self.audit.click_select_software(application_info["select_software"])
     self.audit.input_note(application_info["project_name"])
     self.audit.click_submit()
     self.audit.click_reconfirm(application_info["select_software"])
     self.audit.not_text_element(
         resource_audit.loc("resource_audit_number"), audit_number,
         "新建资源申请【%s】" % application_info["select_software"])
예제 #5
0
 def test_audit_config(self):
     self.audit.click_audit_config()
     self.audit.click_department_list()
     self.audit.click_select_department()
     self.audit.click_add_department()
     self.audit.click_level_one_audit()
     self.audit.click_juji()
     self.audit.click_level_one_chuji()
     self.audit.click_level_one_approver()
     self.audit.click_level_two_audit()
     self.audit.click_juji()
     self.audit.click_level_two_chuji()
     self.audit.click_level_two_approver()
     self.audit.click_save()
     self.driver.refresh()
     self.audit.click_audit_config()
     self.audit.displayed_true(resource_audit.loc("config_check"), "【审批配置】")
예제 #6
0
 def test_examine_record(self):
     self.audit.examine_manage()
     self.audit.click_examine_record()
     self.audit.element_number(resource_audit.loc("examine_record"),
                               data("examine_record"), "【审批人记录】")
예제 #7
0
 def test_submit_record(self):
     self.audit.click_submit_module()
     self.audit.element_number(resource_audit.loc("submit_record"),
                               data("submit_record"), "【提交记录】")
예제 #8
0
 def test_pass_record(self):
     self.audit.click_pass_module()
     self.audit.element_number(resource_audit.loc("pass_record"),
                               data("pass_record"), "【已通过记录】")
 def test_recall_resource_application(self):
     audit_number = self.audit.get_text(resource_audit.loc("resource_audit_number"))
     self.audit.click_button_recall()
     self.audit.not_text_element(resource_audit.loc("resource_audit_number"), audit_number, "【撤回资源申请】")
예제 #10
0
 def test_edit_resource_application(self):
     self.audit.click_select_edit_audit()
     self.audit.click_button_edit()
     self.audit.input_storage_capacity(data("storage_capacity"))
     self.audit.click_submit()
     self.audit.displayed_true(resource_audit.loc("loc_verify"), "【编辑资源申请】")
 def test_hasten_resource_application(self):
     self.audit.click_button_hasten()
     self.audit.displayed_true(resource_audit.loc("loc_hasten"), "【催办资源申请】")