def test_Login_canshuhua(self): u'''登录''' listdata = excel_table_byindex("E:\\python\\appium\\my_po_appium_xinban\\test_case\\ceshicase.xlsx", 0) if (len(listdata) <= 0): assert 0, u"Excel数据异常" print(len(listdata)) for i in range(0, len(listdata)): pohome = Home_page() # sleep(5) pohome.myaccount() popage = LoginPage() # sleep(7) # popage.swipe_Rigth() # popage.swipe_Rigth() # popage.swipe_Rigth() # 用for循环控制多次执行一个自定义函数 # for i in range(1, 3): # popage.swipeRight() # map(lambda x: popage.swipe_Rigth(), range(0, 3)) # popage.usr_pwd_button('13011111111', '111111') # popage.login2_Action('13011111101', '111111') popage.login(listdata[i]['username'], listdata[i]['password']) pologinout = TuichuPage() pologinout.tuichudenglu_Action() sleep(10)
def test_genggaisanfangshoujihao(self): u'''更改三方手机号''' popage = LoginPage() username = '******' popage.login(username, '111111') pogenggaisanfangshoujihao = Genggaisanfangshoujihao() pogenggaisanfangshoujihao.genggaisanfangshoujihao_Action( username, '111111')
def test_register(self): u'''注册''' pohome = Home_page() sleep(7) pohome.home_account() poaccount = LoginPage() poaccount.go_register_Action() pozhuce = Zhucepage() pozhuce.zhuce_Action(13011111101, 111111, 111111)
def test_Login(self): u'''登录''' pohome = Home_page() sleep(7) pohome.myaccount() popage = LoginPage() popage.login('13011111101', '111111') sleep(2) pologinout = TuichuPage() pologinout.tuichudenglu_Action() sleep(10)
def test_chongzhi(self): u'''充值''' pohome = Home_page() sleep(7) pohome.myaccount() popage = LoginPage() popage.login('13011111103', '111111') pochongzhi = ChongzhiPage() # pochongzhi.chongzhi_Action('金额', '111111') pochongzhi.chongzhi_Action('10', '111111') pologinout = TuichuPage() pologinout.tuichudenglu_Action()
def test_Tixian(self): u'''提现''' pohome = Home_page() sleep(7) pohome.myaccount() popage = LoginPage() popage.login('13011111103', '111111') sleep(1) pochongzhi = TixianPage() # pochongzhi.chongzhi_Action('金额', '111111') pochongzhi.tixian_Action('10', '111111') sleep(10)
def test_qiandao(self): u'''登录''' pohome = Home_page() sleep(7) pohome.myaccount() popage = LoginPage() popage.login('13011111101', '111111') pohome.meiriqiandao_Action() pojietu = Appium() sleep(1) pojietu.get_screenshot_as_file("F:\\work\\python\\jietu\\" + "签到成功.png") sleep(10)
def test_register_shiming_shezhijiaoyimima(self): u'''注册,实名,设置交易密码''' pohome = Home_page() sleep(7) pohome.home_account() poaccount = LoginPage() poaccount.go_register_Action() pozhuce = Zhucepage() pozhuce.zhuce_Action(13011111101, 111111, 111111) poshiming = Shiming() # poshiming.shiming_Action('姓名', '身份证', '银行卡', '手机') poshiming.shiming_Action('', '', '', '') poshezhijiaoyimima = Shezhijiaoyimima() poshezhijiaoyimima.shezhijiaoyimima_Action()
def test_Login_shiming_shezhijiaoyimima(self): u'''登录,实名,设置交易密码''' pohome = Home_page() sleep(7) pohome.myaccount() popage = LoginPage() # popage.usr_pwd_button('13511324283', '111111') popage.login('13511324283', '111111') poshiming = Shiming() # poshiming.shiming_Action('姓名', '身份证', '银行卡', '手机') poshiming.shiming_Action('李测试账户八', '310101198812177516', '3005457710442524', '15120080522') # poshezhijiaoyimima = Shezhijiaoyimima() # poshezhijiaoyimima.shezhijiaoyimima_Action() pologinout = TuichuPage() pologinout.tuichudenglu_Action()
def test_Login(self): u'''登录''' pohome = Home_page() sleep(7) pohome.myaccount() popage = LoginPage() # sleep(7) # popage.swipe_Rigth() # popage.swipe_Rigth() # popage.swipe_Rigth() # 用for循环控制多次执行一个自定义函数 # for i in range(1, 3): # popage.swipeRight() # map(lambda x: popage.swipe_Rigth(), range(0, 3)) # popage.usr_pwd_button('13011111111', '111111') # popage.login2_Action('13011111101', '111111') popage.login('13011111101', '111111') sleep(10)
def test_shezhijiaoyimima(self): u'''设置交易密码''' popage = LoginPage() popage.login('13011111101', '111111') poshezhijiaoyimima = Shezhijiaoyimima() poshezhijiaoyimima.shezhijiaoyimima_Action()
def test_jiebangyinhangka(self): u'''解绑银行卡''' popage = LoginPage() popage.login('15895809813', '111111') pojiebangka = Bangka() pojiebangka.jiebangka_Action()
def test_bangdingyinhangka(self): u'''绑定银行卡''' popage = LoginPage() popage.login('15895809813', '111111') pobangdingyinhangka = Bangka() pobangdingyinhangka.bangka_Action()