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
c5c32ef1
Commit
c5c32ef1
authored
Jul 05, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'featrue/20210702-zhangyl' into 'master'
update See merge request test-group/kejiji!58
parents
b8d7bf77
a3c73421
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
13 deletions
+29
-13
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+29
-13
No files found.
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
c5c32ef1
...
...
@@ -765,19 +765,35 @@ public class SaveLive implements Authorization {
Assert
.
assertTrue
(
data1
,
network
.
message
(
saveGuessParam
,
BasicConfig
.
MANAGER_saveOrUpdate1
,
"新增猜数字红包失败"
,
guessRes
.
body
().
asString
()));
//瓜分金额
Map
<
String
,
Object
>
sumAmount
Param
=
new
HashMap
<>();
sumAmount
Param
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
sumAmountParam
.
put
(
"redAmount"
,
88
);
sumAmountParam
.
put
(
"redReal
Num"
,
1
);
sumAmountParam
.
put
(
"redShowNum"
,
1
);
sumAmountParam
.
put
(
"guessMinNum"
,
1
);
sumAmountParam
.
put
(
"guessMaxNum"
,
10
);
sumAmountParam
.
put
(
"guessLeastTime"
,
4
);
sumAmountParam
.
put
(
"sendType"
,
1
);
Response
sumAmountRes
=
network
.
postResponse
(
sumAmount
Param
,
BasicConfig
.
MANAGER_saveOrUpdate1
);
Map
<
String
,
Object
>
partition
Param
=
new
HashMap
<>();
partition
Param
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
partitionParam
.
put
(
"guessLeastTime"
,
4
);
partitionParam
.
put
(
"guessMin
Num"
,
1
);
partitionParam
.
put
(
"guessMaxNum"
,
10
);
partitionParam
.
put
(
"realSumAmount"
,
1000
);
partitionParam
.
put
(
"redRealNum"
,
33
);
partitionParam
.
put
(
"showSumAmount"
,
1000
);
partitionParam
.
put
(
"sendType"
,
2
);
Response
sumAmountRes
=
network
.
postResponse
(
partition
Param
,
BasicConfig
.
MANAGER_saveOrUpdate1
);
boolean
data2
=
sumAmountRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data2
);
Assert
.
assertTrue
(
data2
,
network
.
message
(
sumAmountParam
,
BasicConfig
.
MANAGER_saveOrUpdate1
,
"新增猜数字红包失败"
,
sumAmountRes
.
body
().
asString
()));
Assert
.
assertTrue
(
data2
,
network
.
message
(
partitionParam
,
BasicConfig
.
MANAGER_saveOrUpdate1
,
"新增猜数字红包失败"
,
sumAmountRes
.
body
().
asString
()));
//瓜分金额手气王
Map
<
String
,
Object
>
redParam
=
new
HashMap
<>();
redParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
redParam
.
put
(
"guessLeastTime"
,
2
);
redParam
.
put
(
"guessMinNum"
,
1
);
redParam
.
put
(
"guessMaxNum"
,
3
);
redParam
.
put
(
"luckAmount"
,
10000
);
redParam
.
put
(
"realSumAmount"
,
1000
);
redParam
.
put
(
"redRealNum"
,
33
);
redParam
.
put
(
"showSumAmount"
,
10000
);
redParam
.
put
(
"sendType"
,
2
);
Response
redRes
=
network
.
postResponse
(
redParam
,
BasicConfig
.
MANAGER_saveOrUpdate1
);
boolean
data3
=
redRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data3
);
Assert
.
assertTrue
(
data3
,
network
.
message
(
redParam
,
BasicConfig
.
MANAGER_saveOrUpdate1
,
"新增猜数字红包失败"
,
redRes
.
body
().
asString
()));
}
...
...
@@ -817,7 +833,7 @@ public class SaveLive implements Authorization {
updateParam
.
put
(
"guessMaxNum"
,
10
);
updateParam
.
put
(
"guessLeastTime"
,
4
);
updateParam
.
put
(
"sendType"
,
1
);
updateParam
.
put
(
"confId"
,
this
.
confId
.
get
(
2
).
getConfId
());
updateParam
.
put
(
"confId"
,
this
.
confId
.
get
(
0
).
getConfId
());
Response
response
=
network
.
postResponse
(
updateParam
,
BasicConfig
.
MANAGER_saveOrUpdate1
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
...
...
@@ -830,7 +846,7 @@ public class SaveLive implements Authorization {
public
void
删除猜数字红包
()
{
Map
<
String
,
Object
>
delParam
=
new
HashMap
<>();
delParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
delParam
.
put
(
"confId"
,
this
.
confId
.
get
(
2
).
getConfId
());
delParam
.
put
(
"confId"
,
this
.
confId
.
get
(
0
).
getConfId
());
Response
response
=
network
.
postResponse
(
delParam
,
BasicConfig
.
MANAGER_del_1
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
...
...
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