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
efd77b22
Commit
efd77b22
authored
Jul 23, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 2021072201-gxh
parents
743f866b
e5882849
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
7 deletions
+16
-7
Agent.java
src/test/java/com/kjj/cases/live/agent/Agent.java
+1
-0
FlipCard.java
src/test/java/com/kjj/cases/live/flipCard/FlipCard.java
+3
-0
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+3
-2
Lottery.java
src/test/java/com/kjj/cases/live/lottery/Lottery.java
+2
-3
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+7
-2
No files found.
src/test/java/com/kjj/cases/live/agent/Agent.java
View file @
efd77b22
...
@@ -89,6 +89,7 @@ public class Agent implements Authorization {
...
@@ -89,6 +89,7 @@ public class Agent implements Authorization {
params
.
put
(
"phoneNumber"
,
"152588101691"
);
params
.
put
(
"phoneNumber"
,
"152588101691"
);
params
.
put
(
"jobNumber"
,
"KJJ0000"
);
params
.
put
(
"jobNumber"
,
"KJJ0000"
);
params
.
put
(
"wechatQrCode"
,
"//yun.dui88.com/kjy/nc/qrcode1/1981ec88d22fe37041feac4724c627670817.png"
);
params
.
put
(
"wechatQrCode"
,
"//yun.dui88.com/kjy/nc/qrcode1/1981ec88d22fe37041feac4724c627670817.png"
);
params
.
put
(
"avatar"
,
"//yun.dui88.com/kjy/nc/qrcode1/1981ec88d22fe37041feac4724c627670817.png"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_AgentEditCardInfo
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_AgentEditCardInfo
);
Boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
System
.
out
.
println
(
data
);
...
...
src/test/java/com/kjj/cases/live/flipCard/FlipCard.java
View file @
efd77b22
...
@@ -219,18 +219,21 @@ public class FlipCard implements Authorization {
...
@@ -219,18 +219,21 @@ public class FlipCard implements Authorization {
//预约
//预约
@Test
(
description
=
"翻牌集字_预约"
,
priority
=
12
)
@Test
(
description
=
"翻牌集字_预约"
,
priority
=
12
)
public
void
翻牌集字
_
预约
()
{
public
void
翻牌集字
_
预约
()
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"bizType"
,
1
);
params
.
put
(
"bizType"
,
1
);
params
.
put
(
"bizId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
params
.
put
(
"bizId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
params
.
put
(
"markIds"
,
Collections
.
singleton
(
144
));
params
.
put
(
"markIds"
,
Collections
.
singleton
(
144
));
visitorAuth9
();
visitorAuth9
();
ThreadSleepUtils
.
sleep
(
2000
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_appointment
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_appointment
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_appointment
,
"预约失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_appointment
,
"预约失败"
,
response
.
body
().
asString
()));
visitorAuth22
();
visitorAuth22
();
ThreadSleepUtils
.
sleep
(
2000
);
Response
appointmentRes
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_appointment
);
Response
appointmentRes
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_appointment
);
boolean
data1
=
appointmentRes
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data1
=
appointmentRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data1
);
System
.
out
.
println
(
data1
);
...
...
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
efd77b22
...
@@ -1476,6 +1476,7 @@ public class SaveLive implements Authorization {
...
@@ -1476,6 +1476,7 @@ public class SaveLive implements Authorization {
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
Params
.
put
(
"transitionVideoUrl"
,
"https://yun.dui88.com/kjy/media/file/20210619/bb4a63f026ee228ad99b2367cfa83229.mp4"
);
Params
.
put
(
"transitionVideoUrl"
,
"https://yun.dui88.com/kjy/media/file/20210619/bb4a63f026ee228ad99b2367cfa83229.mp4"
);
Params
.
put
(
"transitionVideoUrl2"
,
"https://yun.dui88.com/kjy/media/file/20210722/c8b13c0316456c5f43b8713ed4b5cae2.mp4"
);
Params
.
put
(
"videoDelayTime"
,
5
);
Params
.
put
(
"videoDelayTime"
,
5
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_confCaveOrUpdate
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_confCaveOrUpdate
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
@@ -1517,11 +1518,11 @@ public class SaveLive implements Authorization {
...
@@ -1517,11 +1518,11 @@ public class SaveLive implements Authorization {
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
);
Response
response
=
network
.
getResponse
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
);
boolean
transitionVideoConfBuildStatus
=
response
.
jsonPath
().
getBoolean
(
"data.transitionVideoConfBuildStatus"
);
boolean
transitionVideoConfBuildStatus
=
response
.
jsonPath
().
getBoolean
(
"data.transitionVideoConfBuildStatus"
);
System
.
out
.
println
(
transitionVideoConfBuildStatus
);
System
.
out
.
println
(
transitionVideoConfBuildStatus
);
Assert
.
assertTrue
(
transitionVideoConfBuildStatus
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
,
"未配置
翻牌
"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
transitionVideoConfBuildStatus
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
,
"未配置
过渡视频
"
,
response
.
body
().
asString
()));
boolean
transitionVideoConfStatus
=
response
.
jsonPath
().
getBoolean
(
"data.transitionVideoConfStatus"
);
boolean
transitionVideoConfStatus
=
response
.
jsonPath
().
getBoolean
(
"data.transitionVideoConfStatus"
);
System
.
out
.
println
(
transitionVideoConfStatus
);
System
.
out
.
println
(
transitionVideoConfStatus
);
Assert
.
assertTrue
(
transitionVideoConfStatus
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
,
"未开启
翻牌
"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
transitionVideoConfStatus
,
network
.
message
(
Params
,
BasicConfig
.
MANAGER_getConfDetail
,
"未开启
过渡视频
"
,
response
.
body
().
asString
()));
}
}
...
...
src/test/java/com/kjj/cases/live/lottery/Lottery.java
View file @
efd77b22
...
@@ -404,6 +404,7 @@ public class Lottery implements Authorization {
...
@@ -404,6 +404,7 @@ public class Lottery implements Authorization {
@Test
(
description
=
"访客B参与记录"
,
priority
=
30
)
@Test
(
description
=
"访客B参与记录"
,
priority
=
30
)
public
void
访客
B
参与记录
()
{
public
void
访客
B
参与记录
()
{
visitorAuth13
();
visitorAuth13
();
ThreadSleepUtils
.
sleep
(
3000
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"shareUserId"
,
"Kj20ODYz"
);
Params
.
put
(
"shareUserId"
,
"Kj20ODYz"
);
...
@@ -421,6 +422,7 @@ public class Lottery implements Authorization {
...
@@ -421,6 +422,7 @@ public class Lottery implements Authorization {
@Test
(
description
=
"访客A获取好运红包领取记录"
,
priority
=
31
)
@Test
(
description
=
"访客A获取好运红包领取记录"
,
priority
=
31
)
public
void
访客
A
获取好运红包领取记录
()
{
public
void
访客
A
获取好运红包领取记录
()
{
visitorAuth13
();
visitorAuth13
();
ThreadSleepUtils
.
sleep
(
500
);
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Params
.
put
(
"shareUserId"
,
"Kj20ODYz"
);
Params
.
put
(
"shareUserId"
,
"Kj20ODYz"
);
...
@@ -433,12 +435,9 @@ public class Lottery implements Authorization {
...
@@ -433,12 +435,9 @@ public class Lottery implements Authorization {
int
amount
=
response
.
jsonPath
().
getJsonObject
(
"data.amount"
);
int
amount
=
response
.
jsonPath
().
getJsonObject
(
"data.amount"
);
Assert
.
assertTrue
(
amount
==
30
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_joinRecord
,
"领取金额为null"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
amount
==
30
,
network
.
message
(
Params
,
BasicConfig
.
MOBILE_joinRecord
,
"领取金额为null"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客A抽奖券列表"
,
priority
=
32
)
@Test
(
description
=
"访客A抽奖券列表"
,
priority
=
32
)
public
void
访客
A
抽奖券列表
()
{
public
void
访客
A
抽奖券列表
()
{
visitorAuth
();
visitorAuth
();
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
efd77b22
...
@@ -385,7 +385,7 @@ public class BasicConfig {
...
@@ -385,7 +385,7 @@ public class BasicConfig {
public
static
final
String
MOBILE_AgentPersonalTeamCharts
=
MOBILE_HOST
+
"/kjy/live/agent/personalTeamCharts"
;
public
static
final
String
MOBILE_AgentPersonalTeamCharts
=
MOBILE_HOST
+
"/kjy/live/agent/personalTeamCharts"
;
public
static
final
String
MOBILE_AgentOwnCharts
=
MOBILE_HOST
+
"/kjy/live/agent/ownCharts"
;
public
static
final
String
MOBILE_AgentOwnCharts
=
MOBILE_HOST
+
"/kjy/live/agent/ownCharts"
;
public
static
final
String
MOBILE_MyCustomerList
=
MOBILE_HOST
+
"/kjy/live/agent/clue/myCustomerList"
;
public
static
final
String
MOBILE_VideoList
=
MOBILE_HOST
+
"/kjy/live/company/video/list"
;
public
static
final
String
MOBILE_VideoList
=
MOBILE_HOST
+
"/kjy/live/company/video/list"
;
public
static
final
String
MOBILE_VideoGetDetail
=
MOBILE_HOST
+
"/kjy/live/company/video/getDetail"
;
public
static
final
String
MOBILE_VideoGetDetail
=
MOBILE_HOST
+
"/kjy/live/company/video/getDetail"
;
public
static
final
String
MOBILE_VideoShareInfo
=
MOBILE_HOST
+
"/kjy/live/company/video/shareInfo"
;
public
static
final
String
MOBILE_VideoShareInfo
=
MOBILE_HOST
+
"/kjy/live/company/video/shareInfo"
;
...
@@ -400,6 +400,11 @@ public class BasicConfig {
...
@@ -400,6 +400,11 @@ public class BasicConfig {
public
static
final
String
MOBILE_feedbackSave
=
MOBILE_HOST
+
"/kjy/live/user/feedback/save"
;
public
static
final
String
MOBILE_feedbackSave
=
MOBILE_HOST
+
"/kjy/live/user/feedback/save"
;
public
static
final
String
MOBILE_agentInfo
=
MOBILE_HOST
+
"/kjy/live/share/help/agent/info"
;
public
static
final
String
MOBILE_agentInfo
=
MOBILE_HOST
+
"/kjy/live/share/help/agent/info"
;
//直播前线索
public
static
final
String
MOBILE_customerStat
=
MOBILE_HOST
+
"/kjy/live/agent/clue/customerStat"
;
public
static
final
String
MOBILE_MyCustomerList
=
MOBILE_HOST
+
"/kjy/live/agent/clue/myCustomerList"
;
public
static
final
String
MOBILE_hasInviteAuth
=
MOBILE_HOST
+
"/kjy/live/agent/hasInviteAuth"
;
//直播中线索
//直播中线索
public
static
final
String
MOBILE_clueList
=
MOBILE_HOST
+
"/kjy/live/agent/clue/list"
;
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
MOBILE_livingClueStatistic
=
MOBILE_HOST
+
"/kjy/live/agent/clue/livingClueStatistic"
;
...
...
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