Exemplo n.º 1
0
 def test_003_meeting_addtag(self):
     """设置嘉宾日程及会议标签"""
     t.deprint("开始执行添加嘉宾和日程及会议标签的直播会议的用例3")
     dr = brower()
     o = LoginPage(dr)
     o.login()
     o = ChoosePage(dr)
     o.click_menu_bt('9')
     time.sleep(5)
     gguestnum = Get_Guestnum(dr)
     guestnum = int(gguestnum.get_num())  # 获取嘉宾管理的嘉宾个数
     o = Webinar_IndexPage(dr)
     o.webinar_list()  # 进入直播会议列表
     wbr = Webinar_Create(dr)
     wbr.return_meeting()  # 进入直播会议回收站还原会议
     o.webinar_list()  # 进入直播会议列表
     time.sleep(3)
     o.choose_meeting()  # 选择一场直播中的会议
     wbr_seting = Webcast_Setting(dr)
     wbr_seting.into_baseinfo()  # 进入会议详情的基础设置页面
     wbr_seting.edit_baseinfo()  # 编辑会议的基本信息
     actual_result1 = wbr_seting.add_guest(guestnum)  # 添加会议嘉宾
     # self.assertEqual('嘉宾信息成功',actual_result1,msg='failed')
     # time.sleep(2)
     actual_result2 = wbr_seting.add_agenda()  # 添加会议日程
     print actual_result2
     self.assertEqual(actual_result2, u'添加会议日程成功', msg='failed')
     wbr_seting.quit()
Exemplo n.º 2
0
    def test_004_meeting_addquesluckydraw(self):
        """设置问卷和抽奖"""
        t.deprint("开始执行添加问卷和抽奖的直播会议的用例4")
        dr = brower()
        o = LoginPage(dr)
        o.login()
        o = ChoosePage(dr)
        o.click_menu_bt('9')
        time.sleep(5)
        o = Webinar_IndexPage(dr)
        o.webinar_list()
        o.choose_meeting()
        time.sleep(3)

        interact = InteractionSetting(dr)
        current_handle = interact.interaction_setting()
        time.sleep(2)
        interact.create_questionnar()
        newquestion = NewQuestionnairePage(dr)
        newquestion.creat_new_questionnaire()
        newquestion.edit_questionnaire_subject()
        interact.click_refresh(current_handle)
        time.sleep(2)
        acture_result = interact.create_luckydraw()
        except_result = "抽奖添加成功"
        # wbr = Webinar_Create(dr)
        # wbr.cancel_meeting()
        self.assertEqual(acture_result, except_result, "fail")
        # self.assertTupleEqual(acture_result,except_result,"fail")
        t.deprint("用例4执行完成")
Exemplo n.º 3
0
 def test_005_meeting_indexpage(self):
     """进入直播专题页"""
     t.deprint("开始执行进入直播会场的用例5")
     dr = brower()
     o = LoginPage(dr)
     o.login()
     o = ChoosePage(dr)
     o.click_menu_bt('9')
     time.sleep(5)
     o = Webinar_IndexPage(dr)
     o.webinar_list()  # 进入直播会议的列表
     vtitle = o.choose_meeting()  # 获取一场直播中会议的会议标题
     time.sleep(3)
     index = Webinar_Webcast(dr)
     actual_result1 = index.into_webcast(vtitle)  # 进入直播会议会场,并验证会议标题
     self.assertEqual(actual_result1, u'进入直播会场成功', msg='failed')
     index.quit()
Exemplo n.º 4
0
if __name__ == '__main__':
    dr = brower()
    o = LoginPage(dr)
    o.login()
    o = ChoosePage(dr)
    time.sleep(3)
    o.click_menu_bt('8')
    time.sleep(2)
    # gguestnum = Get_Guestnum(dr)
    # guestnum = int(gguestnum.get_num())
    o = Webinar_IndexPage(dr)
    # o.index_webinar()
    o.webinar_list()
    time.sleep(3)
    o.choose_meeting()
    # wbr = Webinar_Create(dr)
    # wbr.create_meeting()
    wbr_seting = Webcast_Setting(dr)
    wbr_seting.into_baseinfo()
    wbr_seting.edit_baseinfo()

    # wbr_seting.add_guest(3)
    # time.sleep(3)
    # wbr_seting.add_agenda()
    # o.scrollbar("top")

    # scollbarmove = Scrollbar_Move(dr)
    # scollbarmove.scrollbarmovedown()
    # time.sleep(1)
#    # time.sleep(2)
Exemplo n.º 5
0
        self.wait_is_visible(
            'x', '//*[@id="body-box"]/div[1]/div/div[2]/div[2]/input')
        self.deprint('进入直播会场')
        time.sleep(10)
        vtitle = self.wait_is_visible(
            'x', '//*[@id="mCSB_1_container"]/div[1]/div[2]/div[1]')
        time.sleep(5)
        # 判断进入的会场是否是打开的直播会议
        if vtitle == title:
            self.deprint('进入直播会场成功')
            return u'进入直播会场成功'
        else:
            self.deprint('进入直播会场失败')
            return u'进入直播会场失败'


if __name__ == '__main__':
    dr = brower()
    o = LoginPage(dr)
    o.login()
    o = ChoosePage(dr)
    time.sleep(3)
    o.click_menu_bt('8')
    o = Webinar_IndexPage(dr)
    time.sleep(3)
    o.webinar_list()
    vtitle = o.choose_meeting()
    wc = Webinar_Webcast(dr)
    wc.into_webcast(vtitle)
    o.quit()