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
564cb7a8
Commit
564cb7a8
authored
Sep 23, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加砸金蛋玩法
parent
c69e1157
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
283 additions
and
263 deletions
+283
-263
TreasureAward.java
src/test/java/com/kjj/bean/manager/TreasureAward.java
+0
-2
SimpleLiveConfig.java
.../java/com/kjj/cases/live/liveConfig/SimpleLiveConfig.java
+18
-1
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+6
-1
liveTestNG.xml
src/test/liveTestNG.xml
+259
-259
No files found.
src/test/java/com/kjj/bean/manager/TreasureAward.java
View file @
564cb7a8
...
...
@@ -17,6 +17,4 @@ public class TreasureAward {
private
Integer
winLimitCount
;
private
Integer
isLimit
;
}
src/test/java/com/kjj/cases/live/liveConfig/SimpleLiveConfig.java
View file @
564cb7a8
...
...
@@ -62,7 +62,7 @@ public class SimpleLiveConfig implements Authorization {
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
(
"distributionType"
,
1
);
Params
.
put
(
"existSeriesPoster"
,
0
);
List
<
ProvinceCityCodeList
>
provinceCityCode
=
new
ArrayList
<>();
ProvinceCityCodeList
save
=
new
ProvinceCityCodeList
();
...
...
@@ -148,4 +148,21 @@ public class SimpleLiveConfig implements Authorization {
System
.
out
.
println
(
response
.
body
().
asString
());
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_saveAndUpdate_8
,
"产品资料配置失败"
,
response
.
body
().
asString
()));
}
/**
* 直播中奖品
*/
//直播中奖品配置
@Test
(
description
=
"直播中抽奖"
,
priority
=
9
)
public
void
直播中抽奖
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
liveID
);
Params
.
put
(
"interactNum"
,
1
);
Params
.
put
(
"showInteractNum"
,
1
);
Params
.
put
(
"welfareId"
,
191
);
Params
.
put
(
"afterMin"
,
20
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_add_1
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_add_1
,
"直播中抽奖配置失败"
,
response
.
body
().
asString
()));
}
}
src/test/java/com/kjj/config/BasicConfig.java
View file @
564cb7a8
...
...
@@ -272,7 +272,12 @@ public class BasicConfig {
public
static
final
String
MANAGER_videoSwitch
=
MANAGER_HOST
+
"/kjy/manager/live/trans/video/conf/status/switch"
;
public
static
final
String
MANAGER_videoDetail
=
MANAGER_HOST
+
"/kjy/manager/live/trans/video/conf/detail"
;
// *************** 新版预告页 ***************
// *************** 砸金蛋 ***************
public
static
final
String
MANAGER_goldenEgg_saveOrUpdate
=
MANAGER_HOST
+
"/kjy/manager/live/treasure/goldenEgg/saveOrUpdate"
;
public
static
final
String
MANAGER_goldenEgg_detail
=
MANAGER_HOST
+
"/kjy/manager/live/treasure/goldenEgg/detail"
;
public
static
final
String
MANAGER_goldenEgg_switchStatus
=
MANAGER_HOST
+
"/kjy/manager/live/treasure/goldenEgg/switchStatus"
;
public
static
final
String
MOBILE_goldenEgg_detail
=
MOBILE_HOST
+
"/kjy/live/treasure/goldenEgg/detail"
;
public
static
final
String
MOBILE_goldenEgg_open
=
MOBILE_HOST
+
"/kjy/live/treasure/goldenEgg/open"
;
// *************** 猜数字红包 ***************
...
...
src/test/liveTestNG.xml
View file @
564cb7a8
This diff is collapsed.
Click to expand it.
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