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
7302f1ab
Commit
7302f1ab
authored
Aug 18, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增访客/代理人直播结束页部分
parent
190bc511
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
LiveLater.java
src/test/java/com/kjj/cases/live/agent/LiveLater.java
+24
-0
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+3
-0
No files found.
src/test/java/com/kjj/cases/live/agent/LiveLater.java
View file @
7302f1ab
...
...
@@ -327,4 +327,28 @@ public class LiveLater implements Authorization {
System
.
out
.
println
(
clueList
);
Assert
.
assertNotNull
(
clueList
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_clueChanceList
,
"跟进机会获取失败"
,
response
.
body
().
asString
()));
}
// 直播结束页
@Test
(
description
=
"本场直播线索统计"
,
priority
=
19
)
public
void
本场直播线索统计
()
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Response
response
=
null
;
int
liveStatus
;
try
{
for
(
int
i
=
0
;
i
<
10
;
i
++){
response
=
network
.
getResponse
(
params
,
BasicConfig
.
AGENT_liveEnd
);
liveStatus
=
response
.
jsonPath
().
getInt
(
"data.liveStatus"
);
System
.
out
.
println
(
liveStatus
);
if
(
liveStatus
==
5
)
break
;
}
System
.
out
.
println
(
response
.
body
().
asString
());
int
lotteryCount
=
response
.
jsonPath
().
getInt
(
"data.lotteryCount"
);
int
submitFormCount
=
response
.
jsonPath
().
getInt
(
"data.submitFormCount"
);
Assert
.
assertTrue
(
lotteryCount
>
0
,
network
.
message
(
params
,
BasicConfig
.
AGENT_liveEnd
,
"直播内中奖用户数错误"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
submitFormCount
>
0
,
network
.
message
(
params
,
BasicConfig
.
AGENT_liveEnd
,
"直播内提交表单用户数错误"
,
response
.
body
().
asString
()));
}
catch
(
NullPointerException
e
){
e
.
printStackTrace
();
}
}
}
src/test/java/com/kjj/config/BasicConfig.java
View file @
7302f1ab
...
...
@@ -454,6 +454,9 @@ public class BasicConfig {
public
static
final
String
MOBILE_clueList
=
MOBILE_HOST
+
"/kjy/live/agent/clue/list"
;
public
static
final
String
MOBILE_livingClueStatistic
=
MOBILE_HOST
+
"/kjy/live/agent/clue/livingClueStatistic"
;
//直播结束页
public
static
final
String
AGENT_liveEnd
=
MOBILE_HOST
+
"/kjy/live/agent/liveEnd"
;
//排行榜
public
static
final
String
MOBILE_allRewardList
=
MOBILE_HOST
+
"/kjy/live/reward/allRewardList"
;
public
static
final
String
MOBILE_companyTotalData
=
MOBILE_HOST
+
"/kjy/live/team/companyTotalData"
;
...
...
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