Commit 38e4d984 by zhangyumeng

B端获取直播课下转码后的文档列表

parent 2d5afed3
package com.live.cases.largeClassLive;
import com.alibaba.fastjson.JSONObject;
import com.live.enums.ApiModele;
import com.live.enums.RequestType;
import com.live.enums.Terminal;
import com.live.utils.GetLiveCourseId;
import com.xiaomai.utils.XMBaseTest;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.util.ArrayList;
import java.util.List;
/**
* title B端获取直播课下转码后的文档列表
* by 张雨朦
*/
public class TestGetCourseDocList extends XMBaseTest {
@BeforeMethod
public void beforeTest() {
xmAppApi.setApiModule(ApiModele.CloudClass_B_Apollo)
.setApiName("API_getCourseDocList")
.setLoginUser("zhangYuM_b")
.setTerminal(Terminal.B);
super.beforeTest();
}
@Test
public void getCourseDocList() {
GetLiveCourseId liveCourseId = new GetLiveCourseId();
String getLiveCourseId = liveCourseId.getLiveCourseId();
List StringList = new ArrayList();
StringList.add(getLiveCourseId);
JSONObject jsonObject = new JSONObject();
jsonObject.put("liveCourseId", getLiveCourseId);
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers).assetsSuccess(true);
JSONObject responseRes = xmAppApi.getBodyInJSON();
}
}
......@@ -21,7 +21,7 @@ public class GetLiveCourseId extends XMBaseTest {
super.beforeDataRequest();
JSONObject jsonObject = new JSONObject();
//jsonObject.put("courseState","STARTING"); 获取欢拓课程列表,没有courseState参数,普通机构有这个参数
//jsonObject.put("courseState",""); //获取欢拓课程列表,没有courseState参数,普通机构有这个参数
jsonObject.put("current","1");
jsonObject.put("size", "10");
jsonObject.put("instId",dataApi.getLoginInfo().getInstId());
......
......@@ -73,5 +73,11 @@
"apiContentType": "application/json;charset=utf-8",
"apiName": "获取大班直播课列表",
"desc": "获取大班直播课列表"
}
},
"API_getCourseDocList": {
"apiPath": "/apollo/anon/businessLive/getCourseDocList",
"apiContentType": "application/json;charset=utf-8",
"apiName": "获取直播课下转码后的文档列表",
"desc": "获取直播课下转码后的文档列表"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment