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
17b72828
Commit
17b72828
authored
Nov 08, 2021
by
郭姣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加代理人指定中奖开关
parent
b80f3a30
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
DesignatedWinner.java
...est/java/com/kjj/cases/live/lottery/DesignatedWinner.java
+31
-0
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+1
-1
No files found.
src/test/java/com/kjj/cases/live/lottery/DesignatedWinner.java
View file @
17b72828
...
...
@@ -18,6 +18,7 @@ public class DesignatedWinner implements Authorization {
public
List
<
LotteryList
.
List_Lottery
>
List_Lottery
;
public
List
<
LotteryList
>
welfareId
;
public
long
data
;
@Test
(
description
=
"直播前获取权益列表"
,
priority
=
1
)
public
void
直播前获取权益列表
()
{
...
...
@@ -215,6 +216,36 @@ public class DesignatedWinner implements Authorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
addParam
,
BasicConfig
.
MANAGER_confSwitchStatus
,
"开启指定中奖配置失败"
,
addRes
.
body
().
asString
()));
}
@Test
(
description
=
"查看指定中奖状态"
,
priority
=
14
)
public
void
查看指定中奖状态
(){
Map
<
String
,
Object
>
addParam
=
new
HashMap
<>();
addParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Response
addRes
=
network
.
postResponse
(
addParam
,
BasicConfig
.
MANAGER_getConfDetail
);
boolean
specifyAwardSwitchStatus
=
addRes
.
jsonPath
().
getBoolean
(
"data.specifyAwardSwitchStatus"
);
Assert
.
assertTrue
(
specifyAwardSwitchStatus
,
network
.
message
(
addParam
,
BasicConfig
.
MANAGER_getConfDetail
,
"指定中奖配置记录失败"
,
addRes
.
body
().
asString
()));
}
@Test
(
description
=
"上传可指定中奖代理人名单"
,
priority
=
15
)
public
void
上传可指定中奖代理人名单
(){
Map
<
String
,
Object
>
addParam
=
new
HashMap
<>();
addParam
.
put
(
"bizId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
addParam
.
put
(
"excelUrl"
,
"https://yun.dui88.com/kjy/media/file/20211108/8b22482d56479ac5d65090472df788a8.xlsx"
);
addParam
.
put
(
"fileName"
,
"自动化代理人指定中奖名单.xlsx"
);
Response
addRes
=
network
.
postResponse
(
addParam
,
BasicConfig
.
MANAGER_confImport
);
boolean
success
=
addRes
.
jsonPath
().
getBoolean
(
"success"
);
data
=
addRes
.
jsonPath
().
getLong
(
"data"
);
Assert
.
assertTrue
(
success
,
network
.
message
(
addParam
,
BasicConfig
.
MANAGER_confImport
,
"上传可指定中奖代理人名单失败"
,
addRes
.
body
().
asString
()));
}
@Test
(
description
=
"上传任务结果"
,
priority
=
16
)
public
void
上传任务结果
(){
Map
<
String
,
Object
>
addParam
=
new
HashMap
<>();
addParam
.
put
(
"taskId"
,
data
);
Response
addRes
=
network
.
postResponse
(
addParam
,
BasicConfig
.
MANAGER_result
);
boolean
success
=
addRes
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assertTrue
(
success
,
network
.
message
(
addParam
,
BasicConfig
.
MANAGER_result
,
"上传任务结果正确"
,
addRes
.
body
().
asString
()));
}
@Test
(
description
=
"根据直播间id查询指定中奖配置"
,
priority
=
14
)
public
void
根据直播间
id
查询指定中奖配置
()
{
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
17b72828
...
...
@@ -387,7 +387,7 @@ public class BasicConfig {
public
static
final
String
MOBILE_agentSpecifyAwardInfo
=
MOBILE_HOST
+
"/kjy/live/agent/agentSpecifyAwardInfo"
;
public
static
final
String
MOBILE_agentSpecifyAwardConf
=
MOBILE_HOST
+
"/kjy/live/agent/agentSpecifyAwardConf"
;
public
static
final
String
MANAGER_confSwitchStatus
=
MANAGER_HOST
+
"/kjy/manager/specifyAward/pre/conf/switchStatus"
;
public
static
final
String
MANAGER_confImport
=
MANAGER_HOST
+
"/kjy/manager/specifyAward/pre/conf/import"
;
// *************** 直播中抽奖 ***************
public
static
final
String
USER_getLiveAwardList
=
MOBILE_HOST
+
"/conf/pre/specifyAward/getLiveAwardList"
;
public
static
final
String
USER_listLiveLottery
=
MOBILE_HOST
+
"/kjy/live/lottery/listLiveLottery"
;
...
...
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