Exemple #1
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执行完成")
Exemple #2
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()
Exemple #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()
Exemple #4
0
 def test_002_webinar_publish_cancel(self):
     """创建发布并取消会议"""
     t.deprint("开始执行线上会创建后发布并取消的用例2")
     dr = brower()
     o = LoginPage(dr)
     o.login()
     o = ChoosePage(dr)
     o.click_menu_bt('9')
     time.sleep(5)
     o = Webinar_IndexPage(dr)
     time.sleep(3)
     o.webinar_list()  # 进入线上会直播会议列表
     o.list_create()  # 点击线上会直播列表的创建会议按钮
     wbr = Webinar_Create(dr)
     wbr.create_meeting()  # 创建直播会议
     actual_result = wbr.publish_meeting()  # 发布本会议
     self.assertEqual(actual_result, u'会议发布成功', msg='failed')
     actual_result1 = wbr.cancel_meeting()  # 取消本会议
     self.assertEqual(actual_result1, u'会议取消成功', msg='failed')
     o.quit()
            return u'添加会议日程失败'


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()