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
3a226622
Commit
3a226622
authored
Jul 30, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增授权弹窗update
parent
fd6c9a1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
89 deletions
+14
-89
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+14
-89
No files found.
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
3a226622
...
...
@@ -2119,19 +2119,9 @@ public class SaveLive implements Authorization {
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
1
);
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_popupDetail
);
int
id
=
response
.
jsonPath
().
getInt
(
"data.id
"
);
int
popupScene
=
response
.
jsonPath
().
getInt
(
"data.popupScene
"
);
System
.
out
.
println
(
response
.
body
().
asString
());
Assert
.
assertNotNull
(
id
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"直播抽奖授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
//修改配置
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
1
);
Params
.
put
(
"id"
,
id
);
Params
.
put
(
"phoneImg"
,
"https://yun.dui88.com/kjy/image/20210729/1627545956366.png"
);
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
);
boolean
data1
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
,
"直播抽奖授权弹窗修改失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
popupScene
==
1
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"直播抽奖授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
}
...
...
@@ -2152,19 +2142,9 @@ public class SaveLive implements Authorization {
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
2
);
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_popupDetail
);
int
id
=
response
.
jsonPath
().
getInt
(
"data.id
"
);
int
popupScene
=
response
.
jsonPath
().
getInt
(
"data.popupScene
"
);
System
.
out
.
println
(
response
.
body
().
asString
());
Assert
.
assertNotNull
(
id
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"裂变宝箱授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
//修改配置
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
2
);
Params
.
put
(
"id"
,
id
);
Params
.
put
(
"phoneImg"
,
"https://yun.dui88.com/kjy/image/20210729/1627547133623.png"
);
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
);
boolean
data1
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
,
"裂变宝箱授权弹窗修改失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
popupScene
==
2
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"裂变宝箱授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
}
...
...
@@ -2185,20 +2165,9 @@ public class SaveLive implements Authorization {
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
3
);
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_popupDetail
);
int
id
=
response
.
jsonPath
().
getInt
(
"data.id
"
);
int
popupScene
=
response
.
jsonPath
().
getInt
(
"data.popupScene
"
);
System
.
out
.
println
(
response
.
body
().
asString
());
Assert
.
assertNotNull
(
id
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"翻牌集字授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
//修改配置
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
3
);
Params
.
put
(
"id"
,
id
);
Params
.
put
(
"phoneImg"
,
"https://yun.dui88.com/kjy/image/20210729/1627547271114.png"
);
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
);
boolean
data1
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
,
"翻牌集字授权弹窗修改失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
popupScene
==
3
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"翻牌集字授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
}
...
...
@@ -2219,19 +2188,9 @@ public class SaveLive implements Authorization {
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
4
);
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_popupDetail
);
int
id
=
response
.
jsonPath
().
getInt
(
"data.id
"
);
int
popupScene
=
response
.
jsonPath
().
getInt
(
"data.popupScene
"
);
System
.
out
.
println
(
response
.
body
().
asString
());
Assert
.
assertNotNull
(
id
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"手气王授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
//修改配置
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
4
);
Params
.
put
(
"id"
,
id
);
Params
.
put
(
"phoneImg"
,
"https://yun.dui88.com/kjy/image/20210729/1627547406299.png"
);
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
);
boolean
data1
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
,
"手气王授权弹窗修改失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
popupScene
==
4
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"手气王授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
}
...
...
@@ -2252,19 +2211,9 @@ public class SaveLive implements Authorization {
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
5
);
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_popupDetail
);
int
id
=
response
.
jsonPath
().
getInt
(
"data.id
"
);
int
popupScene
=
response
.
jsonPath
().
getInt
(
"data.popupScene
"
);
System
.
out
.
println
(
response
.
body
().
asString
());
Assert
.
assertNotNull
(
id
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"猜数红包授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
//修改配置
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
5
);
Params
.
put
(
"id"
,
id
);
Params
.
put
(
"phoneImg"
,
"https://yun.dui88.com/kjy/image/20210729/1627547406299.png"
);
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
);
boolean
data1
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
,
"猜数红包授权弹窗修改失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
popupScene
==
5
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"猜数红包授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
}
...
...
@@ -2287,21 +2236,9 @@ public class SaveLive implements Authorization {
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
6
);
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_popupDetail
);
int
id
=
response
.
jsonPath
().
getInt
(
"data.id
"
);
int
popupScene
=
response
.
jsonPath
().
getInt
(
"data.popupScene
"
);
System
.
out
.
println
(
response
.
body
().
asString
());
Assert
.
assertNotNull
(
id
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"好运红包授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
//修改配置
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
6
);
Params
.
put
(
"id"
,
id
);
Params
.
put
(
"helpImg"
,
"https://yun.dui88.com/kjy/image/20210729/1627547595585.png"
);
Params
.
put
(
"phoneImg"
,
"https://yun.dui88.com/kjy/image/20210729/1627547600293.png"
);
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
);
boolean
data1
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
,
"好运红包授权弹窗修改失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
popupScene
==
6
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"好运红包授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
}
...
...
@@ -2322,21 +2259,9 @@ public class SaveLive implements Authorization {
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
7
);
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_popupDetail
);
int
id
=
response
.
jsonPath
().
getInt
(
"data.id
"
);
int
popupScene
=
response
.
jsonPath
().
getInt
(
"data.popupScene
"
);
System
.
out
.
println
(
response
.
body
().
asString
());
Assert
.
assertNotNull
(
id
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"闯关答题授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
//修改配置
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"popupScene"
,
7
);
Params
.
put
(
"id"
,
id
);
Params
.
put
(
"helpImg"
,
"https://yun.dui88.com/kjy/image/20210729/1627547737805.png"
);
Params
.
put
(
"phoneImg"
,
"https://yun.dui88.com/kjy/image/20210729/1627547742368.png"
);
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
);
boolean
data1
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
Assert
.
assertTrue
(
data1
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupUpdate
,
"闯关答题弹窗修改失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
popupScene
==
7
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_popupDetail
,
"闯关答题授权弹窗ID查询为null"
,
response
.
body
().
asString
()));
}
/**
...
...
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