Commit 7cd2b447 by zhangying

review

parent 8b35e7ab
...@@ -5,6 +5,7 @@ import com.live.enums.ApiModele; ...@@ -5,6 +5,7 @@ import com.live.enums.ApiModele;
import com.live.enums.RequestType; import com.live.enums.RequestType;
import com.live.enums.Terminal; import com.live.enums.Terminal;
import com.live.utils.XMBaseTest; import com.live.utils.XMBaseTest;
import com.live.xmutils.GetFolderData;
import org.testng.Assert; import org.testng.Assert;
import org.testng.annotations.BeforeMethod; import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test; import org.testng.annotations.Test;
...@@ -28,11 +29,14 @@ public class TestGetFileUser extends XMBaseTest { ...@@ -28,11 +29,14 @@ public class TestGetFileUser extends XMBaseTest {
* 资料云盘-公共文件成员 * 资料云盘-公共文件成员
*/ */
@Test @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 jsonObject = new JSONObject();
jsonObject.put("id","1356887886424498177"); jsonObject.put("id",folderId);
jsonObject.put("instId","1235115978015883266"); jsonObject.put("instId",xmAppApi.getLoginInfo().getInstId());
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);
......
...@@ -5,6 +5,7 @@ import com.live.enums.ApiModele; ...@@ -5,6 +5,7 @@ import com.live.enums.ApiModele;
import com.live.enums.RequestType; import com.live.enums.RequestType;
import com.live.enums.Terminal; import com.live.enums.Terminal;
import com.live.utils.XMBaseTest; import com.live.utils.XMBaseTest;
import com.live.xmutils.GetFolderData;
import org.testng.Assert; import org.testng.Assert;
import org.testng.annotations.BeforeMethod; import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test; import org.testng.annotations.Test;
...@@ -28,12 +29,14 @@ public class TestGetFileUserAuthority extends XMBaseTest { ...@@ -28,12 +29,14 @@ public class TestGetFileUserAuthority extends XMBaseTest {
* 资料云盘-公共文件权限管理 * 资料云盘-公共文件权限管理
*/ */
@Test @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 jsonObject = new JSONObject();
jsonObject.put("id","1356887886424498177"); jsonObject.put("id",folderId);
jsonObject.put("instId","1235115978015883266"); jsonObject.put("instId",xmAppApi.getLoginInfo().getInstId());
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);
......
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