def main(): #增加配置信息 qihooSetting.init(Settings, Debug) #生成公共类库对象 commlib = qihooCommLib() #用于生成screen的相关数据信息 screen = Screen() rec = screen.getBounds() region = Region(rec) #截图用于报告输出 flag = commlib.screenShots( screen, region, "shouYe.png", qihooConstant.WITHDRAW_RESULT_PAHT + r"begin.png") if (flag == 1): print "find Failed!" withdraw() wait(5) commlib.screenShots(screen, region, "shouYe.png", qihooConstant.WITHDRAW_RESULT_PAHT + r"end.png") #报告文件写入 commlib.writefile(qihooConstant.TAG + qihooConstant.WITHDRAW_RESULT, qihooConstant.WITHDRAW_RESULT_PAHT)
def main(): #增加配置信息 #qihooSetting.init(Settings,Debug) #生成公共类库对象 commlib=qihooCommLib() #用于生成screen的相关数据信息 screen=Screen() rec=screen.getBounds() region=Region(rec) myBankcard() #报告文件写入 commlib.writefile(qihooConstant.TAG+qihooConstant.MY_BANKCARD_RESULT,qihooConstant.MY_BANKCARD_RESULT_PATH)
def main(): #增加配置信息 #qihooSetting.init(Settings,Debug) #生成公共类库对象 commlib = qihooCommLib() #用于生成screen的相关数据信息 screen = Screen() rec = screen.getBounds() region = Region(rec) myBankcard() #报告文件写入 commlib.writefile(qihooConstant.TAG + qihooConstant.MY_BANKCARD_RESULT, qihooConstant.MY_BANKCARD_RESULT_PATH)
def main(): #增加配置信息 #qihooSetting.init(Settings,Debug) #生成公共类库对象 commlib=qihooCommLib() #用于生成screen的相关数据信息 screen=Screen() rec=screen.getBounds() region=Region(rec) #截图用于报告输出 changePassword(True,Screen,Region,commlib) ''' 两次密码修改的时间要有个差值,否则其找不到相关的图片 ''' wait(5) changePassword(False,Screen,Region,commlib) #报告文件写入 commlib.writefile(qihooConstant.TAG+qihooConstant.CHANGE_PASSWORD_RESULT,qihooConstant.CHANGE_PASSWORD_RESULT_PATH)
def main(): #增加配置信息 #qihooSetting.init(Settings,Debug) #生成公共类库对象 commlib=qihooCommLib() #用于生成screen的相关数据信息 screen=Screen() rec=screen.getBounds() region=Region(rec) #截图用于报告输出 flag=commlib.screenShots(screen,region,"shouYe.png",qihooConstant.RECHARGE_RESULT_PATH+r"begin.png") if(flag==1): print "find Failed!" pay() wait(5) commlib.screenShots(screen,region,"shouYe.png",qihooConstant.RECHARGE_RESULT_PATH+r"end.png"); #报告文件写入 commlib.writefile(qihooConstant.TAG+qihooConstant.RECHARGE_RESULT,qihooConstant.RECHARGE_RESULT_PATH)
def main(): #增加配置信息 #qihooSetting.init(Settings,Debug) #生成公共类库对象 commlib = qihooCommLib() #用于生成screen的相关数据信息 screen = Screen() rec = screen.getBounds() region = Region(rec) #截图用于报告输出 changePassword(True, Screen, Region, commlib) ''' 两次密码修改的时间要有个差值,否则其找不到相关的图片 ''' wait(5) changePassword(False, Screen, Region, commlib) #报告文件写入 commlib.writefile(qihooConstant.TAG + qihooConstant.CHANGE_PASSWORD_RESULT, qihooConstant.CHANGE_PASSWORD_RESULT_PATH)