Esempio n. 1
0
    def test_webhook_no_configure(self):
        self.home_page.click_app("other")

        self.home_page.check_app_loaded()
        self.home_page.click_debug_link()

        debug_page = DebugPage(self.driver)
        debug_page.check_debugpage_loaded()
        debug_page.click_search()
        result = debug_page.Get_result()
        print "test_webhook_no_configure: "+ result
        self.assertIn(u"您还没有配置",result)

        debug_page.Goto_applist()
Esempio n. 2
0
    def test_chargeid_paid(self):
        self.home_page.click_app("my")

        self.home_page.check_app_loaded()
        self.home_page.click_debug_link()

        debug_page = DebugPage(self.driver)
        debug_page.check_debugpage_loaded()
        debug_page.input_charge_paid()
        debug_page.click_search()
        debug_page.verify_result()

        debug_page.Goto_applist()
Esempio n. 3
0
    def test_webhooks_testmode(self):
        self.home_page.click_app("my")

        self.home_page.check_app_loaded()
        self.home_page.click_debug_link()
        debug_page = DebugPage(self.driver)
        debug_page.check_debugpage_loaded()
        debug_page.switchTo_TestMode()

        debug_page.check_webhook_NoExist()
Esempio n. 4
0
    def test_order_To_charges(self):
        self.home_page.click_app("my")

        self.home_page.check_app_loaded()
        self.home_page.click_debug_link()

        debug_page = DebugPage(self.driver)
        debug_page.input_ordernum()
        debug_page.click_search()
        debug_page.verify_chargelist()

        debug_page.Goto_applist()
Esempio n. 5
0
    def test_order_other_account(self):
        self.home_page.click_app("my")
        self.home_page.check_app_loaded()

        self.home_page.click_debug_link()
        debug_page = DebugPage(self.driver)
        debug_page.check_debugpage_loaded()

        debug_page.input_charge_other_account()
        debug_page.click_search()
        result = debug_page.Get_result()
        print result
        self.assertIn(u"查询不到该笔订单的信息",result)
        debug_page.Goto_applist()
Esempio n. 6
0
    def test_order_NoPaid(self):
        self.home_page.click_app("my")

        self.home_page.check_app_loaded()
        self.home_page.click_debug_link()

        debug_page = DebugPage(self.driver)
        debug_page.check_debugpage_loaded()
        debug_page.input_charge_NoPaid()
        debug_page.click_search()
        result = debug_page.Get_result()
        print result
        self.assertIn(u"该订单没有支付成功,无支付成功的Webhooks记录",result)
        debug_page.Goto_applist()
Esempio n. 7
0
    def test_charge_invalid(self):
        self.home_page.click_app("my")

        self.home_page.check_app_loaded()
        self.home_page.click_debug_link()

        debug_page = DebugPage(self.driver)
        debug_page.check_debugpage_loaded()
        debug_page.input_charge_invalid()
        debug_page.click_search()
        result = debug_page.Get_result()
        self.assertIn(u"您输入的订单号不合法",result)

        debug_page.Goto_applist()