コード例 #1
0
def test_stop_meet_record():
    i=yaml_handle.read_yaml("cfgyaml.yaml")
    i=i[5] #5是停止会议录制
    #i["request"]["json"]["sessionId"]=yaml_handle.read_yaml("responseyaml.yaml")["sessionId"]#替换sessionid
    #i["request"]["json"]["confId"] = str(yaml_handle.read_yaml("responseyaml.yaml")["confId"])  # 替换confId str
    print(i)
    redata = api_request.api_request(i)
    return redata
コード例 #2
0
def test_get_meet_record_filelist():
    i = yaml_handle.read_yaml("cfgyaml.yaml")
    i = i[6]  #6是获取会议录制文件列表
    i["request"]["json"]["confId"] = str(
        yaml_handle.read_yaml("responseyaml.yaml")["confId"])  # 替换confId
    print(i)
    redata = api_request.api_request(i)
    return redata
コード例 #3
0
def test_stop_meet_record():
    i = yaml_handle.read_yaml("cfgyaml.yaml")
    i = i[3]  #3是开始会议录制配置项
    #i["request"]["json"]["confId"] = str(yaml_handle.read_yaml("responseyaml.yaml")["confId"])# 替换confId
    redata = api_request.api_request(i)
    n = redata["recordData"][0]  #取出sessionid
    yaml_handle.write_a_yaml("responseyaml.yaml", n)
    return redata
コード例 #4
0
def test_start_meet_living():
    i = yaml_handle.read_yaml("cfgyaml.yaml")
    i = i[0]  # 0是开始直播
    redata = api_request.api_request(i)
    global confId, sessionId
    confId = i["request"]["json"]["confId"]  #取会议id
    sessionId = redata["liveData"][0]["sessionId"]  # 取出sessionid
    #print("sessionid = %s" %sessionId)
    globle_set.set_map("confId", confId)
    globle_set.set_map("sessionId", sessionId)
    assert redata["statusCode"] == "000000"
    return confId, sessionId
    #yaml_handle.write_w_yaml("responseyaml.yaml", n) # 将yaml中第一项会议id 写入返回yaml文件,
    request.check(redata, expectschema)
コード例 #5
0
def test_stop_meet_living():
    i = yaml_handle.read_yaml("cfgyaml.yaml")
    i = i[2]  # 2是停止直播
    print(i)
    confId = globle_set.get_map("confId")
    sessionId = globle_set.get_map("sessionId")
    i["request"]["json"]["confId"] = confId # 取会议id
    i["request"]["json"]["sessionId"] = sessionId
    print(i)
    log = logging.getLogger('test_stop_meet_living')
    time.sleep(1)
    log.debug(i)
    redata = api_request.api_request(i)
    assert redata["statusCode"] == "000000"
    return redata