当前位置: 首页>>代码示例>>Python>>正文


Python functions.insert_img函数代码示例

本文整理汇总了Python中test_case.models.functions.insert_img函数的典型用法代码示例。如果您正苦于以下问题:Python insert_img函数的具体用法?Python insert_img怎么用?Python insert_img使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了insert_img函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


注:本文中的test_case.models.functions.insert_img函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。