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
16299458
Commit
16299458
authored
Aug 20, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into 2021081901_gxh
parents
dfedecf6
91f894f3
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
612 additions
and
30 deletions
+612
-30
LiveList.java
src/test/java/com/kjj/bean/whoSawMe/LiveList.java
+9
-0
ResourceList.java
src/test/java/com/kjj/bean/whoSawMe/ResourceList.java
+12
-0
WelfareList.java
src/test/java/com/kjj/bean/whoSawMe/WelfareList.java
+12
-0
HomePage.java
src/test/java/com/kjj/cases/assistant/homePage/HomePage.java
+191
-27
Agent.java
src/test/java/com/kjj/cases/live/agent/Agent.java
+4
-0
LiveBefore.java
src/test/java/com/kjj/cases/live/agent/LiveBefore.java
+2
-2
LiveLater.java
src/test/java/com/kjj/cases/live/agent/LiveLater.java
+24
-0
LiveVisitors.java
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
+13
-0
AfterLive.java
src/test/java/com/kjj/cases/live/customer/AfterLive.java
+64
-0
PersonalPage.java
src/test/java/com/kjj/cases/live/customer/PersonalPage.java
+216
-0
Lottery.java
src/test/java/com/kjj/cases/live/lottery/Lottery.java
+4
-0
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+33
-0
IdMakeUtil.java
src/test/java/com/kjj/utils/IdMakeUtil.java
+17
-1
liveTestNG.xml
src/test/liveTestNG.xml
+11
-0
No files found.
src/test/java/com/kjj/bean/whoSawMe/LiveList.java
0 → 100644
View file @
16299458
package
com
.
kjj
.
bean
.
whoSawMe
;
import
lombok.Data
;
@Data
public
class
LiveList
{
private
String
liveId
;
private
boolean
hasPlayBack
;
}
src/test/java/com/kjj/bean/whoSawMe/ResourceList.java
0 → 100644
View file @
16299458
package
com
.
kjj
.
bean
.
whoSawMe
;
import
lombok.Data
;
@Data
public
class
ResourceList
{
private
String
id
;
private
int
type
;
private
String
recordId
;
private
String
liveId
;
private
String
companyName
;
}
src/test/java/com/kjj/bean/whoSawMe/WelfareList.java
0 → 100644
View file @
16299458
package
com
.
kjj
.
bean
.
whoSawMe
;
import
lombok.Data
;
@Data
public
class
WelfareList
{
private
long
receiveDate
;
private
String
id
;
private
int
type
;
private
String
recordId
;
private
String
liveId
;
}
src/test/java/com/kjj/cases/assistant/homePage/HomePage.java
View file @
16299458
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/live/agent/Agent.java
View file @
16299458
...
@@ -33,6 +33,7 @@ public class Agent implements Authorization {
...
@@ -33,6 +33,7 @@ public class Agent implements Authorization {
public
String
jobNumber
;
public
String
jobNumber
;
public
String
teamName
;
public
String
teamName
;
public
String
sellerName
;
public
String
sellerName
;
public
static
String
encodeAgentId
;
@BeforeClass
@BeforeClass
public
void
setUp
()
{
agentAuth
();
}
public
void
setUp
()
{
agentAuth
();
}
...
@@ -44,6 +45,8 @@ public class Agent implements Authorization {
...
@@ -44,6 +45,8 @@ public class Agent implements Authorization {
System
.
out
.
println
(
response
.
body
().
asString
());
System
.
out
.
println
(
response
.
body
().
asString
());
Object
jobNumber
=
response
.
jsonPath
().
getJsonObject
(
"data.jobNumber"
);
Object
jobNumber
=
response
.
jsonPath
().
getJsonObject
(
"data.jobNumber"
);
Assert
.
assertNotNull
(
jobNumber
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_userInfo1
,
"用户非代理人"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
jobNumber
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_userInfo1
,
"用户非代理人"
,
response
.
body
().
asString
()));
encodeAgentId
=
response
.
jsonPath
().
getString
(
"data.agentId"
);
}
}
...
@@ -448,6 +451,7 @@ public class Agent implements Authorization {
...
@@ -448,6 +451,7 @@ public class Agent implements Authorization {
params
.
put
(
"shortType"
,
2
);
params
.
put
(
"shortType"
,
2
);
Response
response
=
null
;
Response
response
=
null
;
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
ThreadSleepUtils
.
sleep
(
1000
);
response
=
network
.
postResponse
(
params
,
MOBILE_getShortUrl
);
response
=
network
.
postResponse
(
params
,
MOBILE_getShortUrl
);
String
data
=
response
.
jsonPath
().
getString
(
"data"
);
String
data
=
response
.
jsonPath
().
getString
(
"data"
);
System
.
out
.
println
(
data
);
System
.
out
.
println
(
data
);
...
...
src/test/java/com/kjj/cases/live/agent/LiveBefore.java
View file @
16299458
...
@@ -26,9 +26,9 @@ public class LiveBefore implements Authorization {
...
@@ -26,9 +26,9 @@ public class LiveBefore implements Authorization {
int
allNum
=
response
.
jsonPath
().
getInt
(
"data.allNum"
);
int
allNum
=
response
.
jsonPath
().
getInt
(
"data.allNum"
);
Assert
.
assertTrue
(
allNum
>
0
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_customerStat
,
"客户总数为null"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
allNum
>
0
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_customerStat
,
"客户总数为null"
,
response
.
body
().
asString
()));
int
newCustomNum
=
response
.
jsonPath
().
getInt
(
"data.newCustomNum"
);
int
newCustomNum
=
response
.
jsonPath
().
getInt
(
"data.newCustomNum"
);
Assert
.
assertTrue
(
newCustomNum
>
0
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_customerStat
,
"
新客户数量未
null"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
newCustomNum
>
0
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_customerStat
,
"
老客户数量为
null"
,
response
.
body
().
asString
()));
int
oldCustomNum
=
response
.
jsonPath
().
getInt
(
"data.oldCustomNum"
);
int
oldCustomNum
=
response
.
jsonPath
().
getInt
(
"data.oldCustomNum"
);
Assert
.
assertTrue
(
oldCustomNum
>
0
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_customerStat
,
"老客户数量
未
null"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
oldCustomNum
>
0
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_customerStat
,
"老客户数量
为
null"
,
response
.
body
().
asString
()));
}
}
...
...
src/test/java/com/kjj/cases/live/agent/LiveLater.java
View file @
16299458
...
@@ -329,4 +329,28 @@ public class LiveLater implements Authorization {
...
@@ -329,4 +329,28 @@ public class LiveLater implements Authorization {
System
.
out
.
println
(
clueList
);
System
.
out
.
println
(
clueList
);
Assert
.
assertNotNull
(
clueList
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_clueChanceList
,
"跟进机会获取失败"
,
response
.
body
().
asString
()));
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/cases/live/anchor/LiveVisitors.java
View file @
16299458
...
@@ -26,6 +26,7 @@ public class LiveVisitors implements Authorization
...
@@ -26,6 +26,7 @@ public class LiveVisitors implements Authorization
public
String
confId_free
;
public
String
confId_free
;
public
String
id
;
public
String
id
;
public
List
<
ResourcePushList
>
PushList
;
public
List
<
ResourcePushList
>
PushList
;
public
static
String
resourceReceiveRecordId
;
/*助播端端权益列表*/
/*助播端端权益列表*/
@Test
(
description
=
"助播端权益列表"
,
priority
=
1
)
@Test
(
description
=
"助播端权益列表"
,
priority
=
1
)
...
@@ -168,6 +169,8 @@ public class LiveVisitors implements Authorization
...
@@ -168,6 +169,8 @@ public class LiveVisitors implements Authorization
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Link
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Link
);
boolean
invite
=
response
.
jsonPath
().
getBoolean
(
"success"
);
boolean
invite
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assertTrue
(
invite
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Link
,
"领取免费领资料失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
invite
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Link
,
"领取免费领资料失败"
,
response
.
body
().
asString
()));
resourceReceiveRecordId
=
response
.
jsonPath
().
getString
(
"data"
);
}
}
/*访客端链接小程序资料-查询*/
/*访客端链接小程序资料-查询*/
...
@@ -366,4 +369,14 @@ public class LiveVisitors implements Authorization
...
@@ -366,4 +369,14 @@ public class LiveVisitors implements Authorization
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_agreeStatus
,
"客跟进机会同意状态为false"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
Params
,
BasicConfig
.
ANCHOR_agreeStatus
,
"客跟进机会同意状态为false"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客端获取直播间实时数据"
,
priority
=
23
)
public
void
访客端获取直播间实时数据
(){
Map
<
String
,
Object
>
clueInfoDataPar
=
new
HashMap
<>();
clueInfoDataPar
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Response
clueInfoDataRes
=
network
.
getResponse
(
clueInfoDataPar
,
BasicConfig
.
USER_clueInfoData
);
Assert
.
assertTrue
(
clueInfoDataRes
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
clueInfoDataPar
,
BasicConfig
.
USER_clueInfoData
,
"接口调用失败"
,
clueInfoDataRes
.
body
().
asString
()));
Object
data
=
clueInfoDataRes
.
jsonPath
().
getJsonObject
(
"data"
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
clueInfoDataPar
,
BasicConfig
.
USER_clueInfoData
,
"获取直播间实时数据失败"
,
clueInfoDataRes
.
body
().
asString
()));
}
}
}
src/test/java/com/kjj/cases/live/customer/AfterLive.java
0 → 100644
View file @
16299458
package
com
.
kjj
.
cases
.
live
.
customer
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.cases.live.agent.Agent
;
import
com.kjj.cases.live.lottery.Lottery
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
AfterLive
implements
Authorization
{
private
Map
<
String
,
Object
>
params
;
private
String
encodeLiveId
;
@BeforeClass
public
void
SetUp
(){
visitorAuth
();
}
// 获取访客直播结束页样式
@Test
(
description
=
"获取访客直播结束页样式"
,
priority
=
1
)
public
void
获取访客直播结束页样式
(){
encodeLiveId
=
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
());
// 获取直播ID
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
encodeLiveId
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
USER_liveEnd
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
params
,
BasicConfig
.
USER_liveEnd
,
"接口调用失败"
,
response
.
body
().
asString
()));
System
.
out
.
println
(
response
.
body
().
asString
());
String
welfareName
=
response
.
jsonPath
().
getString
(
"data.welfareName"
);
Assert
.
assertEquals
(
welfareName
,
Lottery
.
welfareName
,
network
.
message
(
params
,
BasicConfig
.
USER_liveEnd
,
"展示奖品名称与实际中奖不符"
,
response
.
body
().
asString
()));
}
// 查询访客预约状态
@Test
(
description
=
"查询访客预约状态"
,
priority
=
2
)
public
void
查询访客预约状态
(){
params
.
clear
();
params
.
put
(
"bizId"
,
encodeLiveId
);
params
.
put
(
"bizType"
,
3
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
USER_Appointment
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
params
,
BasicConfig
.
USER_Appointment
,
"接口请求失败"
,
response
.
body
().
asString
()));
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
params
,
BasicConfig
.
USER_Appointment
,
"返回预约状态失败"
,
response
.
body
().
asString
()));
}
// 获取代理人二维码信息
@Test
(
description
=
"获取代理人二维码信息"
,
priority
=
3
)
public
void
获取代理人二维码信息
()
{
params
.
clear
();
params
.
put
(
"agentId"
,
Agent
.
encodeAgentId
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
USER_getAgentQrCode
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
params
,
BasicConfig
.
USER_getAgentQrCode
,
"接口请求失败"
,
response
.
body
().
asString
()));
int
pollingResult
=
response
.
jsonPath
().
getInt
(
"data.pollingResult"
);
while
(
pollingResult
==
2
){
response
=
network
.
getResponse
(
params
,
BasicConfig
.
USER_getAgentQrCode
);
pollingResult
=
response
.
jsonPath
().
getInt
(
"data.pollingResult"
);
}
Object
syntheticAvatar
=
response
.
jsonPath
().
getJsonObject
(
"data.syntheticAvatar"
);
Assert
.
assertNotNull
(
syntheticAvatar
,
network
.
message
(
params
,
BasicConfig
.
USER_getAgentQrCode
,
"轮训代理人二维码失败"
,
response
.
body
().
asString
()));
}
}
src/test/java/com/kjj/cases/live/customer/PersonalPage.java
0 → 100644
View file @
16299458
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/live/lottery/Lottery.java
View file @
16299458
...
@@ -20,6 +20,8 @@ public class Lottery implements Authorization {
...
@@ -20,6 +20,8 @@ public class Lottery implements Authorization {
public
List
<
ConfIdList
>
List_ConfId
;
public
List
<
ConfIdList
>
List_ConfId
;
public
String
shareSign
;
public
String
shareSign
;
public
static
String
welfareName
;
public
static
String
lotteryConfId
;
@Test
(
description
=
"代理人抽奖活动弹层福利列表"
,
priority
=
1
)
@Test
(
description
=
"代理人抽奖活动弹层福利列表"
,
priority
=
1
)
public
void
抽奖活动弹层福利列表
()
{
public
void
抽奖活动弹层福利列表
()
{
...
@@ -103,6 +105,8 @@ public class Lottery implements Authorization {
...
@@ -103,6 +105,8 @@ public class Lottery implements Authorization {
System
.
out
.
println
(
data
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
infoParam
,
BasicConfig
.
USER_info
,
"获取正在抽奖的福利失败"
,
infoRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
infoParam
,
BasicConfig
.
USER_info
,
"获取正在抽奖的福利失败"
,
infoRes
.
body
().
asString
()));
welfareName
=
infoRes
.
jsonPath
().
getString
(
"data.welfareName"
);
lotteryConfId
=
infoRes
.
jsonPath
().
getString
(
"data.confId"
);
}
}
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
16299458
...
@@ -225,6 +225,9 @@ public class BasicConfig {
...
@@ -225,6 +225,9 @@ public class BasicConfig {
public
static
final
String
MANAGER_videoSwitch
=
MANAGER_HOST
+
"/kjy/manager/live/trans/video/conf/status/switch"
;
public
static
final
String
MANAGER_videoSwitch
=
MANAGER_HOST
+
"/kjy/manager/live/trans/video/conf/status/switch"
;
public
static
final
String
MANAGER_videoDetail
=
MANAGER_HOST
+
"/kjy/manager/live/trans/video/conf/detail"
;
public
static
final
String
MANAGER_videoDetail
=
MANAGER_HOST
+
"/kjy/manager/live/trans/video/conf/detail"
;
// *************** 新版预告页 ***************
// *************** 猜数字红包 ***************
// *************** 猜数字红包 ***************
public
static
final
String
MANAGER_getSurplusAmount
=
MANAGER_HOST
+
"/kjy/manager/red/conf/getSurplusAmount"
;
public
static
final
String
MANAGER_getSurplusAmount
=
MANAGER_HOST
+
"/kjy/manager/red/conf/getSurplusAmount"
;
public
static
final
String
MANAGER_saveOrUpdate1
=
MANAGER_HOST
+
"/kjy/manager/red/guess/saveOrUpdate"
;
public
static
final
String
MANAGER_saveOrUpdate1
=
MANAGER_HOST
+
"/kjy/manager/red/guess/saveOrUpdate"
;
...
@@ -341,6 +344,24 @@ public class BasicConfig {
...
@@ -341,6 +344,24 @@ public class BasicConfig {
public
static
final
String
USER_savePoster
=
MOBILE_HOST
+
"/kjy/live/user/share/savePoster"
;
public
static
final
String
USER_savePoster
=
MOBILE_HOST
+
"/kjy/live/user/share/savePoster"
;
public
static
final
String
USER_myCount
=
MOBILE_HOST
+
"/kjy/live/user/lottery/myCount"
;
public
static
final
String
USER_myCount
=
MOBILE_HOST
+
"/kjy/live/user/lottery/myCount"
;
public
static
final
String
USER_wxIdAllList
=
HOST
+
"/kjy/mp/msg/config/live/user/wxIdAllList"
;
public
static
final
String
USER_wxIdAllList
=
HOST
+
"/kjy/mp/msg/config/live/user/wxIdAllList"
;
public
static
final
String
USER_Appointment
=
MOBILE_HOST
+
"/kjy/live/user/appointment/find"
;
public
static
final
String
USER_clueInfoData
=
MOBILE_HOST
+
"/clue/info/data"
;
public
static
final
String
USER_getAgentQrCode
=
MOBILE_HOST
+
"/kjy/live/agent/getAgentQrCode"
;
public
static
final
String
USER_findLottryDetail
=
MOBILE_HOST
+
"/kjy/live/user/lottery/findDetailByConfId"
;
// 直播结束
public
static
final
String
USER_liveEnd
=
MOBILE_HOST
+
"/kjy/live/user/liveEnd"
;
// *************** 个人主页 ***************
public
static
final
String
USER_welfareList
=
MOBILE_HOST
+
"/kjy/live/user/welfare/getList"
;
public
static
final
String
USER_resourceList
=
MOBILE_HOST
+
"/kjy/live/user/resource/getResourceList"
;
public
static
final
String
USER_lastCompany
=
MOBILE_HOST
+
"/kjy/live/user/index/latest"
;
public
static
final
String
USER_getCompanyInfo
=
MOBILE_HOST
+
"/kjy/live/company/getLiveInfo"
;
public
static
final
String
USER_getLiveList
=
MOBILE_HOST
+
"/kjy/live/company/userLiveList"
;
public
static
final
String
USER_companyShareInfo
=
MOBILE_HOST
+
"/kjy/live/company/getHomeShareInfo"
;
public
static
final
String
USER_getLiveOverList
=
MOBILE_HOST
+
"/kjy/live/company/userLiveEndList"
;
public
static
final
String
USER_videoAgentCard
=
MOBILE_HOST
+
"/kjy/live/card/user/video"
;
public
static
final
String
USER_companyLiving
=
MOBILE_HOST
+
"/kjy/live/company/living"
;
public
static
final
String
USER_welfareDetail
=
MOBILE_HOST
+
"/kjy/live/user/welfare/findDetailByRecordId"
;
public
static
final
String
USER_sourceDetail
=
MOBILE_HOST
+
"/kjy/live/user/resource/findDetailByRecordId"
;
// *************** 直播管理端 ***************
// *************** 直播管理端 ***************
public
static
final
String
MANAGER_saveAndUpdate_0
=
MANAGER_HOST
+
"/kjy/manager/live/pre/conf/saveAndUpdate"
;
public
static
final
String
MANAGER_saveAndUpdate_0
=
MANAGER_HOST
+
"/kjy/manager/live/pre/conf/saveAndUpdate"
;
...
@@ -447,6 +468,9 @@ public class BasicConfig {
...
@@ -447,6 +468,9 @@ public class BasicConfig {
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"
;
//直播结束页
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_allRewardList
=
MOBILE_HOST
+
"/kjy/live/reward/allRewardList"
;
public
static
final
String
MOBILE_companyTotalData
=
MOBILE_HOST
+
"/kjy/live/team/companyTotalData"
;
public
static
final
String
MOBILE_companyTotalData
=
MOBILE_HOST
+
"/kjy/live/team/companyTotalData"
;
...
@@ -875,6 +899,8 @@ public class BasicConfig {
...
@@ -875,6 +899,8 @@ public class BasicConfig {
public
static
final
String
HOME_dailyProgress
=
HOST
+
"/kjy/mp/clockIn/task/dailyProgress"
;
public
static
final
String
HOME_dailyProgress
=
HOST
+
"/kjy/mp/clockIn/task/dailyProgress"
;
public
static
final
String
HOME_statistic
=
HOST
+
"/kjy/mp/clockIn/task/statistic"
;
public
static
final
String
HOME_statistic
=
HOST
+
"/kjy/mp/clockIn/task/statistic"
;
public
static
final
String
HOME_record
=
HOST
+
"/kjy/mp/clockIn/task/record"
;
public
static
final
String
HOME_record
=
HOST
+
"/kjy/mp/clockIn/task/record"
;
public
static
final
String
HOME_getGrassTagByName
=
HOST
+
"/kjy/mp/grassContent/getGrassTagByName"
;
public
static
final
String
HOME_companyGetContentList
=
HOST
+
"/kjy/mp/companyArea/getContentList"
;
//******************个人中心**********************
//******************个人中心**********************
public
static
final
String
USINGSTRATAGY_index
=
HOST
+
"/kjy/mp/usingStrategy/index"
;
public
static
final
String
USINGSTRATAGY_index
=
HOST
+
"/kjy/mp/usingStrategy/index"
;
public
static
final
String
USINGSTRATAGY_strategyList
=
HOST
+
"/kjy/mp/usingStrategy/strategyList"
;
public
static
final
String
USINGSTRATAGY_strategyList
=
HOST
+
"/kjy/mp/usingStrategy/strategyList"
;
...
@@ -1042,4 +1068,11 @@ public class BasicConfig {
...
@@ -1042,4 +1068,11 @@ public class BasicConfig {
public
static
final
String
MANAGER_activityName
=
MANAGER_HOST
+
"/kjy/manager/interact/solution/activityName"
;
public
static
final
String
MANAGER_activityName
=
MANAGER_HOST
+
"/kjy/manager/interact/solution/activityName"
;
public
static
final
String
MANAGER_deleteInteract
=
MANAGER_HOST
+
"/kjy/manager/interact/article/delete"
;
public
static
final
String
MANAGER_deleteInteract
=
MANAGER_HOST
+
"/kjy/manager/interact/article/delete"
;
public
static
final
String
MANAGER_deleteActivity
=
MANAGER_HOST
+
"/kjy/manager/interact/solution/delete"
;
public
static
final
String
MANAGER_deleteActivity
=
MANAGER_HOST
+
"/kjy/manager/interact/solution/delete"
;
public
static
final
String
MANAGER_grassContentEdit
=
MANAGER_HOST
+
"/kjy/manager/grassContent/edit"
;
public
static
final
String
MANAGER_videoOpen
=
MANAGER_HOST
+
"/kjy/manager/content/video/open"
;
public
static
final
String
MANAGER_simpleInfo
=
MANAGER_HOST
+
"/kjy/manager/content/simpleInfo"
;
public
static
final
String
MANAGER_itemAddOrUpdate
=
MANAGER_HOST
+
"/kjy/manager/exclusiveItem/addOrUpdate"
;
public
static
final
String
MANAGER_exclusiveItemPage
=
MANAGER_HOST
+
"/kjy/manager/exclusiveItem/page"
;
public
static
final
String
MANAGER_exclusiveItemDel
=
MANAGER_HOST
+
"/kjy/manager/exclusiveItem/del"
;
public
static
final
String
MANAGER_searchCompany
=
MANAGER_HOST
+
"/kjy/manager/live/company/search"
;
}
}
src/test/java/com/kjj/utils/IdMakeUtil.java
View file @
16299458
package
com
.
kjj
.
utils
;
package
com
.
kjj
.
utils
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.config.BasicConfig
;
import
io.restassured.response.Response
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.testng.Assert
;
import
java.util.Base64
;
import
java.util.Base64
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
/**
* Created by dugq on 2019-10-23.
* Created by dugq on 2019-10-23.
...
@@ -16,7 +22,7 @@ import java.util.Base64;
...
@@ -16,7 +22,7 @@ import java.util.Base64;
* base64加密效率: 加密 1 - 2千万 1s以内完成
* base64加密效率: 加密 1 - 2千万 1s以内完成
*/
*/
public
class
IdMakeUtil
{
public
class
IdMakeUtil
implements
Authorization
{
private
static
final
Base64
.
Encoder
encoder
=
Base64
.
getEncoder
();
private
static
final
Base64
.
Encoder
encoder
=
Base64
.
getEncoder
();
private
static
final
Base64
.
Decoder
decoder
=
Base64
.
getDecoder
();
private
static
final
Base64
.
Decoder
decoder
=
Base64
.
getDecoder
();
...
@@ -46,5 +52,15 @@ public class IdMakeUtil {
...
@@ -46,5 +52,15 @@ public class IdMakeUtil {
}
}
}
}
public
static
String
managerEncodingId
(
long
id
)
{
BaseUtils
.
ssoLogin
();
Map
<
String
,
Object
>
ids
=
new
HashMap
<>();
ids
.
put
(
"code"
,
id
);
Response
encodeIdRes
=
network
.
getResponse
(
ids
,
BasicConfig
.
MANAGER_ID_ENCODE
);
String
encodeId
=
encodeIdRes
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertNotNull
(
encodeId
,
network
.
message
(
ids
,
BasicConfig
.
MANAGER_ID_ENCODE
,
"加密id失败"
,
encodeIdRes
.
body
().
asString
()));
return
encodeId
;
}
}
}
src/test/liveTestNG.xml
View file @
16299458
...
@@ -207,5 +207,16 @@
...
@@ -207,5 +207,16 @@
<class
name=
"com.kjj.cases.live.agent.Customer"
/>
<class
name=
"com.kjj.cases.live.agent.Customer"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"访客端直播结束页"
>
<classes>
<class
name=
"com.kjj.cases.live.customer.AfterLive"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"访客端个人主页"
>
<classes>
<class
name=
"com.kjj.cases.live.customer.PersonalPage"
/>
</classes>
</test>
</suite>
</suite>
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