Beispiel #1
0
 def test_me_0017(self):
     """验证邀请有礼正常打开"""
     me_page = MinePage()
     time.sleep(1)
     me_page.click_locator_key_c('邀请有礼')
     self.assertTrue(me_page.check_wait_text_exits('邀请有奖'))
     me_page.click_locator_key_c('我_二级页面_相同返回')
Beispiel #2
0
 def test_me_0019(self):
     """验证我-设置-退出当前账号	中	"1、联网正常
     2、已登陆客户端
     3、在我模块-设置页面"	点击退出当前账号	成功退出登录显示,并跳转至登录页
     """
     me_page = MinePage()
     time.sleep(1)
     for i in range(3):
         if me_page.is_element_already_exist_c('设置'):
             me_page.click_locator_key_c('设置')
             break
         else:
             me_page.page_up()
     time.sleep(1)
     me_page.click_locator_key_c('退出当前账号')
     time.sleep(3)
     self.assertTrue(me_page.check_wait_text_exits('一键登录'))
Beispiel #3
0
 def test_me_0015(self):
     """验证积分页面正常打开"""
     me_page = MinePage()
     count = 3
     flag = False
     while count > 0:
         times = 1 * 60
         me_page.click_locator_key_c('积分')
         while times > 0:
             if me_page.is_text_present_c('已连续签到', default_timeout=0.5):
                 me_page.click_text('我知道了')
             if me_page.is_text_present_c('我的积分', default_timeout=0.5):
                 flag = True
                 break
             times -= 1
         else:
             me_page.click_locator_key_c('我_二级页面_相同返回')
         if flag:
             break
         count -= 1
     self.assertTrue(me_page.check_wait_text_exits('我的积分'))
     me_page.click_locator_key_c('我_二级页面_相同返回')
Beispiel #4
0
 def test_me_0018(self):
     """验证帮助与反馈正常打开"""
     me_page = MinePage()
     me_page.click_locator_key_c('帮助与反馈')
     self.assertTrue(me_page.check_wait_text_exits('帮助与反馈'))
     me_page.click_locator_key_c('我_二级页面_相同返回')
Beispiel #5
0
 def test_me_0014(self):
     """验证卡券页面正常打开"""
     me_page = MinePage()
     me_page.click_locator_key_c('卡券')
     self.assertTrue(me_page.check_wait_text_exits('我的卡券'))
     me_page.click_locator_key_c('我_二级页面_相同返回')
Beispiel #6
0
 def test_me_0013(self):
     """验证活动中心页面正常打开"""
     me_page = MinePage()
     me_page.click_locator_key_c('活动中心')
     self.assertTrue(me_page.check_wait_text_exits('活动中心', timeout=3 * 60))
     me_page.click_locator_key_c('我_二级页面_相同返回')