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
49d9dba0
Commit
49d9dba0
authored
Feb 24, 2021
by
zhangying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报告报错
parent
faad5e89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/main/java/com/live/cases/fileManage/commonFolder/TestUpdateFileUserAuthority.java
+9
-7
No files found.
src/main/java/com/live/cases/fileManage/commonFolder/TestUpdateFileUserAuthority.java
View file @
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
();
...
...
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