コード例 #1
0
 def test_set_paypwd7(self, expected=True):
     """重复交易密码输入17位"""
     paypwd(self.driver).modify_paypwd2(ppay=data1[7]['ppay'])
     po = paypwd(self.driver)
     self.assert_equal(po.ppaypwd_error(actual=data1[7]['result']),
                       expected)
     function.insert_img(self.driver, data1[7]['screenshot_name'])
コード例 #2
0
 def test_set_paypwd1(self, expected=True):
     """成功进入设置交易密码页面"""
     paypwd(self.driver).modify_paypwd1()
     po = paypwd(self.driver)
     self.assert_equal(po.enter_paypage(actual=data1[1]['result']),
                       expected)
     function.insert_img(self.driver, data1[1]['screenshot_name'])
コード例 #3
0
 def test_set_paypwd9(self, expected=True):
     """验证码输入错误"""
     paypwd(self.driver).modify_paypwd2()
     po = paypwd(self.driver)
     self.assert_equal(po.code_error(actual=data1[9]['result']), expected)
     function.insert_img(self.driver, data1[9]['screenshot_name'])