Esempio n. 1
0
 def test_operat_require5(self,expected=True):
     """点击删除弹出提示框"""
     po = oprequire(self.driver)
     po.next_open()
     po.click_delete()
     self.assert_equal(po.enter_delete(actual=data1[4]['result']), expected)
     function.insert_img(self.driver, data1[4]['screenshot_name'])
Esempio n. 2
0
 def test_personal_profile4(self, expected=True):
     """未选择省,提示请选择"""
     self.place_verify1()
     po = personal(self.driver)
     self.assert_equal(po.province_null(actual=data1[6]['result']),
                       expected)
     function.insert_img(self.driver, data1[6]['screenshot_name'])
Esempio n. 3
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'])
Esempio n. 4
0
 def test_user_register2(self, expected=True):
     """手机号输入有误"""
     po = login_register(self.driver)
     po.register1(phone=data1[2]["phone"])
     po.click_register()
     self.assert_equal(po.phone_error(actual=data1[2]["result"]), expected)
     function.insert_img(self.driver, data1[2]['screenshot_name'])
Esempio n. 5
0
 def test_user_register6(self, expected=True):
     """手机号输入17位"""
     po = login_register(self.driver)
     po.register1(pwd=data1[6]["pwd"])
     po.click_register()
     self.assert_equal(po.pwd_error(actual=data1[6]["result"]), expected)
     function.insert_img(self.driver, data1[6]['screenshot_name'])
Esempio n. 6
0
 def test_card_mannage3(self, expected=True):
     """弹出删除名片提示框"""
     po = card_manage(self.driver)
     po.next_open()
     po.click_delete()
     self.assert_equal(po.delete_box(actual=data1[2]["result"]), expected)
     function.insert_img(self.driver, data1[2]["screenshot_name"])
Esempio n. 7
0
 def test_relsdemand6(self, expected=True):
     """未选择报价截止时间"""
     po = release(self.driver)
     po.submit_demand3()
     po.submit_comand()
     self.assert_equal(po.time_null(actual=data1[6]['result']), expected)
     function.insert_img(self.driver, data1[6]['screenshot_name'])
 def test_basic_documentF(self, expected=True):
     """联系人职位输入11位"""
     center(self.driver).upload_information2(title=data1[15]['title'])
     po = center(self.driver)
     self.assert_equal(po.contact_title_null(actual=data1[15]['result']),
                       expected)
     function.insert_img(self.driver, data1[15]['screenshot_name'])
 def test_basic_documentH(self, expected=True):
     """邮箱输入错误"""
     center(self.driver).upload_information2(email=data1[17]['email'])
     po = center(self.driver)
     self.assert_equal(po.contact_email_null(actual=data1[17]['result']),
                       expected)
     function.insert_img(self.driver, data1[17]['screenshot_name'])
Esempio n. 10
0
 def test_forget_pwd4(self, expected=True):
     """当前用户未设置密保"""
     po = forget(self.driver)
     po.forget_pwd1(username=data1[4]['username'])
     self.assert_equal(po.username_error(actual=data1[4]['result']),
                       expected)
     function.insert_img(self.driver, data1[4]['screenshot_name'])
Esempio n. 11
0
 def test_forget_pwd6(self, expected=True):
     """输入账号正确,进入密保"""
     po = forget(self.driver)
     po.forget_pwd1(username=data1[6]['username'])
     self.assert_equal(po.username_succ(actual=data1[6]['result']),
                       expected)
     function.insert_img(self.driver, data1[6]['screenshot_name'])
Esempio n. 12
0
 def test_login1_success(self, expected=True):
     """登录成功"""
     po = login(self.driver)
     po.user_login(data_succeed['username'], data_succeed['password'],
                   data_succeed['captcha'])
     self.assert_equal(po.login_succeed(data_succeed['result']), expected)
     function.insert_img(self.driver, data_succeed['screenshot_name'])
Esempio n. 13
0
 def test_withdraw_deposit4(self, expected=True):
     """提现金额输入为空"""
     po = withdraw(self.driver)
     po.deposit2(pword=data1[4]['pword'])
     self.assert_equal(po.password_null(actual=data1[4]['result']),
                       expected)
     function.insert_img(self.driver, data1[4]['screenshot_name'])
Esempio n. 14
0
 def test_withdraw_deposit2(self, expected=True):
     """支付宝账号输入为空"""
     po = withdraw(self.driver)
     po.deposit2(uname=data1[2]['uname'])
     self.assert_equal(po.username_null(actual=data1[2]['result']),
                       expected)
     function.insert_img(self.driver, data1[2]['screenshot_name'])
 def test_login2(self, expected=True):
     """密码输入有误"""
     po = login(self.driver)
     po.user_login(password=data1[2]['password'])
     self.assert_equal(po.pawd_error_hint(actual=data1[2]['result']),
                       expected)
     function.insert_img(self.driver, data1[2]['screenshot_name'])
Esempio n. 16
0
 def test_basic_documentK(self, expected=True):
     """联系方式输入12位"""
     center(self.driver).upload_information2(phone2=data1[20]['phone2'])
     po = center(self.driver)
     self.assert_equal(po.contact_phone_null(actual=data1[20]['result']),
                       expected)
     function.insert_img(self.driver, data1[20]['screenshot_name'])
Esempio n. 17
0
 def test_card_mannage2(self, expected=True):
     """查看收藏企业名片"""
     po = card_manage(self.driver)
     po.next_open()
     po.view_collectcard()
     self.assert_equal(po.view_card(actual=data1[1]["result"]), expected)
     function.insert_img(self.driver, data1[1]["screenshot_name"])
Esempio n. 18
0
 def test_basic_document3(self, expected=True):
     """公司名称输入21位"""
     center(self.driver).upload_information2(name=data1[3]['name'])
     po = center(self.driver)
     self.assert_equal(po.company_name_null(actual=data1[3]['result']),
                       expected)
     function.insert_img(self.driver, data1[3]['screenshot_name'])
Esempio n. 19
0
 def test_relsdemand4(self, expected=True):
     """描述需求输入31位"""
     po = release(self.driver)
     po.submit_demand3(demand=data1[4]['demand'])
     po.submit_comand()
     self.assert_equal(po.demand_error(actual=data1[4]['result']), expected)
     function.insert_img(self.driver, data1[4]['screenshot_name'])
Esempio n. 20
0
 def test_basic_document5(self, expected=True):
     """营业执照编号输入错误"""
     center(self.driver).upload_information2(number=data1[5]['number'])
     po = center(self.driver)
     self.assert_equal(po.license_number_null(actual=data1[5]['result']),
                       expected)
     function.insert_img(self.driver, data1[5]['screenshot_name'])
Esempio n. 21
0
 def test_recharge_amount3(self, expected=True):
     """跳转至联系客服"""
     po = recharge(self.driver)
     po.money2(data1[3]['money'])
     po.customer_service()
     self.assert_equal(po.skip_service(actual=data1[3]['result']), expected)
     function.insert_img(self.driver, data1[3]['screenshot_name'])
Esempio n. 22
0
 def test_basic_document7(self, expected=True):
     """公司地址输入1位"""
     center(self.driver).upload_information2(address=data1[7]['address'])
     po = center(self.driver)
     self.assert_equal(po.company_address_null(actual=data1[7]['result']),
                       expected)
     function.insert_img(self.driver, data1[7]['screenshot_name'])
Esempio n. 23
0
 def test_user_register3(self, expected=True):
     """验证码输入有误"""
     po = login_register(self.driver)
     po.register1(code=data1[3]["code"])
     po.click_register()
     self.assert_equal(po.code_error(actual=data1[3]["result"]), expected)
     function.insert_img(self.driver, data1[3]['screenshot_name'])
Esempio n. 24
0
 def test_basic_document9(self, expected=True):
     """公司电话输入错误"""
     center(self.driver).upload_information2(phone1=data1[9]['phone1'])
     po = center(self.driver)
     self.assert_equal(po.company_phone_null(actual=data1[9]['result']),
                       expected)
     function.insert_img(self.driver, data1[9]['screenshot_name'])
Esempio n. 25
0
 def test_user_register9(self, expected=True):
     """进入用户注册协议页面"""
     po = login_register(self.driver)
     po.next_open()
     po.register_agree()
     self.assert_equal(po.enter_agree(actual=data1[9]["result"]), expected)
     function.insert_img(self.driver, data1[9]['screenshot_name'])
Esempio n. 26
0
 def test_basic_documentB(self, expected=True):
     """联系人姓名输入1位"""
     center(self.driver).upload_information2(contact=data1[11]['contact'])
     po = center(self.driver)
     self.assert_equal(po.contacts_null(actual=data1[11]['result']),
                       expected)
     function.insert_img(self.driver, data1[11]['screenshot_name'])
Esempio n. 27
0
 def test_personal_profile7(self, expected=True):
     """个人资料更新成功"""
     self.all_verify()
     po = personal(self.driver)
     self.assert_equal(po.modify_successful(actual=data1[9]['result']),
                       expected)
     function.insert_img(self.driver, data1[9]['screenshot_name'])
 def test_login1(self, expected=True):
     """用户名输入有误"""
     po = login(self.driver)
     po.user_login(username=data1[1]['username'])
     self.assert_equal(po.user_error_hint(actual=data1[1]['result']),
                       expected)
     function.insert_img(self.driver, data1[1]['screenshot_name'])
Esempio n. 29
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'])
Esempio n. 30
0
 def test_operat_require4(self,expected=True):
     """需求列表点击进入需求详情"""
     po = oprequire(self.driver)
     po.next_open()
     po.click_detail()
     self.assert_equal(po.enter_describe(actual=data1[3]['result']), expected)
     function.insert_img(self.driver, data1[3]['screenshot_name'])