Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
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
龚小红
oto
Commits
e31db59a
Commit
e31db59a
authored
Apr 18, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/acitityAndOa_20230417' into 'master'
修改 See merge request
!86
parents
9575f280
2ab3561c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Activity.java
src/test/java/com/oto/cases/otoseller/Activity.java
+4
-1
No files found.
src/test/java/com/oto/cases/otoseller/Activity.java
View file @
e31db59a
...
...
@@ -62,6 +62,9 @@ public class Activity implements Authorization {
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_saveActivity
,
"新建营销活动失败"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"totalCost"
,
0.01
);
params
.
put
(
"sceneConfId"
,
440
);
params
.
put
(
"isNeedInvite"
,
0
);
params
.
put
(
"maTime"
,
activity_day
+
"11:20"
);
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_saveActivity
);
...
...
@@ -73,7 +76,7 @@ public class Activity implements Authorization {
params
.
put
(
"beginTime"
,
activity_day
+
"00:00:00"
);
params
.
put
(
"endTime"
,
activity_day
+
"23:59:59"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_listActivity
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.voList.size()"
);
int
size
=
response
.
jsonPath
().
getInt
(
"data
[0]
.voList.size()"
);
Assert
.
assertEquals
(
size
,
3
,
network
.
message
(
params
,
BasicConfig
.
WORK_listActivity
,
"营销活动数量错误"
,
response
.
body
().
asString
()));
acitityId
=
response
.
jsonPath
().
getInt
(
"data[0].voList[2].id"
);
String
sceneName
=
response
.
jsonPath
().
getString
(
"data[0].voList[0].sceneName"
);
...
...
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