def test_save_Comment_topic(): Logger.info('-------------------开始执行用例:【发表评论 :正常】--------------------') url = Config.HttpConfig_ronghe3().URL + Config.HttpConfig_ronghe3( ).saveComment.path + '?' + Config.HttpConfig_ronghe3( ).saveComment.param1 + '&' + Config.HttpConfig_ronghe3( ).saveComment.param2 + '&' + Config.HttpConfig_ronghe3( ).saveComment.param3 + '&' + Config.HttpConfig_ronghe3( ).saveComment.param4 + '&' + Config.HttpConfig_ronghe3( ).saveComment.param5 + '&' + Config.HttpConfig_ronghe3().saveComment.param6 data = {} common_itemconfig_result = Common.revoke_get_request(url, data) Response.http_code_check(Config.HttpConfig_ronghe3().saveComment.resp, common_itemconfig_result) Verify.IsTrue( Common.get_http_code(url, data) == requests.codes.ok, Config.HttpConfig_ronghe3().REQ_CODE) Logger.info('-------------------结束执行用例:【发表评论 :正常】--------------------')
def test_get_ActTimer_topic(): Logger.info( '-------------------开始执行用例:【获取猜广告游戏的配置 :正常】--------------------') url = Config.HttpConfig_ronghe3().URL + Config.HttpConfig_ronghe3( ).getActTimer.path + '?' + Config.HttpConfig_ronghe3( ).getActTimer.param1 + '&' + Config.HttpConfig_ronghe3( ).getActTimer.param2 + '&' + Config.HttpConfig_ronghe3( ).getActTimer.param3 + '&' + Config.HttpConfig_ronghe3().getActTimer.param4 data = {} common_itemconfig_result = Common.revoke_get_request(url, data) Response.http_code_check(Config.HttpConfig_ronghe3().getActTimer.resp, common_itemconfig_result) Verify.IsTrue( Common.get_http_code(url, data) == requests.codes.ok, Config.HttpConfig_ronghe3().REQ_CODE) Logger.info( '-------------------结束执行用例:【获取猜广告游戏的配置 :正常】--------------------')
def test_get_lottery_shake(): Logger.info('-------------------开始执行用例:【摇动抽奖 :正常】--------------------') url = Config.HttpConfig_ronghe3().URL + Config.HttpConfig_ronghe3( ).lotteryShake.path + '?' + Config.HttpConfig_ronghe3( ).lotteryShake.param1 + '&' + Config.HttpConfig_ronghe3( ).lotteryShake.param2 + '&' + Config.HttpConfig_ronghe3( ).lotteryShake.param3 data = {} common_itemconfig_result = Common.revoke_get_request(url, data) Response.http_code_check(Config.HttpConfig_ronghe3().lotteryShake.resp, common_itemconfig_result) Verify.IsTrue( Common.get_http_code(url, data) == requests.codes.ok, Config.HttpConfig_ronghe3().REQ_CODE) Logger.info('-------------------结束执行用例:【摇动抽奖 :正常】--------------------')
def test_get_List3_topic(): Logger.info('-------------------开始执行用例:【获取节目单信息 :正常】--------------------') url = Config.HttpConfig_ronghe3().URLHTTP + Config.HttpConfig_ronghe3( ).getList.path + '?' + Config.HttpConfig_ronghe3( ).getList.param1 + '&' + Config.HttpConfig_ronghe3().getList.param2 data = {} common_itemconfig_result = Common.revoke_get_request(url, data) Response.http_code_check(Config.HttpConfig_ronghe3().getList.resp, common_itemconfig_result) Verify.IsTrue( Common.get_http_code(url, data) == requests.codes.ok, Config.HttpConfig_ronghe3().REQ_CODE) Logger.info('-------------------结束执行用例:【获取节目单信息 :正常】--------------------')
def test_get_ProgramTopicListByPage_topic(): Logger.info( '-------------------开始执行用例:【获取某热门节目下的话题 :正常】--------------------') url = Config.HttpConfig_ronghe3().URL + Config.HttpConfig_ronghe3( ).getProgramTopicListByPage.path + '?' + Config.HttpConfig_ronghe3( ).getProgramTopicListByPage.param1 + '&' + Config.HttpConfig_ronghe3( ).getProgramTopicListByPage.param2 + '&' + Config.HttpConfig_ronghe3( ).getProgramTopicListByPage.param3 data = {} common_itemconfig_result = Common.revoke_get_request(url, data) Response.http_code_check( Config.HttpConfig_ronghe3().getProgramTopicListByPage.resp, common_itemconfig_result) Verify.IsTrue( Common.get_http_code(url, data) == requests.codes.ok, Config.HttpConfig_ronghe3().REQ_CODE) Logger.info( '-------------------结束执行用例:【获取某热门节目下的话题 :正常】--------------------')
def test_get_ActMaterial_shake(): Logger.info( '-------------------开始执行用例:【获取摇动时的广告图片 :正常】--------------------') url = Config.HttpConfig_ronghe3().URL + Config.HttpConfig_ronghe3( ).getActMaterial.path + '?' + Config.HttpConfig_ronghe3( ).getActMaterial.param1 + '&' + Config.HttpConfig_ronghe3( ).getActMaterial.param2 data = {} common_itemconfig_result = Common.revoke_get_request(url, data) Response.http_code_check(Config.HttpConfig_ronghe3().getActMaterial.resp, common_itemconfig_result) Verify.IsTrue( Common.get_http_code(url, data) == requests.codes.ok, Config.HttpConfig_ronghe3().REQ_CODE) Logger.info( '-------------------结束执行用例:【获取摇动时的广告图片 :正常】--------------------')
def test_get_ChannelConfigByType_topic(): Logger.info( '-------------------开始执行用例:【显示设置(是否显示理财、电影、精彩推荐等):正常】--------------------' ) url = Config.HttpConfig_ronghe3().URL + Config.HttpConfig_ronghe3( ).getChannelConfigByType.path + '?' + Config.HttpConfig_ronghe3( ).getChannelConfigByType.param1 + '&' + Config.HttpConfig_ronghe3( ).getChannelConfigByType.param2 + '&' + Config.HttpConfig_ronghe3( ).getChannelConfigByType.param3 data = {} common_itemconfig_result = Common.revoke_get_request(url, data) Response.http_code_check( Config.HttpConfig_ronghe3().getChannelConfigByType.resp, common_itemconfig_result) Verify.IsTrue( Common.get_http_code(url, data) == requests.codes.ok, Config.HttpConfig_ronghe3().REQ_CODE) Logger.info( '-------------------结束执行用例:【显示设置(是否显示理财、电影、精彩推荐等):正常】--------------------' )
def test_get_ChannelConfig_shake(): Logger.info( '-------------------开始执行用例:【获取频道信息(进入按钮图片enterBtnImg、互动背景图actBgImg、摇宝图片yaoBaoImg) :正常】--------------------' ) url = Config.HttpConfig_ronghe3().URL + Config.HttpConfig_ronghe3( ).getChannelConfigShake.path + '?' + Config.HttpConfig_ronghe3( ).getChannelConfigShake.param1 + '&' + Config.HttpConfig_ronghe3( ).getChannelConfigShake.param2 + '&' + Config.HttpConfig_ronghe3( ).getChannelConfigShake.param3 data = {} common_itemconfig_result = Common.revoke_get_request(url, data) Response.http_code_check( Config.HttpConfig_ronghe3().getChannelConfigShake.resp, common_itemconfig_result) Verify.IsTrue( Common.get_http_code(url, data) == requests.codes.ok, Config.HttpConfig_ronghe3().REQ_CODE) Logger.info( '-------------------结束执行用例:【获取频道信息(进入按钮图片enterBtnImg、互动背景图actBgImg、摇宝图片yaoBaoImg) :正常】--------------------' )
def test_get_ProgramStatisticsNum_topic(): Logger.info( '-------------------开始执行用例:【获取热门电视下的话题数量和评论数量 :正常】--------------------' ) url = Config.HttpConfig_ronghe3().URL + Config.HttpConfig_ronghe3( ).getProgramStatisticsNum.path + '?' + Config.HttpConfig_ronghe3( ).getProgramStatisticsNum.param1 + '&' + Config.HttpConfig_ronghe3( ).getProgramStatisticsNum.param2 data = {} common_itemconfig_result = Common.revoke_get_request(url, data) Response.http_code_check( Config.HttpConfig_ronghe3().getProgramStatisticsNum.resp, common_itemconfig_result) Verify.IsTrue( Common.get_http_code(url, data) == requests.codes.ok, Config.HttpConfig_ronghe3().REQ_CODE) Logger.info( '-------------------结束执行用例:【获取热门电视下的话题数量和评论数量 :正常】--------------------' )