Exemple #1
0
 def run_test(self):
     self.start_step("等待页面加载完成")
     self.hall_page.wait_element("同步标志")
     UserID = user_info['mid']
     print 'UserID:%s' % UserID
     PHPInterface.broadcast(UserID, content='地方棋牌测试专用')
     self.personinfo_page.screenshot('.png')
Exemple #2
0
 def run_test(self):
     self.start_step("等待页面加载完成")
     self.hall_page.wait_element("同步标志")
     eles_1 = self.hall_page.get_elements('子游戏')
     print eles_1
     self.start_step('进入子游戏')
     eles_1[0].click()
     time.sleep(4)
     eles_2 = self.hall_page.get_elements('场次名称')
     print eles_2
     self.start_step('进入初级场')
     eles_2[0].click()
     time.sleep(5)
     self.start_step('开始发送广播')
     PHPInterface.broadcast(mid = 2008788,content='BroadcastDisplayInGameroomTest')
     time.sleep(2)
     self.hall_page.screenshot('广播.png')
 def run_test(self):
     self.start_step("等待页面加载完成")
     self.hall_page.wait_element("同步标志")
     self.start_step('进入头像界面')
     self.hall_page.wait_element('头像').click()
     self.common.loginuser(self.casedata['user'], self.casedata['password'])
     self.start_step('关闭弹框')
     time.sleep(4)
     i = 0
     while (i < 3):
         try:
             self.sign_page.wait_element('关闭1').click()
             i += 1
         except:
             i = 3
     UserID = self.casedata.get('mid')
     print 'UserID:%s' % UserID
     PHPInterface.broadcast(UserID, content='地方棋牌测试专用')
     self.personinfo_page.screenshot('.png')