def test_BMc_swipe(self):
     '''test002:验证首页--会员中心,上滑查看'''
     try:
         fo = MemberPage(self.driver)
         fo.Mc_swip()
         po = Operation(self.driver)
     except:
         po = Operation(self.driver)
         po.screenShot()
    def test_AMc_detail(self):
        '''test001验证首页-会员中心--查看详细信息'''
        try:
            fo = MemberPage(self.driver)
            fo.Mc_detail()

        except:
            po = Operation(self.driver)
            po.screenShot()
Esempio n. 3
0
    def test_ALogin(self):
        '''首页--小知识--随机播放'''
        try:
            ho = HomePage(self.driver)
            ho.login_or_not()

        except:
            po = Operation(self.driver)
            po.screenShot()
            raise LocateError('定位失败,请核查原因!')
    def test_Bvip_play_all(self):
        '''首页--小知识--vip榜--播放全部'''
        try:
            ho = HomePage(self.driver)
            ho.leaderboard()
            lo = LeaderPage(self.driver)
            lo.vip_play_all()

        except:
            po = Operation(self.driver)
            po.screenShot()
Esempio n. 5
0
 def test_EKnowledge_list_sort(self):
     '''首页--小知识--排序'''
     try:
         ho = HomePage(self.driver)
         ho.small_knowlege()
         so = SmallPage(self.driver)
         so.Knowledge_list_sort()
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError()
Esempio n. 6
0
 def test_DSubscribe_cancel(self):
     '''首页--小知识--取消订阅'''
     try:
         ho = HomePage(self.driver)
         ho.small_knowlege()
         so = SmallPage(self.driver)
         so.Subscribe_cancel()
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError()
Esempio n. 7
0
 def test_Arangdom_play(self):
     '''首页--小知识--随机播放'''
     try:
         ho = HomePage(self.driver)
         ho.small_knowlege()
         so = SmallPage(self.driver)
         so.random_play()
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError()
Esempio n. 8
0
 def test_Gchange_portrait_sure(self):
     '''我的页面test007-点击头像-更换头像-确定'''
     try:
         ho = HomePage(self.driver)
         ho.clickbottom(3)
         mo = MinePage(self.driver)
         mo.change_portrait_sure()
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
    def test_Ahot_play_download_select_all(self):
        '''首页--热播榜--随机下载'''
        try:
            ho = HomePage(self.driver)
            ho.leaderboard()
            lo = LeaderPage(self.driver)
            lo.hot_play_download_random_select()
            print('操作成功')

        except:
            po = Operation(self.driver)
            po.screenShot()
Esempio n. 10
0
    def test_Home_login_thirtyday(self):
        '''test017:验证首页查看宝贝成就最近30天'''
        try:
            print('进入app首页')
            ho = HomePage(self.driver)
            ho.Person_archivement()
            mo = MinePage(self.driver)
            mo.login_days_thirtyday()

        except:
            po = Operation(self.driver)
            po.screenShot()
Esempio n. 11
0
 def test_Fbuyed_update(self):
     '''我的页面test006-已购买的--更新提醒页面'''
     try:
         ho = HomePage(self.driver)
         ho.clickbottom(3)
         mo = MinePage(self.driver)
         mo.go_buyed()
         mo.go_buyed_updatenotice()
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
Esempio n. 12
0
    def test_Ebuyed_order(self):
        '''我的页面test005-已购买的--我的订单页面'''
        try:

            ho = HomePage(self.driver)
            ho.clickbottom(3)
            mo = MinePage(self.driver)
            mo.go_buyed()
            mo.go_buyed_order()
            print('操作成功!')
        except:
            po = Operation(self.driver)
            po.screenShot()
            raise LocateError('定位失败,请核查原因!')