本文整理汇总了Python中test_case.models.functions.insert_img函数的典型用法代码示例。如果您正苦于以下问题:Python insert_img函数的具体用法?Python insert_img怎么用?Python insert_img使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了insert_img函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: step_createShareClient
def step_createShareClient(context,client_no):
context.client_no = client_no
global nc
nc = createClient(context.driver)
nc.setWaitTime(2)
nc.open_rapidOperation()
nc.open_newClient()
nc.switchToNewClientFrame()
if client_no == '1':
nc.inputMobile(Data.share_phone1)
elif client_no == '2':
nc.inputMobile(Data.share_phone2)
elif client_no == '3':
nc.inputMobile(Data.share_phone3)
else:
print('输入的客户编号错误,请确认输入的编号为: 1,2,3')
nc.checkMobileIsDuplicate()
time.sleep(1)
assert_that(nc.check_num_isExist().strip(), equal_to('验证通过'))
functions.insert_img(context.driver, "shareClient_isNotExist_" + current_time + ".png")
time.sleep(1)
nc.selectCltExeStatus()
nc.selectLoanArea()
nc.saveClient()
time.sleep(1)
functions.insert_img(context.driver, "shareClient_isCreateSuccess_" + current_time + ".png") # 客户详情
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:26,代码来源:ShareClientStep.py
示例2: aa_test_0002_ApproveIntview
def aa_test_0002_ApproveIntview(self):
self.user_login_verify()
intview_appr_page = ApproveIntviewPage(self.driver)
intview_appr_page.intview_DC()
# self.assertEqual(my_order.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__chanl_result_approve_Director.png")
intview_appr_page.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_006_AprroveIntview_testcase.py
示例3: test_7_approveRefund_Cash
def test_7_approveRefund_Cash(self):
self.user_login_verify(username='yangshuai',password='123456',city='shanghai')
refund = RefundPage(self.driver)
refund.approveRefund_Cashier(Data.cmp_name)
#self.assertEqual(my_client.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__myClient_orderCreateCMP.png")
refund.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_018_Refund_testcase.py
示例4: test_2_approveRefund_Director
def test_2_approveRefund_Director(self):
self.user_login_verify(username='pengxiaoli',password='123456',city='suzhou')
refund = RefundPage(self.driver)
refund.approveRefund_Director(Data.cmp_name)
#self.assertEqual(my_client.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__myClient_orderCreateCMP.png")
refund.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_018_Refund_testcase.py
示例5: test_0001_ApproveSalesResult_Finance
def test_0001_ApproveSalesResult_Finance(self):
self.user_login_verify(username=Data.finance_name, password="123456", city=Data.city)
chan_appr_page = SalesResultApprovalPage(self.driver)
chan_appr_page.approveSalesResult_Finance(Data.sal_clt_name)
# self.assertEqual(my_order.search_by_fuzzy(), '需求书修改有限公司)
functions.insert_img(self.driver, current_time + "__sales_result_approve_Finance.png")
chan_appr_page.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_020_AprroveSalesResult_testcase.py
示例6: dd_test_24_approveForceRefund_CustomerService
def dd_test_24_approveForceRefund_CustomerService(self):
self.user_login_verify(username='sunquan',password='123456',city='suzhou')
refund = RefundPage(self.driver)
refund.approveForceRefund_Finance(Data.force_clt_name)
#self.assertEqual(my_client.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__myClient_orderCreateCMP.png")
refund.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_018_Refund_testcase.py
示例7: dd_test_21_createForceRefund_CustomerService
def dd_test_21_createForceRefund_CustomerService(self):
self.user_login_verify(username='chenxiang5134',password='123456',city='shanghai')
refund = RefundPage(self.driver)
refund.createForceRefund(Data.force_clt_name)
#self.assertEqual(my_client.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__myClient_orderCreateCMP.png")
refund.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_018_Refund_testcase.py
示例8: cc_test_20_finalApproveUrgencyRefund_Finance
def cc_test_20_finalApproveUrgencyRefund_Finance(self):
self.user_login_verify(username='sunquan',password='123456',city='suzhou')
refund = RefundPage(self.driver)
refund.final_ApproveUrgencyRefund_Finance(Data.ur_clt_name)
#self.assertEqual(my_client.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__myClient_orderCreateCMP.png")
refund.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_018_Refund_testcase.py
示例9: cc_test_19_approveUrgencyRefund_SalesManager
def cc_test_19_approveUrgencyRefund_SalesManager(self):
self.user_login_verify(username='wangweiwei',password='123456',city='suzhou')
refund = RefundPage(self.driver)
refund.approveUrgencyRefund_SalesManager(Data.ur_clt_name)
#self.assertEqual(my_client.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__myClient_orderCreateCMP.png")
refund.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_018_Refund_testcase.py
示例10: cc_test_16_approveUrgencyRefund_Account
def cc_test_16_approveUrgencyRefund_Account(self):
self.user_login_verify(username='duanxuesa',password='123456',city='shanghai')
refund = RefundPage(self.driver)
refund.approveUrgencyRefund_Accountant(Data.ur_clt_name)
#self.assertEqual(my_client.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__myClient_orderCreateCMP.png")
refund.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_018_Refund_testcase.py
示例11: bb_test_11_approveRefund_Finance
def bb_test_11_approveRefund_Finance(self):
self.user_login_verify(username='sunquan',password='123456',city='suzhou')
refund = RefundPage(self.driver)
refund.approveAimRefund_Finance()
#self.assertEqual(my_client.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__myClient_orderCreateCMP.png")
refund.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_018_Refund_testcase.py
示例12: test_0001_ForceCloseOrder
def test_0001_ForceCloseOrder(self):
self.user_login_verify()
close_order_page = ForceCloseOrderPage(self.driver)
close_order_page.forceCloseOrder(Data.cmp_name)
# self.assertEqual(my_order.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__chanl_result_approve_Director.png")
close_order_page.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_017_ForceCloseOrder_testcase.py
示例13: step_createNewClient
def step_createNewClient(context):
time.sleep(1)
functions.insert_img(context.driver, current_time + "Client_isNotExist_" +current_time+".png")
nc.selectCltExeStatus()
nc.selectLoanArea()
nc.saveClient()
time.sleep(1)
functions.insert_img(context.driver, "Client_isCreateSuccess_"+current_time+".png") # 客户详情
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:CreateClientStep.py
示例14: dd_test_26_approveForceRefund_CFO
def dd_test_26_approveForceRefund_CFO(self):
self.user_login_verify(username='lingju',password='123456',city='shanghai')
refund = RefundPage(self.driver)
refund.approveForceRefund_CFO(Data.force_clt_name)
#self.assertEqual(my_client.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__myClient_orderCreateCMP.png")
refund.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_018_Refund_testcase.py
示例15: test_0001_ApproveChannalResult_Director
def test_0001_ApproveChannalResult_Director(self):
self.user_login_verify(username="yanghongyuan", password="123456", city=Data.city)
chan_appr_page = ChannalResultApprovalPage(self.driver)
chan_appr_page.approveChannalResult_Director(Data.cmp_name)
# self.assertEqual(my_order.search_by_fuzzy(), '需求书修改有限公司')
functions.insert_img(self.driver, current_time + "__chanl_result_approve_Director.png")
chan_appr_page.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_013_AprroveChanalResult_testcase.py
示例16: test_0005_approveAimAmtTransfer_DataManager
def test_0005_approveAimAmtTransfer_DataManager(self):
self.user_login_verify('longlixia','123456','shanghai')
aim_trans = AimTransPage(self.driver)
aim_trans.approveAimTransfer_DataManager(Data.lnk_moblie)
functions.insert_img(self.driver, current_time + "__approve_aim_transfer_DataManager.png")
aim_trans.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_022_AimAmoutTransfer_testcase.py
示例17: test_0002_ApproveSalesResult_DataManager
def test_0002_ApproveSalesResult_DataManager(self):
self.user_login_verify(username="longlixia", password="123456", city="shanghai")
chan_appr_page = SalesResultApprovalPage(self.driver)
chan_appr_page.approveSalesResult_DataManager(Data.sal_clt_name)
# self.assertEqual(my_order.search_by_fuzzy(), '需求书修改有限公司)
functions.insert_img(self.driver, current_time + "__sales_result_approve_DataManager.png")
chan_appr_page.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_020_AprroveSalesResult_testcase.py
示例18: aa_test_0004_approveAimAmtTransfer_DivManager
def aa_test_0004_approveAimAmtTransfer_DivManager(self):
self.user_login_verify(Data.div_manager,'123456',Data.city)
aim_trans = AimTransPage(self.driver)
aim_trans.approveAimTransfer_DivManager(Data.lnk_moblie)
functions.insert_img(self.driver, current_time + "__approve_aim_transfer_DivManager.png")
aim_trans.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:8,代码来源:TC_022_AimAmoutTransfer_testcase.py
示例19: AA_test_4_discarContract
def AA_test_4_discarContract(self):
self.user_login_verify()
arc_contract = ArchiveContractPage(self.driver)
arc_contract.gotoNeedAchiveList(Data.cmp_name)
arc_contract.discarContract(Data.ctr_discar_memo)
# self.assertEqual(my_client.search_by_fuzzy(),'大坤哥自动化')
functions.insert_img(self.driver, current_time + "__discarContract.png")
arc_contract.setWaitTime(2)
arc_contract.close()
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:9,代码来源:TC_008_archiveContract_testcase.py
示例20: step_createSubOrder
def step_createSubOrder(context):
b = Page(context.driver)
time.sleep(1)
b.close_alert()
global my_order
my_order = ServiceManageOrderPage(context.driver)
my_order.createSubOrder(data.getCaseInitClient('我的订单')['cmp_name'], Data.credit_manager, Data.org_name)
my_order.setWaitTime(2)
functions.insert_img(context.driver, "myOrder_createSubsOrder"+current_time+".png")
开发者ID:ykbfb,项目名称:DFSS_Auto_Test_BDD,代码行数:9,代码来源:ServiceManageOrderStep.py
注:本文中的test_case.models.functions.insert_img函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论