Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-autotest-live
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-autotest-live
Commits
7cd2b447
Commit
7cd2b447
authored
Feb 24, 2021
by
zhangying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
review
parent
8b35e7ab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
src/main/java/com/live/cases/fileManage/commonFolder/TestGetFileUser.java
+7
-3
src/main/java/com/live/cases/fileManage/commonFolder/TestGetFileUserAuthority.java
+7
-4
No files found.
src/main/java/com/live/cases/fileManage/commonFolder/TestGetFileUser.java
View file @
7cd2b447
...
@@ -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
);
...
...
src/main/java/com/live/cases/fileManage/commonFolder/TestGetFileUserAuthority.java
View file @
7cd2b447
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment