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
e5882849
Commit
e5882849
authored
Jul 22, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新好运红包用例
parent
450f78fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Agent.java
src/test/java/com/kjj/cases/live/agent/Agent.java
+1
-0
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+3
-2
No files found.
src/test/java/com/kjj/cases/live/agent/Agent.java
View file @
e5882849
...
@@ -89,6 +89,7 @@ public class Agent implements Authorization {
...
@@ -89,6 +89,7 @@ public class Agent implements Authorization {
params
.
put
(
"phoneNumber"
,
"152588101691"
);
params
.
put
(
"phoneNumber"
,
"152588101691"
);
params
.
put
(
"jobNumber"
,
"KJJ0000"
);
params
.
put
(
"jobNumber"
,
"KJJ0000"
);
params
.
put
(
"wechatQrCode"
,
"//yun.dui88.com/kjy/nc/qrcode1/1981ec88d22fe37041feac4724c627670817.png"
);
params
.
put
(
"wechatQrCode"
,
"//yun.dui88.com/kjy/nc/qrcode1/1981ec88d22fe37041feac4724c627670817.png"
);
params
.
put
(
"avatar"
,
"//yun.dui88.com/kjy/nc/qrcode1/1981ec88d22fe37041feac4724c627670817.png"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_AgentEditCardInfo
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_AgentEditCardInfo
);
Boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
System
.
out
.
println
(
data
);
...
...
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
e5882849
...
@@ -1476,6 +1476,7 @@ public class SaveLive implements Authorization {
...
@@ -1476,6 +1476,7 @@ public class SaveLive implements Authorization {
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"transitionVideoUrl"
,
"https://yun.dui88.com/kjy/media/file/20210619/bb4a63f026ee228ad99b2367cfa83229.mp4"
);
Params
.
put
(
"transitionVideoUrl"
,
"https://yun.dui88.com/kjy/media/file/20210619/bb4a63f026ee228ad99b2367cfa83229.mp4"
);
Params
.
put
(
"transitionVideoUrl2"
,
"https://yun.dui88.com/kjy/media/file/20210722/c8b13c0316456c5f43b8713ed4b5cae2.mp4"
);
Params
.
put
(
"videoDelayTime"
,
5
);
Params
.
put
(
"videoDelayTime"
,
5
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_confCaveOrUpdate
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_confCaveOrUpdate
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
@@ -1517,11 +1518,11 @@ public class SaveLive implements Authorization {
...
@@ -1517,11 +1518,11 @@ public class SaveLive implements Authorization {
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
);
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
);
boolean
transitionVideoConfBuildStatus
=
response
.
jsonPath
().
getBoolean
(
"data.transitionVideoConfBuildStatus"
);
boolean
transitionVideoConfBuildStatus
=
response
.
jsonPath
().
getBoolean
(
"data.transitionVideoConfBuildStatus"
);
System
.
out
.
println
(
transitionVideoConfBuildStatus
);
System
.
out
.
println
(
transitionVideoConfBuildStatus
);
Assert
.
assertTrue
(
transitionVideoConfBuildStatus
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
,
"未配置
翻牌
"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
transitionVideoConfBuildStatus
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
,
"未配置
过渡视频
"
,
response
.
body
().
asString
()));
boolean
transitionVideoConfStatus
=
response
.
jsonPath
().
getBoolean
(
"data.transitionVideoConfStatus"
);
boolean
transitionVideoConfStatus
=
response
.
jsonPath
().
getBoolean
(
"data.transitionVideoConfStatus"
);
System
.
out
.
println
(
transitionVideoConfStatus
);
System
.
out
.
println
(
transitionVideoConfStatus
);
Assert
.
assertTrue
(
transitionVideoConfStatus
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
,
"未开启
翻牌
"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
transitionVideoConfStatus
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
,
"未开启
过渡视频
"
,
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