Commit b8b10e58 by fanyuanmeng

Merge remote-tracking branch 'origin/master'

parents 2513f61a 49d9dba0
...@@ -28,16 +28,18 @@ public class TestUpdateFileUserAuthority extends XMBaseTest { ...@@ -28,16 +28,18 @@ public class TestUpdateFileUserAuthority extends XMBaseTest {
/** /**
* 测试资料云盘-公共文件夹成员管理,修改权限,可查看/下载——>可编辑 * 测试资料云盘-公共文件夹成员管理,修改权限,可查看/下载——>可编辑
*/ */
@Test // @Test
public void testUpdateFileUserAuthority() throws InterruptedException { public void testUpdateFileUserAuthority() throws InterruptedException {
GetFolderData commonFolderList = new GetFolderData(); GetFolderData commonFolderList = new GetFolderData();
JSONObject folderList = commonFolderList.getCommonFolderList(); String folderId = commonFolderList.getCommonFolderWithUser();
String folderId = folderList.getJSONObject("result").getJSONArray("records").getJSONObject(0).getString("id"); System.out.println("folderId =="+folderId);
// String folderId = folderList.getJSONObject("result").getJSONArray("records").getJSONObject(0).getString("id");
JSONObject userAuthority = commonFolderList.getFileUserAuthority(folderId); JSONObject userAuthority = commonFolderList.getFileUserAuthority(folderId);
String updateId = userAuthority.getJSONArray("result").getJSONObject(0).getString("userId");//操作账户的userId // String updateId = userAuthority.getJSONArray("result").getJSONObject(0).getString("userId");//操作账户的userId
String userId = userAuthority.getJSONArray("result").getJSONObject(1).getString("userId"); String userId = userAuthority.getJSONArray("result").getJSONObject(1).getString("userId");
String updateId = "1235115979394306049"; //当前操作账户的userId
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("instId", xmAppApi.getLoginInfo().getInstId()); jsonObject.put("instId", xmAppApi.getLoginInfo().getInstId());
jsonObject.put("id", folderId); jsonObject.put("id", folderId);
...@@ -60,7 +62,7 @@ public class TestUpdateFileUserAuthority extends XMBaseTest { ...@@ -60,7 +62,7 @@ public class TestUpdateFileUserAuthority extends XMBaseTest {
/** /**
* 测试资料云盘-公共文件夹添加员工,可编辑——>可查看/下载 * 测试资料云盘-公共文件夹添加员工,可编辑——>可查看/下载
*/ */
@Test // @Test
public void testUpdateFileUserAuthority1() throws InterruptedException { public void testUpdateFileUserAuthority1() throws InterruptedException {
GetFolderData commonFolderList = new GetFolderData(); GetFolderData commonFolderList = new GetFolderData();
JSONObject folderList = commonFolderList.getCommonFolderList(); JSONObject folderList = commonFolderList.getCommonFolderList();
...@@ -93,7 +95,7 @@ public class TestUpdateFileUserAuthority extends XMBaseTest { ...@@ -93,7 +95,7 @@ public class TestUpdateFileUserAuthority extends XMBaseTest {
/** /**
* 测试资料云盘-公共文件夹添加员工,操作账户无操作权限 * 测试资料云盘-公共文件夹添加员工,操作账户无操作权限
*/ */
@Test // @Test
public void testUpdateFileUserAuthority2() throws InterruptedException { public void testUpdateFileUserAuthority2() throws InterruptedException {
GetFolderData commonFolderList = new GetFolderData(); GetFolderData commonFolderList = new GetFolderData();
JSONObject folderList = commonFolderList.getCommonFolderList(); JSONObject folderList = commonFolderList.getCommonFolderList();
...@@ -121,7 +123,7 @@ public class TestUpdateFileUserAuthority extends XMBaseTest { ...@@ -121,7 +123,7 @@ public class TestUpdateFileUserAuthority extends XMBaseTest {
/** /**
* 测试资料云盘-公共文件夹添加员工,从列表中移除员工 * 测试资料云盘-公共文件夹添加员工,从列表中移除员工
*/ */
@Test // @Test
public void testUpdateFileUserAuthority3() throws InterruptedException { public void testUpdateFileUserAuthority3() throws InterruptedException {
GetFolderData commonFolderList = new GetFolderData(); GetFolderData commonFolderList = new GetFolderData();
JSONObject folderList = commonFolderList.getCommonFolderList(); JSONObject folderList = commonFolderList.getCommonFolderList();
......
...@@ -33,7 +33,7 @@ public class TestExportLargeClassLiveAsync extends XMBaseTest { ...@@ -33,7 +33,7 @@ public class TestExportLargeClassLiveAsync extends XMBaseTest {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("exportLiveType","0"); jsonObject.put("exportLiveType","0");
jsonObject.put("liveCourseId","1356196461296828418"); jsonObject.put("liveCourseId","1356196461296828418"); //zy大班直播自动化测试(勿删)--固定直播课
System.out.println("jsonObject ="+jsonObject ); System.out.println("jsonObject ="+jsonObject );
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
......
...@@ -32,7 +32,7 @@ public class TestGetClassReport extends XMBaseTest { ...@@ -32,7 +32,7 @@ public class TestGetClassReport extends XMBaseTest {
public void testGetClassReport() { public void testGetClassReport() {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("courseId","1356196461296828418"); jsonObject.put("courseId","1356196461296828418"); //zy大班直播自动化测试(勿删)--固定直播课
System.out.println("jsonObject ="+jsonObject ); System.out.println("jsonObject ="+jsonObject );
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
......
...@@ -33,7 +33,6 @@ public class TestGetCourseDetail extends XMBaseTest { ...@@ -33,7 +33,6 @@ public class TestGetCourseDetail extends XMBaseTest {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("liveCourseId","1356196461296828418"); jsonObject.put("liveCourseId","1356196461296828418");
System.out.println("jsonObject ="+jsonObject );
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
System.out.println(xmAppApi); System.out.println(xmAppApi);
......
...@@ -32,10 +32,9 @@ public class TestGetLargeClassLiveList extends XMBaseTest { ...@@ -32,10 +32,9 @@ public class TestGetLargeClassLiveList extends XMBaseTest {
public void testGetLargeClassLiveList() { public void testGetLargeClassLiveList() {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("instId","1235115978015883266"); jsonObject.put("instId",xmAppApi.getLoginInfo().getInstId());
jsonObject.put("current","1"); jsonObject.put("current","1");
jsonObject.put("size","10"); jsonObject.put("size","10");
System.out.println("jsonObject ="+jsonObject );
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
System.out.println(xmAppApi); System.out.println(xmAppApi);
...@@ -55,7 +54,7 @@ public class TestGetLargeClassLiveList extends XMBaseTest { ...@@ -55,7 +54,7 @@ public class TestGetLargeClassLiveList extends XMBaseTest {
public void testGetLargeClassLiveList1() { public void testGetLargeClassLiveList1() {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("instId","1235115978015883266"); jsonObject.put("instId",xmAppApi.getLoginInfo().getInstId());
jsonObject.put("current","1"); jsonObject.put("current","1");
jsonObject.put("size","10"); jsonObject.put("size","10");
jsonObject.put("courseName","zy大班直播自动化测试(勿删)"); jsonObject.put("courseName","zy大班直播自动化测试(勿删)");
...@@ -84,7 +83,7 @@ public class TestGetLargeClassLiveList extends XMBaseTest { ...@@ -84,7 +83,7 @@ public class TestGetLargeClassLiveList extends XMBaseTest {
public void testGetLargeClassLiveList2() { public void testGetLargeClassLiveList2() {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("instId","1235115978015883266"); jsonObject.put("instId",xmAppApi.getLoginInfo().getInstId());
jsonObject.put("current","1"); jsonObject.put("current","1");
jsonObject.put("size","10"); jsonObject.put("size","10");
jsonObject.put("courseState","EXPIRED"); jsonObject.put("courseState","EXPIRED");
......
...@@ -33,7 +33,7 @@ public class TestGetLiveCourseRecordInfos extends XMBaseTest { ...@@ -33,7 +33,7 @@ public class TestGetLiveCourseRecordInfos extends XMBaseTest {
public void testGetLiveCourseRecordInfos() { public void testGetLiveCourseRecordInfos() {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("liveCourseId","1356196461296828418"); jsonObject.put("liveCourseId","1356196461296828418"); //zy大班直播自动化测试(勿删)--固定直播课
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
System.out.println(xmAppApi); System.out.println(xmAppApi);
......
...@@ -32,7 +32,7 @@ public class TestQueryStudentVisitData extends XMBaseTest { ...@@ -32,7 +32,7 @@ public class TestQueryStudentVisitData extends XMBaseTest {
public void testQueryStudentVisitData() { public void testQueryStudentVisitData() {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("liveCourseId","1356196461296828418"); jsonObject.put("liveCourseId","1356196461296828418"); //zy大班直播自动化测试(勿删)--固定直播课
jsonObject.put("nameOrPhone",""); jsonObject.put("nameOrPhone","");
jsonObject.put("current","1"); jsonObject.put("current","1");
jsonObject.put("size","10000"); jsonObject.put("size","10000");
......
...@@ -32,7 +32,7 @@ public class TestQueryTeacherVisitData extends XMBaseTest { ...@@ -32,7 +32,7 @@ public class TestQueryTeacherVisitData extends XMBaseTest {
public void testQueryTeacherVisitData() { public void testQueryTeacherVisitData() {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("liveCourseId","1356196461296828418"); jsonObject.put("liveCourseId","1356196461296828418"); //zy大班直播自动化测试(勿删)--固定直播课
System.out.println("jsonObject ="+jsonObject ); System.out.println("jsonObject ="+jsonObject );
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
......
...@@ -34,7 +34,7 @@ public class TestQueryUserReplayRecordPage extends XMBaseTest { ...@@ -34,7 +34,7 @@ public class TestQueryUserReplayRecordPage extends XMBaseTest {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("current","1"); jsonObject.put("current","1");
jsonObject.put("size","10"); jsonObject.put("size","10");
jsonObject.put("liveCourseId","1356196461296828418"); jsonObject.put("liveCourseId","1356196461296828418"); //zy大班直播自动化测试(勿删)--固定直播课
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
System.out.println(xmAppApi); System.out.println(xmAppApi);
......
...@@ -32,7 +32,7 @@ public class TestTransformRecordUrl extends XMBaseTest { ...@@ -32,7 +32,7 @@ public class TestTransformRecordUrl extends XMBaseTest {
public void testTransformRecordUrl() { public void testTransformRecordUrl() {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("liveCourseId","1356196461296828418"); jsonObject.put("liveCourseId","1356196461296828418"); //zy大班直播自动化测试(勿删)--固定直播课
System.out.println("jsonObject ="+jsonObject ); System.out.println("jsonObject ="+jsonObject );
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
......
...@@ -178,5 +178,11 @@ ...@@ -178,5 +178,11 @@
"apiContentType": "application/json;charset=utf-8", "apiContentType": "application/json;charset=utf-8",
"apiName": "账户管理-服务协议", "apiName": "账户管理-服务协议",
"desc": "账户管理-服务协议" "desc": "账户管理-服务协议"
},
"API_updateCourse": {
"apiPath": "/apollo/public/businessLive/updateCourse",
"apiContentType": "application/json;charset=utf-8",
"apiName": "编辑直播课",
"desc": "编辑直播课"
} }
} }
\ No newline at end of file
...@@ -52,4 +52,9 @@ ...@@ -52,4 +52,9 @@
<package name="com.live.cases.videoCourse"></package> <package name="com.live.cases.videoCourse"></package>
</packages> </packages>
</test> </test>
<test name="seriesCourse" preserve-order="true" verbose="3">
<packages>
<package name="com.live.cases.seriesCourse"></package>
</packages>
</test>
</suite> </suite>
\ 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