Exemplo n.º 1
0
 def test_Hkcoin_rechare_record(self):
     '''我的页面test009-充值K币-充值记录'''
     try:
         po = HomePage(self.driver)
         po.clickbottom(3)
         po = MinePage(self.driver)
         po.Kcoin_record_list()
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
Exemplo n.º 2
0
 def test_Mmy_like_story_download(self):
     '''我的页面--我喜欢的--故事-随机下载一个'''
     try:
         po = HomePage(self.driver)
         po.clickbottom(3)
         po = MinePage(self.driver)
         po.my_like_story_download()
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
Exemplo n.º 3
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('定位失败,请核查原因!')
Exemplo n.º 4
0
 def test_Arecent_login(self):
     '''我的页面-test001验证最近登录'''
     try:
         po = HomePage(self.driver)
         po.clickbottom(3)
         po = MinePage(self.driver)
         po.recentlogin()
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
Exemplo n.º 5
0
 def test_Bmine_head_name(self):
     '''我的页面test002-更换姓名'''
     try:
         po = HomePage(self.driver)
         po.clickbottom(3)
         po = MinePage(self.driver)
         po.headname_test()
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
Exemplo n.º 6
0
 def test_KGa_album_list(self):
     '''我的页面test014-我的专辑--查看列表'''
     try:
         po = HomePage(self.driver)
         po.clickbottom(3)
         po = MinePage(self.driver)
         po.Ga_album_list()
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
Exemplo n.º 7
0
 def test_KGc_coupon(self):
     '''我的页面test013-优惠券-已失效'''
     try:
         po = HomePage(self.driver)
         po.clickbottom(3)
         po = MinePage(self.driver)
         po.Gc_coupon()
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
Exemplo n.º 8
0
 def test_JLi_pin_card_shop(self):
     '''我的页面test012-礼品卡-商城-更多'''
     try:
         po = HomePage(self.driver)
         po.clickbottom(3)
         po = MinePage(self.driver)
         po.Li_pin_card_shop()
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
Exemplo n.º 9
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('定位失败,请核查原因!')
Exemplo n.º 10
0
 def test_Dbuyed_story(self):
     '''我的页面test004-已购买的--故事'''
     try:
         po = HomePage(self.driver)
         po.clickbottom(3)
         po = MinePage(self.driver)
         po.go_buyed()
         po.go_buyed_story()
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
Exemplo n.º 11
0
 def test_Cbuyed_notice(self):
     '''我的页面test003-已购买的--课程'''
     try:
         po = HomePage(self.driver)
         po.clickbottom(3)
         po = MinePage(self.driver)
         po.go_buyed()
         po.go_buyed_course()
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
Exemplo n.º 12
0
    def test_Rrecent_play_course_list(self):
        '''我的页面--最近播放--课程列表'''

        try:
            po = HomePage(self.driver)
            po.clickbottom(3)
            po = MinePage(self.driver)
            po.recent_play_course_list()
            print('操作成功!')
        except:
            po = Operation(self.driver)
            po.screenShot()
            raise LocateError('定位失败,请核查原因!')
Exemplo n.º 13
0
    def test_Qmy_like_album(self):
        '''我的页面--我喜欢的--专辑'''

        try:
            po = HomePage(self.driver)
            po.clickbottom(3)
            po = MinePage(self.driver)
            po.my_like_album()
            print('操作成功!')
        except:
            po = Operation(self.driver)
            po.screenShot()
            raise LocateError('定位失败,请核查原因!')
Exemplo n.º 14
0
 def test_Bclick_Bottomicon(self):
     '''test002:验证首页底部按钮切换功能'''
     try:
         print('进入app首页')
         po = HomePage(self.driver)
         print('点击课程,进入课程页面')
         po.clickbottom(2)
         po = Operation(self.driver)
         time.sleep(1)
         po.swipeUp(500)
         print('查看成功')
     except:
         po = Operation(self.driver)
         po.screenShot()
Exemplo n.º 15
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('定位失败,请核查原因!')
Exemplo n.º 16
0
 def test_KGa_new_album(self):
     '''我的页面test015-我的专辑--新建专辑'''
     try:
         po = HomePage(self.driver)
         po.clickbottom(3)
         po = MinePage(self.driver)
         mname = format(sys._getframe().f_code.co_name)
         newname = ReadData.readdata(mname)
         po.Ga_album_new(newname)
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')
Exemplo n.º 17
0
 def test_IDh_code_test(self):
     '''我的页面test010-兑换码-兑换'''
     try:
         po = HomePage(self.driver)
         po.clickbottom(3)
         mname = format(sys._getframe().f_code.co_name)  # 获取当前的类名和方法名
         data = ReadData.readdata(mname)
         po = MinePage(self.driver)
         po.Dh_code_test(data[0])
         print('操作成功!')
     except:
         po = Operation(self.driver)
         po.screenShot()
         raise LocateError('定位失败,请核查原因!')