def step_acceptOrder(context):
    b = Page(context.driver)
    time.sleep(1)
    b.close_alert()
    global my_order
    my_order = ServiceManageOrderPage(context.driver)
    my_order.acceptOrder(data.getCaseInitClient('我的订单')['cmp_name'])
    my_order.setWaitTime(2)
def step_acceptOrder(context):
    b = Page(context.driver)
    time.sleep(1)
    b.close_alert()
    global my_order
    my_order = ServiceManageOrderPage(context.driver)
    my_order.acceptOrder(data.getCaseInitClient('我的订单')['cmp_name'])
    my_order.setWaitTime(2)
    def aa_test_0001_acceptOrder(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.acceptOrder(Data.cmp_name)
        my_order.setWaitTime(2)

        #校验接单成功
        self.assertEqual(my_order.verifyOrderAcceptSucess().strip(), '暂无查询到任何数据...')
        functions.insert_img(self.driver, current_time + "__myOrder_verifyOrderAcceptSucess.png")
        my_order.close()
Esempio n. 4
0
 def test_0001_acceptOrder(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.acceptOrder(Data.cmp_name)
     my_order.setWaitTime(2)
     # self.assertEqual(my_order.search_by_fuzzy(), '需求书修改有限公司')
     functions.insert_img(self.driver,
                          current_time + "__myOrder_fuzzysearch.png")
     my_order.setWaitTime(2)
     my_order.close()