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
e9243d79
Commit
e9243d79
authored
Jul 23, 2020
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
f0a784ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
抽奖异常测试_DuibaTest.java
...est/java/http/cases/NewActivityTest/抽奖异常测试_DuibaTest.java
+1
-1
ManagerService.java
src/test/java/http/service/Activity/ManagerService.java
+2
-1
No files found.
src/test/java/http/cases/NewActivityTest/抽奖异常测试_DuibaTest.java
View file @
e9243d79
...
...
@@ -91,7 +91,7 @@ public class 抽奖异常测试_DuibaTest extends DuibaTestBase {
//进行接口测试传参
Response
response
=
this
.
新活动工具接口传参失败
(
"27018"
,
"q1l0ry"
);
//判断结果
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"message"
),
"扣积分-失败
测试
"
,
"校验message失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"message"
),
"扣积分-失败
信息
"
,
"校验message失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"result"
),
"101"
,
"校验result失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"success"
),
"false"
,
"校验success失败"
);
logger
.
info
(
"扣积分失败测试验证成功"
);
...
...
src/test/java/http/service/Activity/ManagerService.java
View file @
e9243d79
...
...
@@ -768,7 +768,8 @@ public class ManagerService {
return
response
;
}
public
Response
doEdit2
(
String
consumeTemplateId
)
throws
Exception
{
String
url
=
"http://"
+
dafuwengHost
+
":"
+
dafuwengPort
+
"/app/doEdit"
;
// String url = "http://"+dafuwengHost + ":" + dafuwengPort+"/app/doEdit";
String
url
=
"http://"
+
dafuwengHost
+
"/app/doEdit"
;
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"id"
,
"67"
);
...
...
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