Commit 663be9d6 by zhangying

测试开启腾讯回放录制

parent 651e784c
......@@ -10,12 +10,9 @@ import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.util.ArrayList;
import java.util.List;
/**
* @author zhangying
* @date 2021/3/4 17:29
* @date 2021-03-30 19:05
*/
public class TestTencentStartRecord extends XMBaseTest {
@BeforeMethod
......@@ -26,29 +23,29 @@ public class TestTencentStartRecord extends XMBaseTest {
.setTerminal(Terminal.B); // 所属端位(B端,C端,M端等, 必传)
dal.setCase_owner("张莹");
super.beforeTest();
System.out.println(xmAppApi);
}
/**
* 测试直播间开启录制
* 测试开启腾讯回放录制
*/
@Test
public void testTencentStartRecord() throws InterruptedException {
public void testTencentStartRecord() {
GetLiveCourseData getLiveCourseData=new GetLiveCourseData();
JSONObject largeCourse=getLiveCourseData.createLargeClassLive();
JSONObject largeClassCourse = getLiveCourseData.getLargeClassLiveList();
String liveCourseId=largeCourse.getString("result");
String liveCourseId=largeClassCourse.getJSONObject("result").getJSONArray("records").getJSONObject(0).getString("liveCourseId");
System.out.println("liveCourseId ="+liveCourseId);
JSONObject jsonObject = new JSONObject();
jsonObject.put("liveCourseId",liveCourseId);
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
System.out.println(xmAppApi);
JSONObject jsonBody = xmAppApi.getBodyInJSON();
System.out.println("jsonBody =="+jsonBody);
Assert.assertEquals("true", jsonBody.getString("success"));
Assert.assertEquals("操作成功!", jsonBody.getString("message"));
Assert.assertEquals("200", jsonBody.getString("code"));
Assert.assertNotNull(jsonBody.getJSONObject("200").getString("code"));
}
}
......@@ -229,5 +229,12 @@
"apiContentType": "application/json;charset=UTF-8",
"apiName": "导出大班互动课上课记录",
"desc": "导出大班互动课上课记录"
},
"API_tencentStartRecord":
{
"apiPath": "/apollo/public/businessLive/tencentStartRecord",
"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