Commit 7cd2b447 by zhangying

review

parent 8b35e7ab
......@@ -5,6 +5,7 @@ import com.live.enums.ApiModele;
import com.live.enums.RequestType;
import com.live.enums.Terminal;
import com.live.utils.XMBaseTest;
import com.live.xmutils.GetFolderData;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
......@@ -28,11 +29,14 @@ public class TestGetFileUser extends XMBaseTest {
* 资料云盘-公共文件成员
*/
@Test
public void testGetFileUser() {
public void testGetFileUser() throws InterruptedException {
GetFolderData commonFolderList = new GetFolderData();
JSONObject folderList = commonFolderList.getCommonFolderList();
String folderId = folderList.getJSONObject("result").getJSONArray("records").getJSONObject(0).getString("id");
JSONObject jsonObject = new JSONObject();
jsonObject.put("id","1356887886424498177");
jsonObject.put("instId","1235115978015883266");
jsonObject.put("id",folderId);
jsonObject.put("instId",xmAppApi.getLoginInfo().getInstId());
System.out.println("jsonObject ="+jsonObject );
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
......
......@@ -5,6 +5,7 @@ import com.live.enums.ApiModele;
import com.live.enums.RequestType;
import com.live.enums.Terminal;
import com.live.utils.XMBaseTest;
import com.live.xmutils.GetFolderData;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
......@@ -28,12 +29,14 @@ public class TestGetFileUserAuthority extends XMBaseTest {
* 资料云盘-公共文件权限管理
*/
@Test
public void testGetFileUserAuthority() {
public void testGetFileUserAuthority() throws InterruptedException {
GetFolderData commonFolderList = new GetFolderData();
JSONObject folderList = commonFolderList.getCommonFolderList();
String folderId = folderList.getJSONObject("result").getJSONArray("records").getJSONObject(0).getString("id");
JSONObject jsonObject = new JSONObject();
jsonObject.put("id","1356887886424498177");
jsonObject.put("instId","1235115978015883266");
System.out.println("jsonObject ="+jsonObject );
jsonObject.put("id",folderId);
jsonObject.put("instId",xmAppApi.getLoginInfo().getInstId());
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
System.out.println(xmAppApi);
......
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