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
6dfd7302
Commit
6dfd7302
authored
Oct 19, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feat/20211015-xmc
parents
233cec84
4c9e2eaa
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
317 additions
and
172 deletions
+317
-172
Agent.java
src/test/java/com/kjj/cases/live/agent/Agent.java
+10
-7
FlipCard.java
src/test/java/com/kjj/cases/live/flipCard/FlipCard.java
+292
-151
LiveBinding.java
src/test/java/com/kjj/cases/live/liveConfig/LiveBinding.java
+1
-1
Lottery.java
src/test/java/com/kjj/cases/live/lottery/Lottery.java
+12
-12
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+2
-1
No files found.
src/test/java/com/kjj/cases/live/agent/Agent.java
View file @
6dfd7302
...
...
@@ -115,18 +115,21 @@ public class Agent implements Authorization {
@Test
(
description
=
"获取直播列表 "
,
priority
=
7
)
public
void
获取直播列表
()
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
1
0
);
params
.
put
(
"pageSize"
,
2
0
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Procurator
);
List
<
AgentBean
>
agentBeans
=
JsonUtil
.
parseResponseToPageBean
(
response
,
AgentBean
.
class
);
if
(
agentBeans
.
size
()
>
0
)
{
AgentBean
bean
=
agentBeans
.
get
(
0
);
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
Assert
.
assertNotNull
(
bean
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Procurator
,
"查询直播列表失败"
,
response
.
body
().
asString
()));
for
(
AgentBean
item:
agentBeans
)
{
if
(
item
.
getLiveId
().
equals
(
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()))){
System
.
out
.
println
(
JSON
.
toJSONString
(
item
));
Assert
.
assertNotNull
(
item
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Procurator
,
"查询直播列表失败"
,
response
.
body
().
asString
()));
// 判断代理人邀约奖励openFlag是否为开
Assert
.
assertEquals
(
bean
.
getAgentAwardOpenFlag
(),
1
,
network
.
message
(
params
,
MOBILE_Procurator
,
"代理人邀约奖励开启状态错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
item
.
getAgentAwardOpenFlag
(),
1
,
network
.
message
(
params
,
MOBILE_Procurator
,
"代理人邀约奖励开启状态错误"
,
response
.
body
().
asString
()));
break
;
}
}
}
}
...
...
src/test/java/com/kjj/cases/live/flipCard/FlipCard.java
View file @
6dfd7302
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/live/liveConfig/LiveBinding.java
View file @
6dfd7302
...
...
@@ -104,7 +104,7 @@ public class LiveBinding implements Authorization {
token
();
}
//用户任务完成
@Test
(
description
=
"访客H分享直播间"
,
priority
=
6
)
public
void
访客
H
分享直播间
()
{
visitorAuth9
();
...
...
src/test/java/com/kjj/cases/live/lottery/Lottery.java
View file @
6dfd7302
...
...
@@ -316,8 +316,8 @@ public class Lottery implements Authorization {
}
@Test
(
description
=
"访客
B获取好运红包领取记录
"
,
priority
=
28
)
public
void
访客
B
获取好运红包领取记录
()
{
@Test
(
description
=
"访客
M获取好运红包领取
"
,
priority
=
28
)
public
void
访客
M
获取好运红包领取
()
{
visitorAuth13
();
ThreadSleepUtils
.
sleep
(
2000
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
...
...
@@ -333,12 +333,12 @@ public class Lottery implements Authorization {
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MOBILE_receiveRecord
);
System
.
out
.
println
(
response
.
body
().
asString
());
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Assert
.
assertNull
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_receiveRecord
,
"访客
B获取好运红包领取记录不
为空"
,
response
.
body
().
asString
()));
Assert
.
assertNull
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_receiveRecord
,
"访客
M获取好运红包领取记录
为空"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"访客
B
领取好运红包"
,
priority
=
29
)
public
void
访客
B
领取好运红包
()
{
@Test
(
description
=
"访客
M
领取好运红包"
,
priority
=
29
)
public
void
访客
M
领取好运红包
()
{
visitorAuth13
();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
...
...
@@ -346,12 +346,12 @@ public class Lottery implements Authorization {
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MOBILE_receiverOpen
);
System
.
out
.
println
(
response
.
body
().
asString
());
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_receiverOpen
,
"访客
B
领取好运红包失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_receiverOpen
,
"访客
M
领取好运红包失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"访客
B
参与记录"
,
priority
=
30
)
public
void
访客
B
参与记录
()
{
@Test
(
description
=
"访客
M
参与记录"
,
priority
=
30
)
public
void
访客
M
参与记录
()
{
visitorAuth13
();
ThreadSleepUtils
.
sleep
(
3000
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
...
...
@@ -368,8 +368,8 @@ public class Lottery implements Authorization {
}
@Test
(
description
=
"访客
A
获取好运红包领取记录"
,
priority
=
31
)
public
void
访客
A
获取好运红包领取记录
()
{
@Test
(
description
=
"访客
M
获取好运红包领取记录"
,
priority
=
31
)
public
void
访客
M
获取好运红包领取记录
()
{
visitorAuth13
();
ThreadSleepUtils
.
sleep
(
500
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
...
...
@@ -1095,8 +1095,8 @@ public class Lottery implements Authorization {
//不在公司指定区域内的用户
@Test
(
description
=
"团队指定访客F是否中奖"
,
priority
=
92
)
public
void
团队指定访客
F
是否中奖
()
{
@Test
(
description
=
"团队指定访客
非区域
F是否中奖"
,
priority
=
92
)
public
void
非
团队指定访客
F
是否中奖
()
{
visitorAuth6
();
ThreadSleepUtils
.
sleep
(
3000
);
Map
<
String
,
Object
>
hasEndParam
=
new
HashMap
<>();
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
6dfd7302
...
...
@@ -266,13 +266,14 @@ public class BasicConfig {
public
static
final
String
MOBILE_finishStatus
=
MOBILE_HOST
+
"/kjy/live/flip/word/user/finishStatus"
;
public
static
final
String
MOBILE_redOpen
=
MOBILE_HOST
+
"/kjy/live/flip/word/red/open"
;
public
static
final
String
MOBILE_redOpenState
=
MOBILE_HOST
+
"/kjy/live/flip/word/red/open/state"
;
public
static
final
String
MOBILE_abort
=
MOBILE_HOST
+
"/kjy/live/flip/word/red/abort"
;
public
static
final
String
MOBILE_appointment
=
MOBILE_HOST
+
"/kjy/live/user/appointment"
;
public
static
final
String
MOBILE_tasks
=
MOBILE_HOST
+
"/kjy/live/flip/word/user/tasks"
;
public
static
final
String
MOBILE_record
=
MOBILE_HOST
+
"/kjy/live/flip/word/user/record"
;
public
static
final
String
MOBILE_turn
=
MOBILE_HOST
+
"/kjy/live/flip/word/turn"
;
public
static
final
String
MOBILE_turnState
=
MOBILE_HOST
+
"/kjy/live/flip/word/turn/state"
;
public
static
final
String
MOBILE_confV2
=
MOBILE_HOST
+
"/kjy/live/flip/word/conf/v2"
;
public
static
final
String
MOBILE_userLucky
=
MOBILE_HOST
+
"/kjy/live/flip/word/user/lucky"
;
public
static
final
String
MOBILE_helpDetail
=
MOBILE_HOST
+
"/kjy/live/flip/word/user/helpDetail"
;
// *************** 直播间过渡视频 ***************
public
static
final
String
MANAGER_confCaveOrUpdate
=
MANAGER_HOST
+
"/kjy/manager/live/trans/video/conf/saveOrUpdate"
;
public
static
final
String
MANAGER_videoSwitch
=
MANAGER_HOST
+
"/kjy/manager/live/trans/video/conf/status/switch"
;
...
...
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