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
005de728
Commit
005de728
authored
Nov 04, 2021
by
郭姣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加代理人指定中奖开关
parent
84041ed2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
DesignatedWinner.java
...est/java/com/kjj/cases/live/lottery/DesignatedWinner.java
+19
-10
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+1
-0
No files found.
src/test/java/com/kjj/cases/live/lottery/DesignatedWinner.java
View file @
005de728
...
@@ -205,9 +205,18 @@ public class DesignatedWinner implements Authorization {
...
@@ -205,9 +205,18 @@ public class DesignatedWinner implements Authorization {
}
}
@Test
(
description
=
"开启指定中奖配置"
,
priority
=
13
)
public
void
开启指定中奖配置
()
{
Map
<
String
,
Object
>
addParam
=
new
HashMap
<>();
addParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
addParam
.
put
(
"confStatus"
,
1
);
Response
addRes
=
network
.
postResponse
(
addParam
,
BasicConfig
.
MANAGER_confSwitchStatus
);
Object
data
=
addRes
.
jsonPath
().
getJsonObject
(
"data"
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
addParam
,
BasicConfig
.
MANAGER_confSwitchStatus
,
"开启指定中奖配置失败"
,
addRes
.
body
().
asString
()));
}
@Test
(
description
=
"根据直播间id查询指定中奖配置"
,
priority
=
1
3
)
@Test
(
description
=
"根据直播间id查询指定中奖配置"
,
priority
=
1
4
)
public
void
根据直播间
id
查询指定中奖配置
()
{
public
void
根据直播间
id
查询指定中奖配置
()
{
adminAuth
();
adminAuth
();
Map
<
String
,
Object
>
SpecifyAwardConfParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
SpecifyAwardConfParam
=
new
HashMap
<>();
...
@@ -218,7 +227,7 @@ public class DesignatedWinner implements Authorization {
...
@@ -218,7 +227,7 @@ public class DesignatedWinner implements Authorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
SpecifyAwardConfParam
,
BasicConfig
.
MOBILE_getSpecifyAwardConf
,
"根据直播间id查询指定中奖配置失败"
,
SpecifyAwardConfRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
SpecifyAwardConfParam
,
BasicConfig
.
MOBILE_getSpecifyAwardConf
,
"根据直播间id查询指定中奖配置失败"
,
SpecifyAwardConfRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"根据直播间id查询代理人参与条件"
,
priority
=
1
4
)
@Test
(
description
=
"根据直播间id查询代理人参与条件"
,
priority
=
1
5
)
public
void
根据直播间
id
查询代理人参与条件
()
{
public
void
根据直播间
id
查询代理人参与条件
()
{
adminAuth
();
adminAuth
();
Map
<
String
,
Object
>
AgentParticipateCondParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
AgentParticipateCondParam
=
new
HashMap
<>();
...
@@ -229,7 +238,7 @@ public class DesignatedWinner implements Authorization {
...
@@ -229,7 +238,7 @@ public class DesignatedWinner implements Authorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
AgentParticipateCondParam
,
BasicConfig
.
MOBILE_getAgentParticipateCond
,
"根据直播间id查询代理人参与条件失败"
,
AgentParticipateCondRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
AgentParticipateCondParam
,
BasicConfig
.
MOBILE_getAgentParticipateCond
,
"根据直播间id查询代理人参与条件失败"
,
AgentParticipateCondRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"根据直播id查询抽奖奖品列表"
,
priority
=
1
5
)
@Test
(
description
=
"根据直播id查询抽奖奖品列表"
,
priority
=
1
6
)
public
void
根据直播
id
查询抽奖奖品列表
()
{
public
void
根据直播
id
查询抽奖奖品列表
()
{
adminAuth
();
adminAuth
();
Map
<
String
,
Object
>
LiveAwardListParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
LiveAwardListParam
=
new
HashMap
<>();
...
@@ -240,7 +249,7 @@ public class DesignatedWinner implements Authorization {
...
@@ -240,7 +249,7 @@ public class DesignatedWinner implements Authorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
LiveAwardListParam
,
BasicConfig
.
MOBILE_getLiveAwardList
,
"根据直播id查询抽奖奖品列表失败"
,
LiveAwardListRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
LiveAwardListParam
,
BasicConfig
.
MOBILE_getLiveAwardList
,
"根据直播id查询抽奖奖品列表失败"
,
LiveAwardListRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"获取直播状态"
,
priority
=
1
6
)
@Test
(
description
=
"获取直播状态"
,
priority
=
1
7
)
public
void
获取直播状态
()
{
public
void
获取直播状态
()
{
agentAuth
();
agentAuth
();
Map
<
String
,
Object
>
statusParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
statusParam
=
new
HashMap
<>();
...
@@ -254,7 +263,7 @@ public class DesignatedWinner implements Authorization {
...
@@ -254,7 +263,7 @@ public class DesignatedWinner implements Authorization {
Assert
.
assertTrue
(
lotteryFlag
,
network
.
message
(
statusParam
,
BasicConfig
.
MOBILE_status1
,
"抽奖标记为false"
,
statusRes
.
body
().
asString
()));
Assert
.
assertTrue
(
lotteryFlag
,
network
.
message
(
statusParam
,
BasicConfig
.
MOBILE_status1
,
"抽奖标记为false"
,
statusRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"查询指定中奖配置"
,
priority
=
1
7
)
@Test
(
description
=
"查询指定中奖配置"
,
priority
=
1
8
)
public
void
查询指定中奖配置
()
{
public
void
查询指定中奖配置
()
{
agentAuth
();
agentAuth
();
Map
<
String
,
Object
>
awardConfParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
awardConfParam
=
new
HashMap
<>();
...
@@ -265,7 +274,7 @@ public class DesignatedWinner implements Authorization {
...
@@ -265,7 +274,7 @@ public class DesignatedWinner implements Authorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
awardConfParam
,
BasicConfig
.
MOBILE_AgentSpecifyAwardConf
,
"中奖配置查询失败"
,
awardConfRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
awardConfParam
,
BasicConfig
.
MOBILE_AgentSpecifyAwardConf
,
"中奖配置查询失败"
,
awardConfRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"查询指定中奖用户列表"
,
priority
=
1
8
)
@Test
(
description
=
"查询指定中奖用户列表"
,
priority
=
1
9
)
public
void
查询指定中奖用户列表
()
{
public
void
查询指定中奖用户列表
()
{
agentAuth
();
agentAuth
();
Map
<
String
,
Object
>
UserSelectListParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
UserSelectListParam
=
new
HashMap
<>();
...
@@ -278,7 +287,7 @@ public class DesignatedWinner implements Authorization {
...
@@ -278,7 +287,7 @@ public class DesignatedWinner implements Authorization {
}
}
@Test
(
description
=
"代理人指定访客中奖表单提交"
,
priority
=
19
)
@Test
(
description
=
"代理人指定访客中奖表单提交"
,
priority
=
20
)
public
void
代理人指定访客
A
中奖表单提交
()
{
public
void
代理人指定访客
A
中奖表单提交
()
{
Map
<
String
,
Object
>
SubmitParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
SubmitParam
=
new
HashMap
<>();
SubmitParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
SubmitParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
...
@@ -291,7 +300,7 @@ public class DesignatedWinner implements Authorization {
...
@@ -291,7 +300,7 @@ public class DesignatedWinner implements Authorization {
}
}
@Test
(
description
=
"被代理人指定中奖的用户列表"
,
priority
=
2
0
)
@Test
(
description
=
"被代理人指定中奖的用户列表"
,
priority
=
2
1
)
public
void
被代理人指定中奖的用户列表
()
{
public
void
被代理人指定中奖的用户列表
()
{
agentAuth
();
agentAuth
();
Map
<
String
,
Object
>
AwardUserListParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
AwardUserListParam
=
new
HashMap
<>();
...
@@ -303,7 +312,7 @@ public class DesignatedWinner implements Authorization {
...
@@ -303,7 +312,7 @@ public class DesignatedWinner implements Authorization {
}
}
@Test
(
description
=
"代理人指定中奖信息查询"
,
priority
=
2
1
)
@Test
(
description
=
"代理人指定中奖信息查询"
,
priority
=
2
2
)
public
void
代理人指定中奖信息查询
()
{
public
void
代理人指定中奖信息查询
()
{
agentAuth
();
agentAuth
();
Map
<
String
,
Object
>
AwardInfoParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
AwardInfoParam
=
new
HashMap
<>();
...
@@ -318,7 +327,7 @@ public class DesignatedWinner implements Authorization {
...
@@ -318,7 +327,7 @@ public class DesignatedWinner implements Authorization {
}
}
@Test
(
description
=
"代理人指定中奖配置查询"
,
priority
=
2
2
)
@Test
(
description
=
"代理人指定中奖配置查询"
,
priority
=
2
3
)
public
void
代理人指定中奖配置查询
()
{
public
void
代理人指定中奖配置查询
()
{
agentAuth
();
agentAuth
();
Map
<
String
,
Object
>
AwardConfParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
AwardConfParam
=
new
HashMap
<>();
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
005de728
...
@@ -386,6 +386,7 @@ public class BasicConfig {
...
@@ -386,6 +386,7 @@ public class BasicConfig {
public
static
final
String
MOBILE_agentSpecifyAwardUserList
=
MOBILE_HOST
+
"/kjy/live/agent/agentSpecifyAwardUserList"
;
public
static
final
String
MOBILE_agentSpecifyAwardUserList
=
MOBILE_HOST
+
"/kjy/live/agent/agentSpecifyAwardUserList"
;
public
static
final
String
MOBILE_agentSpecifyAwardInfo
=
MOBILE_HOST
+
"/kjy/live/agent/agentSpecifyAwardInfo"
;
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
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
USER_getLiveAwardList
=
MOBILE_HOST
+
"/conf/pre/specifyAward/getLiveAwardList"
;
public
static
final
String
USER_getLiveAwardList
=
MOBILE_HOST
+
"/conf/pre/specifyAward/getLiveAwardList"
;
...
...
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