Commit c4a2f029 by zhangyumeng

优化获取直播课id

parent 6ddc8550
...@@ -33,13 +33,9 @@ public class TestCourseLaunch extends XMBaseTest { ...@@ -33,13 +33,9 @@ public class TestCourseLaunch extends XMBaseTest {
public void courseLaunch(){ public void courseLaunch(){
GetLiveCourseId liveCourseId = new GetLiveCourseId(); GetLiveCourseId liveCourseId = new GetLiveCourseId();
String getLiveCourseId = liveCourseId.createCourse();
List StringList = new ArrayList();
StringList.add(getLiveCourseId);
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("liveCourseId",getLiveCourseId); jsonObject.put("liveCourseId",liveCourseId.createCourse());
xmAppApi.doRequest(RequestType.JSON,params,jsonObject.toJSONString(),headers).assetsSuccess(true); xmAppApi.doRequest(RequestType.JSON,params,jsonObject.toJSONString(),headers).assetsSuccess(true);
JSONObject responseRes = xmAppApi.getBodyInJSON(); JSONObject responseRes = xmAppApi.getBodyInJSON();
......
...@@ -31,13 +31,9 @@ public class TestGetCourseDocList extends XMBaseTest { ...@@ -31,13 +31,9 @@ public class TestGetCourseDocList extends XMBaseTest {
public void getCourseDocList() { public void getCourseDocList() {
GetLiveCourseId liveCourseId = new GetLiveCourseId(); GetLiveCourseId liveCourseId = new GetLiveCourseId();
String getLiveCourseId = liveCourseId.createCourse();
List StringList = new ArrayList();
StringList.add(getLiveCourseId);
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("liveCourseId", getLiveCourseId); jsonObject.put("liveCourseId", liveCourseId.createCourse());
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers).assetsSuccess(true); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers).assetsSuccess(true);
JSONObject responseRes = xmAppApi.getBodyInJSON(); JSONObject responseRes = xmAppApi.getBodyInJSON();
......
...@@ -12,6 +12,11 @@ import org.testng.annotations.Test; ...@@ -12,6 +12,11 @@ import org.testng.annotations.Test;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/**
* 直播课群发学生
* by 张雨朦
*/
public class TestSendNotify2Student extends XMBaseTest { public class TestSendNotify2Student extends XMBaseTest {
@BeforeMethod @BeforeMethod
public void beforeTest() { public void beforeTest() {
...@@ -26,13 +31,9 @@ public class TestSendNotify2Student extends XMBaseTest { ...@@ -26,13 +31,9 @@ public class TestSendNotify2Student extends XMBaseTest {
public void getCourseDocList() { public void getCourseDocList() {
GetLiveCourseId liveCourseId = new GetLiveCourseId(); GetLiveCourseId liveCourseId = new GetLiveCourseId();
String getLiveCourseId = liveCourseId.createCourse();
List StringList = new ArrayList();
StringList.add(getLiveCourseId);
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("liveCourseId", getLiveCourseId); jsonObject.put("liveCourseId", liveCourseId.createCourse());
jsonObject.put("instId",dataApi.getLoginInfo().getInstId()); jsonObject.put("instId",dataApi.getLoginInfo().getInstId());
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers).assetsSuccess(true); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers).assetsSuccess(true);
......
...@@ -10,7 +10,7 @@ import com.xiaomai.utils.XMBaseTest; ...@@ -10,7 +10,7 @@ import com.xiaomai.utils.XMBaseTest;
import java.util.ArrayList; import java.util.ArrayList;
/** /**
* 获取大班直播课程id * 创建直播课,返回课程id
* by 张雨朦 * by 张雨朦
*/ */
......
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