def test_scholar_2(self): """ 技能测试--学者转职--机械大师 """ try: print("测试Prof5-转职为学者分支、工程师分支、机械大师分支") self.assertEqual("机械大师", Skill.test_scholar_2(devices)) except: start_Screenshot = "这里是启动报错场景截图的功能" screenshot.get_screen_shot(time.time(), devices, "学者角色技能测试脚本") self.assertEqual("此条的信息请忽略", start_Screenshot)
def test_fashionarcher(self): """ 测试--弓箭手--时装 """ try: print(" Prof2-转职为弓箭手时装模块测试") self.assertEqual("衣柜换装", fashion.test_fashionarcher(devices)) except: start_Screenshot = "这里是启动报错场景截图的功能" screenshot.get_screen_shot(time.time(), devices, "时装测试脚本") self.assertEqual("此条的信息请忽略", start_Screenshot)
def test_thug_4(self): """ 技能测试--刺客转职--暗 """ try: print("测试Prof6-转职为刺客分支、光明之怒分支、暗分支") self.assertEqual("暗", Skill.test_thug_4(devices)) except: start_Screenshot = "这里是启动报错场景截图的功能" screenshot.get_screen_shot(time.time(), devices, "刺客角色技能测试脚本") self.assertEqual("此条的信息请忽略", start_Screenshot)
def test_dance_4(self): """ 技能测试--舞娘转职--刀锋舞者 """ try: print("测试Prof7-转职为舞娘分支、舞者分支、刀锋舞者分支") self.assertEqual("刀锋舞者", Skill.test_dance_4(devices)) except: start_Screenshot = "这里是启动报错场景截图的功能" screenshot.get_screen_shot(time.time(), devices, "战士角色技能测试脚本") self.assertEqual("此条的信息请忽略", start_Screenshot)
def test_test_Horse(self): """ 测试--战士--时装 """ try: print("战士时装模块测试") self.assertEqual("衣柜换装", fashion.test_fashionwarrior(devices)) except: start_Screenshot = "这里是启动报错场景截图的功能" screenshot.get_screen_shot(time.time(), devices, "战士职业时装测试脚本") self.assertEqual("此条的信息请忽略", start_Screenshot)
def test_Chapter_Five(self): """ 主线关卡第五章战斗流程测试--测试自动通关副本,检测地图卡点,对于没有自动战斗的关卡进入副本后退出 """ try: self.assertEqual("Duck", main_ectype.test_Chapter_Five(devices)) except: start_Screenshot = "这里是启动报错场景截图的功能" screenshot.get_screen_shot(time.time(), devices, "主线关卡测试脚本") self.assertEqual("此条的信息请忽略", start_Screenshot)
def test_Archer_5(self): """ 技能测试--弓箭手转职--影舞者 """ try: print("测试Prof2-转职为弓箭手分支、猎人分支、影舞者分支") self.assertEqual("影舞者", Skill.test_Archer_5(devices)) except: start_Screenshot = "这里是启动报错场景截图的功能" screenshot.get_screen_shot(time.time(), devices, "弓箭手角色技能测试脚本") self.assertEqual("此条的信息请忽略", start_Screenshot)
def test_fashionarcher(self): """ 测试--交易所功能 """ # ps: 因为测试环境中没有可以交易的 try: print("交易所功能测试") self.assertEqual("交易所", exchange.Auction(devices)) except: start_Screenshot = "这里是启动报错场景截图的功能" screenshot.get_screen_shot(time.time(), devices, "时装测试脚本") self.assertEqual("此条的信息请忽略", start_Screenshot)
def test_fashionarcher(self): """ 测试--交易所功能 """ # ps: 因为测试环境中没有可以交易的 try: print("黑暗神殿功能测试") self.assertEqual("黑暗神殿[-]", darkness_ectype.darkness_ectype(devices)) except: start_Screenshot = "这里是启动报错场景截图的功能" screenshot.get_screen_shot(time.time(), devices, "时装测试脚本") self.assertEqual("此条的信息请忽略", start_Screenshot)
def test_SysGameMall(self): """ 一级界面--商城模块打开是否正常 """ try: self.assertEqual("CustomerService", index.test_SysGameMall(devices)) except: start_Screenshot = "这里是启动报错场景截图的功能" screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") self.assertEqual("此条的信息请忽略", start_Screenshot) # def test_SysLimitDragon(self): # """ # 一级界面--极限龙本模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysLimitDragon(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysSevenActivity(self): # """ # 一级界面--登陆奖励模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysSevenActivity(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysLive(self): # """ # 一级界面--观看模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysLive(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysOperatingActivity(self): # """ # 一级界面--精彩活动模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysOperatingActivity(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysFirstRecharge(self): # """ # 一级界面--首冲模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysFirstRecharge(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysCarnival(self): # """ # 一级界面--模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysCarnival(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysPVP(self): # """ # 一级界面--竞技场模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysPVP(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysGuild(self): # """ # 一级界面--公会模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysGuild(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysActivity(self): # """ # 一级界面--日常模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysActivity(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # # def test_SysItem(self): # """ # 一级界面--角色模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysItem(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysSkill(self): # """ # 一级界面--技能模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysSkill(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysSprite(self): # """ # 一级界面--精灵模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysSprite(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysEquipCreate(self): # """ # 一级界面--制作模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysEquipCreate(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysHorse(self): # """ # 一级界面--坐骑模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysHorse(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysFriends(self): # """ # 一级界面--好友模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysFriends(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysHome(self): # """ # 一级界面--家园模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysHome(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysRank(self): # """ # 一级界面--排行榜模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysRank(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysCardCollect(self): # """ # 一级界面--图鉴模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysCardCollect(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysNPCFavor(self): # """ # 一级界面--头衔模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysNPCFavor(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_ChatContent(self): # """ # 一级界面--聊天模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_ChatContent(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysPhoto(self): # """ # 一级界面--拍照模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysPhoto(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysLoverDance(self): # """ # 一级界面--双人动作模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysLoverDance(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysDance(self): # """ # 一级界面--跳舞模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysDance(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysHorseRide(self): # """ # 一级界面--坐骑骑乘模块打开是否正常 # """ # try: # self.assertEqual("1", Firstinterface.test_SysHorseRide(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # # def test_SysChange(self): # """ # 一级界面--变强模块打开是否正常 # # """ # try: # self.assertEqual("1", Firstinterface.test_SysChange(devices)) # except: # start_Screenshot = "这里是启动报错场景截图的功能" # screenshot.get_screen_shot(time.time(), devices, "通用测试截图名称") # self.assertEqual("此条的信息请忽略", start_Screenshot) # def tearDown(self): u'''这里放需要在每条用例后执行的部分''' print(f"{devices}结束运行")