def aa_test_0009_OrgApprovePass(self): self.user_login_verify() time.sleep(1) b = Page(self.driver) time.sleep(1) b.close_alert() my_order = ServiceManageOrderPage(self.driver) my_order.orgApprovePass(Data.cmp_name) my_order.setWaitTime(2) # self.assertEqual(my_order.search_by_fuzzy(), '需求书修改有限公司') functions.insert_img(self.driver, current_time + "__myOrder_OrgApprov_pass.png") my_order.setWaitTime(2) my_order.close()
def step_OrgApprove(context,appv_status): b = Page(context.driver) time.sleep(1) b.close_alert() global my_order my_order = ServiceManageOrderPage(context.driver) context.appv_status = appv_status if appv_status == '不通过': my_order.orgApproveReject(data.getCaseInitClient('我的订单')['cmp_name']) my_order.setWaitTime(2) functions.insert_img(context.driver, "myOrder_OrgApprove_reject_"+current_time+".png") elif appv_status == '通过': my_order.orgApprovePass(data.getCaseInitClient('我的订单')['cmp_name']) my_order.setWaitTime(2) functions.insert_img(context.driver, "myOrder_OrgApprov_pass_"+current_time+".png")
def step_OrgApprove(context, appv_status): b = Page(context.driver) time.sleep(1) b.close_alert() global my_order my_order = ServiceManageOrderPage(context.driver) context.appv_status = appv_status if appv_status == '不通过': my_order.orgApproveReject(data.getCaseInitClient('我的订单')['cmp_name']) my_order.setWaitTime(2) functions.insert_img( context.driver, "myOrder_OrgApprove_reject_" + current_time + ".png") elif appv_status == '通过': my_order.orgApprovePass(data.getCaseInitClient('我的订单')['cmp_name']) my_order.setWaitTime(2) functions.insert_img(context.driver, "myOrder_OrgApprov_pass_" + current_time + ".png")