Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马博
test-platform
Commits
7a6ed66a
Commit
7a6ed66a
authored
Dec 24, 2018
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
fd05188c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
设置_应用信息_DuibaTest.java
.../java/http/cases/SaasDeveloperTest/设置_应用信息_DuibaTest.java
+10
-1
UpdateAppInfoService.java
src/test/java/http/service/Saas/UpdateAppInfoService.java
+18
-0
No files found.
src/test/java/http/cases/SaasDeveloperTest/设置_应用信息_DuibaTest.java
View file @
7a6ed66a
...
...
@@ -27,7 +27,7 @@ public class 设置_应用信息_DuibaTest extends DuibaBase {
String
appId
=
"19515"
;
//设置--保存应用信息
@Test
//
@Test
public
void
保存应用信息
()
throws
Exception
{
String
appId
=
"19515"
;
String
earnCreditsUrl
=
"https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=baidu&wd=www.baidu.com"
;
...
...
@@ -105,4 +105,13 @@ public class 设置_应用信息_DuibaTest extends DuibaBase {
logger
.
info
(
"校验各种搜索成功"
);
}
@Test
(
description
=
"删除添加的管理员"
)
public
void
d_
删除管理员
()
throws
Exception
{
Response
response
=
updateAppInfoService
.
selectEmployeeList
(
""
,
""
,
appId
);
String
id
=
response
.
jsonPath
().
getString
(
"data.list[1].id"
);
logger
.
info
(
"员工id为:"
+
id
);
response
=
updateAppInfoService
.
delete
(
appId
,
id
);
logger
.
info
(
"员工删除成功!"
);
}
}
src/test/java/http/service/Saas/UpdateAppInfoService.java
View file @
7a6ed66a
...
...
@@ -136,4 +136,22 @@ public class UpdateAppInfoService {
return
response
;
}
//删除管理员
public
Response
delete
(
String
appId
,
String
id
)
throws
Exception
{
String
url
=
"http://"
+
hdHost
+
"/employee/delete"
;
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"id"
,
id
);
Response
response
=
given
().
cookies
(
authorization
.
hdLoginSaas
(
appId
)).
params
(
map
).
get
(
url
);
response
.
prettyPrint
();
try
{
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"desc"
),
"成功"
);
}
catch
(
Exception
e
)
{
throw
new
Exception
(
"/employee/delete失败,返回信息:"
+
response
.
asString
());
}
catch
(
Error
er
)
{
throw
new
Exception
(
"/employee/delete失败,返回信息:"
+
response
.
asString
());
}
return
response
;
}
}
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