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
0b2dc407
Commit
0b2dc407
authored
Jun 29, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
4fef44f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
13 deletions
+31
-13
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+4
-1
Share.java
src/test/java/com/kjj/cases/live/liveConfig/Share.java
+27
-12
No files found.
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
0b2dc407
...
...
@@ -53,7 +53,9 @@ public class SaveLive implements AdminAuthorization {
Params
.
put
(
"shareContent"
,
"自动化直播"
);
Params
.
put
(
"shelfStatus"
,
2
);
Params
.
put
(
"secondPoster"
,
"https://streamimg.kjjcrm.com/kjy/image/20210201/cc999ebde48e49f99ac3f0d93480453f.jpg"
);
Params
.
put
(
"regionType"
,
2
);
Params
.
put
(
"regionType"
,
2
);
Params
.
put
(
"preAwardUrl"
,
"https://yun.dui88.com/kjy/image/20210629/1624949155842.png"
);
Params
.
put
(
"preWindowUrl"
,
"https://yun.dui88.com/kjy/image/20210629/1624949098093.png"
);
Params
.
put
(
"distributionType"
,
0
);
Params
.
put
(
"existSeriesPoster"
,
0
);
List
<
ProvinceCityCodeList
>
provinceCityCode
=
new
ArrayList
<>();
...
...
@@ -1736,4 +1738,5 @@ public class SaveLive implements AdminAuthorization {
}
src/test/java/com/kjj/cases/live/liveConfig/Share.java
View file @
0b2dc407
...
...
@@ -19,27 +19,42 @@ public class Share implements AdminAuthorization {
}
@Test
(
description
=
"
新增常规小程序
分享"
,
priority
=
1
)
public
void
新增常规小程序
分享
()
{
@Test
(
description
=
"
直播前_常规
分享"
,
priority
=
1
)
public
void
直播前
_
常规
分享
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"mpShareUrl"
,
"//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg"
);
Params
.
put
(
"mpShareTitle"
,
"{{welfareName}}」常规分享文案{{name}}"
);
Params
.
put
(
"mpShareTitle"
,
"直播前常规分享文案{{name}}"
);
Params
.
put
(
"shareType"
,
7
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_saveOrUpdateMpShare
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_info
,
"直播前_常规分享添加失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"直播中_常规分享"
,
priority
=
2
)
public
void
直播中
_
常规分享
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"mpShareUrl"
,
"//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg"
);
Params
.
put
(
"mpShareTitle"
,
"直播前常规分享文案{{name}}"
);
Params
.
put
(
"shareType"
,
1
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_saveOrUpdateMpShare
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_info
,
"
新增常规小程序分享
失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_info
,
"
直播中_常规分享添加
失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"新增红包小程序分享"
,
priority
=
2
)
@Test
(
description
=
"新增红包小程序分享"
,
priority
=
3
)
public
void
新增红包宝箱小程序分享
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"mpShareUrl"
,
"//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg"
);
Params
.
put
(
"mpShareTitle"
,
"
「{{welfareName}}」
红包分享文案{{name}}"
);
Params
.
put
(
"mpShareTitle"
,
"红包分享文案{{name}}"
);
Params
.
put
(
"shareType"
,
2
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_saveOrUpdateMpShare
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
...
@@ -50,12 +65,12 @@ public class Share implements AdminAuthorization {
}
@Test
(
description
=
"新增直播宝箱小程序分享"
,
priority
=
3
)
@Test
(
description
=
"新增直播宝箱小程序分享"
,
priority
=
4
)
public
void
新增直播宝箱小程序分享
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"mpShareUrl"
,
"//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg"
);
Params
.
put
(
"mpShareTitle"
,
"
「{{welfareName}}」
宝箱裂变分享文案{{name}}"
);
Params
.
put
(
"mpShareTitle"
,
"宝箱裂变分享文案{{name}}"
);
Params
.
put
(
"shareType"
,
4
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_saveOrUpdateMpShare
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
...
@@ -65,12 +80,12 @@ public class Share implements AdminAuthorization {
}
@Test
(
description
=
"新增猜数红包小程序分享"
,
priority
=
4
)
@Test
(
description
=
"新增猜数红包小程序分享"
,
priority
=
5
)
public
void
新增猜数红包小程序分享
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"mpShareUrl"
,
"//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg"
);
Params
.
put
(
"mpShareTitle"
,
"
「{{welfareName}}」
猜数字红包分享文案{{name}}"
);
Params
.
put
(
"mpShareTitle"
,
"猜数字红包分享文案{{name}}"
);
Params
.
put
(
"shareType"
,
5
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_saveOrUpdateMpShare
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
...
@@ -80,12 +95,12 @@ public class Share implements AdminAuthorization {
}
@Test
(
description
=
"翻牌红包小程序分享"
,
priority
=
5
)
@Test
(
description
=
"翻牌红包小程序分享"
,
priority
=
6
)
public
void
翻牌红包小程序分享
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"mpShareUrl"
,
"//yun.dui88.com/kjy/image/20210526/1622022856685.jpeg"
);
Params
.
put
(
"mpShareTitle"
,
"
「{{welfareName}}」
翻牌红包分享文案{{name}}"
);
Params
.
put
(
"mpShareTitle"
,
"翻牌红包分享文案{{name}}"
);
Params
.
put
(
"shareType"
,
6
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_saveOrUpdateMpShare
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"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