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
e67c0126
Commit
e67c0126
authored
Sep 13, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播中测试完善
parent
a8b48fde
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
272 additions
and
228 deletions
+272
-228
ResourceForm.java
src/test/java/com/kjj/bean/resources/ResourceForm.java
+1
-0
ResourceFree.java
src/test/java/com/kjj/bean/resources/ResourceFree.java
+1
-0
LiveLater.java
src/test/java/com/kjj/cases/live/agent/LiveLater.java
+5
-0
LiveVisitors.java
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
+53
-25
PersonalPage.java
src/test/java/com/kjj/cases/live/customer/PersonalPage.java
+10
-0
EvaluationConf.java
...st/java/com/kjj/cases/live/liveConfig/EvaluationConf.java
+17
-17
Lottery.java
src/test/java/com/kjj/cases/live/lottery/Lottery.java
+2
-2
LotteryCode.java
...test/java/com/kjj/cases/live/lotteryCode/LotteryCode.java
+1
-2
liveTestNG.xml
src/test/liveTestNG.xml
+182
-182
No files found.
src/test/java/com/kjj/bean/resources/ResourceForm.java
View file @
e67c0126
...
...
@@ -12,6 +12,7 @@ public class ResourceForm {
private
List
<
FieldList
>
fieldList
;
private
String
received
;
private
String
evaluationId
;
private
boolean
hasSubmitEvaluation
;
@Data
public
static
class
FieldList
...
...
src/test/java/com/kjj/bean/resources/ResourceFree.java
View file @
e67c0126
...
...
@@ -24,4 +24,5 @@ public class ResourceFree {
private
String
outLinkAppId
;
private
String
formBanner
;
private
String
evaluationId
;
private
boolean
hasSubmitEvaluation
;
}
src/test/java/com/kjj/cases/live/agent/LiveLater.java
View file @
e67c0126
...
...
@@ -238,6 +238,11 @@ public class LiveLater implements Authorization {
List
<
GrabWelfares
>
list
=
JsonUtil
.
parseResponseToListBean
(
response
,
GrabWelfares
.
class
,
"grabWelfares"
);
Boolean
specifyAward
=
list
.
get
(
0
).
getSpecifyAward
();
Assert
.
assertTrue
(
specifyAward
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_getClueDetail
,
"指定中奖为null"
,
response
.
body
().
asString
()));
List
<
Map
<
String
,
Object
>>
evaLists
=
response
.
jsonPath
().
getList
(
"evaluationResources"
);
System
.
out
.
println
(
"evaLists: "
+
evaLists
);
Assert
.
assertEquals
(
evaLists
.
size
(),
1
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_getClueDetail
,
"用户参与测试数量错误"
,
response
.
body
().
asString
()));
String
evaTitle
=
(
String
)
evaLists
.
get
(
0
).
get
(
"resourceTitle"
);
Assert
.
assertEquals
(
evaTitle
,
"编辑后修改标题"
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_getClueDetail
,
"用户参与测试标题错误"
,
response
.
body
().
asString
()));
}
...
...
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
View file @
e67c0126
...
...
@@ -33,6 +33,7 @@ public class LiveVisitors implements Authorization
public
String
id
;
public
List
<
ResourcePushList
>
PushList
;
public
static
String
resourceReceiveRecordId
;
public
static
String
freeForEvaReceiveRecordId
;
/*助播端端权益列表*/
@Test
(
description
=
"助播端权益列表"
,
priority
=
1
)
...
...
@@ -192,17 +193,27 @@ public class LiveVisitors implements Authorization
resourceReceiveRecordId
=
response
.
jsonPath
().
getString
(
"data"
);
}
// @Test(description = "代理人参与测试", priority = 9)
// public void 代理人参与测试() {
// agentAuth();
//
// System.out.println(evaDetailRes.body().asString());
// }
@Test
(
description
=
"代理人参与测试"
,
priority
=
9
)
public
void
代理人参与测试
()
{
agentAuth
();
Map
<
String
,
Object
>
submitPar
=
getEvaSubmitPar
(
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()),
confId_eva
,
LiveMaterial
.
evaluationId
,
LiveMaterial
.
getEvaDetails
(
LiveMaterial
.
evaluationId
).
getQuestions
().
size
(),
1
,
false
,
true
);
Response
submitRes
=
network
.
postResponse
(
submitPar
,
BasicConfig
.
MOBILE_evaluationSubmit
);
try
{
boolean
success
=
submitRes
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assertFalse
(
success
,
network
.
message
(
submitPar
,
BasicConfig
.
MOBILE_evaluationSubmit
,
"代理人成功参与测试成功"
,
submitRes
.
body
().
asString
()));
String
desc
=
submitRes
.
jsonPath
().
getString
(
"desc"
);
Assert
.
assertEquals
(
desc
,
"公司员工无法参与"
,
network
.
message
(
submitPar
,
BasicConfig
.
MOBILE_evaluationSubmit
,
"参与失败原因错误"
,
submitRes
.
body
().
asString
()));
}
catch
(
NullPointerException
e
){
e
.
printStackTrace
();
Assert
.
fail
(
network
.
message
(
submitPar
,
BasicConfig
.
MOBILE_evaluationSubmit
,
"获取数据失败"
,
submitRes
.
body
().
asString
()));
}
}
/*访客端参与测试权益*/
@Test
(
description
=
"访客端获取测试权益详情"
,
priority
=
10
)
public
void
访客端获取测试权益详情
()
{
visitorAuth
();
ThreadSleepUtils
.
sleep
(
3000
);
Map
<
String
,
Object
>
evaDetailPar
=
new
HashMap
<>();
evaDetailPar
.
put
(
"confId"
,
confId_eva
);
evaDetailPar
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
...
...
@@ -276,7 +287,6 @@ public class LiveVisitors implements Authorization
boolean
success
=
submitRes
.
jsonPath
().
getBoolean
(
"success"
);
System
.
out
.
println
(
submitRes
.
body
().
asString
());
Assert
.
assertFalse
(
success
,
network
.
message
(
submitPar
,
BasicConfig
.
MOBILE_evaluationSubmit
,
"提交错误答案成功"
,
submitRes
.
body
().
asString
()));
Assert
.
assertEquals
(
submitRes
.
jsonPath
().
getString
(
"desc"
),
"提交参数异常"
,
network
.
message
(
submitPar
,
BasicConfig
.
MOBILE_evaluationSubmit
,
"错误原因不符"
,
submitRes
.
body
().
asString
()));
}
catch
(
Exception
e
){
e
.
printStackTrace
();
Assert
.
fail
(
network
.
message
(
submitPar
,
BasicConfig
.
MOBILE_evaluationSubmit
,
"获取数据异常"
,
submitRes
.
body
().
asString
()));
...
...
@@ -299,8 +309,9 @@ public class LiveVisitors implements Authorization
}
}
@Test
(
description
=
"访客端获取关联测试表单权益详情"
,
priority
=
1
4
)
@Test
(
description
=
"访客端获取关联测试表单权益详情"
,
priority
=
1
6
)
public
void
访客端获取关联测试表单权益详情
()
{
ThreadSleepUtils
.
sleep
(
2000
);
visitorAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
confId_formWithEva
);
...
...
@@ -310,17 +321,19 @@ public class LiveVisitors implements Authorization
ResourceForm
agentBeans
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceForm
.
class
);
String
evaId
=
agentBeans
.
getEvaluationId
();
Assert
.
assertEquals
(
evaId
,
encodeEvaluationId
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Form
,
"表单权益关联测试ID错误"
,
response
.
body
().
asString
()));
boolean
hasSubmit
=
agentBeans
.
isHasSubmitEvaluation
();
Assert
.
assertTrue
(
hasSubmit
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Form
,
"表单关联测试提交状态错误"
,
response
.
body
().
asString
()));
}
catch
(
Exception
e
){
e
.
printStackTrace
();
Assert
.
fail
(
network
.
message
(
params
,
BasicConfig
.
MOBILE_Form
,
"获取数据失败"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客端获取关联测试免费领权益详情"
,
priority
=
1
5
)
@Test
(
description
=
"访客端获取关联测试免费领权益详情"
,
priority
=
1
7
)
public
void
访客端获取关联测试免费领权益详情
()
{
visitorAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
confId_free
);
params
.
put
(
"confId"
,
confId_free
WithEva
);
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
);
System
.
out
.
println
(
response
.
body
().
asString
());
...
...
@@ -328,6 +341,8 @@ public class LiveVisitors implements Authorization
ResourceFree
agentBeans
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceFree
.
class
);
String
evaId
=
agentBeans
.
getEvaluationId
();
Assert
.
assertEquals
(
evaId
,
encodeEvaluationId
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
,
"免费领权益关联测试ID错误"
,
response
.
body
().
asString
()));
boolean
hasSubmit
=
agentBeans
.
isHasSubmitEvaluation
();
Assert
.
assertTrue
(
hasSubmit
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
,
"免费领权益关联测试提交状态错误"
,
response
.
body
().
asString
()));
}
catch
(
Exception
e
){
e
.
printStackTrace
();
Assert
.
fail
(
network
.
message
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
,
"获取数据失败"
,
response
.
body
().
asString
()));
...
...
@@ -335,8 +350,21 @@ public class LiveVisitors implements Authorization
}
@Test
(
description
=
"领取关联测试免费领"
,
priority
=
18
)
public
void
领取关联测试免费领
()
{
visitorAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
confId_freeWithEva
);
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Link
);
boolean
invite
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assertTrue
(
invite
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Link
,
"领取免费领资料失败"
,
response
.
body
().
asString
()));
freeForEvaReceiveRecordId
=
response
.
jsonPath
().
getString
(
"data"
);
}
/*访客端链接小程序资料-查询*/
@Test
(
description
=
"访客端链接资料查询"
,
priority
=
1
6
)
@Test
(
description
=
"访客端链接资料查询"
,
priority
=
1
9
)
public
void
访客端链接小程序资料查询
()
{
visitorAuth
();
...
...
@@ -350,7 +378,7 @@ public class LiveVisitors implements Authorization
}
/*访客端链接资料资料-领取*/
@Test
(
description
=
"访客端链接资料领取"
,
priority
=
17
)
@Test
(
description
=
"访客端链接资料领取"
,
priority
=
20
)
public
void
访客端链接小程序资料领取
()
{
visitorAuth
();
...
...
@@ -363,7 +391,7 @@ public class LiveVisitors implements Authorization
}
/*代理人端权益列表查询*/
@Test
(
description
=
"代理人端权益列表查询"
,
priority
=
18
)
@Test
(
description
=
"代理人端权益列表查询"
,
priority
=
21
)
public
void
代理人端权益列表查询
()
{
agentAuth
();
...
...
@@ -377,7 +405,7 @@ public class LiveVisitors implements Authorization
}
//代理人端图文资料查询
@Test
(
description
=
"代理人端图文资料查询"
,
priority
=
19
)
@Test
(
description
=
"代理人端图文资料查询"
,
priority
=
22
)
public
void
代理人端图文资料查询
()
{
agentAuth
();
...
...
@@ -391,7 +419,7 @@ public class LiveVisitors implements Authorization
}
//代理人端表单资料查询
@Test
(
description
=
"代理人端表单资料查询"
,
priority
=
2
0
)
@Test
(
description
=
"代理人端表单资料查询"
,
priority
=
2
3
)
public
ResourceForm
代理人端表单资料查询
()
{
agentAuth
();
...
...
@@ -405,7 +433,7 @@ public class LiveVisitors implements Authorization
}
/*代理人端免费领资料-查询*/
@Test
(
description
=
"代理人端免费领资料查询"
,
priority
=
2
1
)
@Test
(
description
=
"代理人端免费领资料查询"
,
priority
=
2
4
)
public
void
代理人端免费领资料查询
()
{
agentAuth
();
...
...
@@ -419,7 +447,7 @@ public class LiveVisitors implements Authorization
}
//代理人端小程序链接资料查询
@Test
(
description
=
"代理人端小程序链接资料查询"
,
priority
=
2
2
)
@Test
(
description
=
"代理人端小程序链接资料查询"
,
priority
=
2
5
)
public
void
代理人端小程序链接资料查询
()
{
agentAuth
();
...
...
@@ -433,7 +461,7 @@ public class LiveVisitors implements Authorization
}
//助播端编辑权益
@Test
(
description
=
"助播端编辑权益"
,
priority
=
2
3
)
@Test
(
description
=
"助播端编辑权益"
,
priority
=
2
6
)
public
void
助播端编辑权益
()
{
adminAuth
();
...
...
@@ -446,7 +474,7 @@ public class LiveVisitors implements Authorization
Assert
.
assertNotNull
(
list
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_ResourceEdit
,
"编辑主播端权益列表失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"上架贴片"
,
priority
=
2
4
)
@Test
(
description
=
"上架贴片"
,
priority
=
2
7
)
public
void
上架贴片
()
{
adminAuth
();
...
...
@@ -459,7 +487,7 @@ public class LiveVisitors implements Authorization
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_pasterOn
,
"贴片上架失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"获取推送列表"
,
priority
=
2
5
)
@Test
(
description
=
"获取推送列表"
,
priority
=
2
8
)
public
void
获取推送列表
()
{
adminAuth
();
...
...
@@ -476,7 +504,7 @@ public class LiveVisitors implements Authorization
Assert
.
assertTrue
(
isHasConfPaster
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_ResourceList
,
"获取列表失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"访客获取贴片信息"
,
priority
=
2
6
)
@Test
(
description
=
"访客获取贴片信息"
,
priority
=
2
9
)
public
void
访客获取贴片信息
()
{
ThreadSleepUtils
.
sleep
(
1000
);
...
...
@@ -488,7 +516,7 @@ public class LiveVisitors implements Authorization
Assert
.
assertNotNull
(
data
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_pasterInfo
,
"访客未获取到贴片信息"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"贴片下架"
,
priority
=
27
)
@Test
(
description
=
"贴片下架"
,
priority
=
30
)
public
void
贴片下架
()
{
adminAuth
();
...
...
@@ -505,7 +533,7 @@ public class LiveVisitors implements Authorization
* 资料-我要咨询
*/
@Test
(
description
=
"资料咨询时客户标记同意"
,
priority
=
28
)
@Test
(
description
=
"资料咨询时客户标记同意"
,
priority
=
31
)
public
void
资料咨询时客户标记同意
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
...
...
@@ -520,7 +548,7 @@ public class LiveVisitors implements Authorization
}
@Test
(
description
=
"获取访客跟进机会同意状态"
,
priority
=
29
)
@Test
(
description
=
"获取访客跟进机会同意状态"
,
priority
=
32
)
public
void
获取访客跟进机会同意状态
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
...
...
@@ -533,7 +561,7 @@ public class LiveVisitors implements Authorization
}
@Test
(
description
=
"访客端获取直播间实时数据"
,
priority
=
3
0
)
@Test
(
description
=
"访客端获取直播间实时数据"
,
priority
=
3
3
)
public
void
访客端获取直播间实时数据
(){
Map
<
String
,
Object
>
clueInfoDataPar
=
new
HashMap
<>();
clueInfoDataPar
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
...
...
src/test/java/com/kjj/cases/live/customer/PersonalPage.java
View file @
e67c0126
...
...
@@ -73,6 +73,16 @@ public class PersonalPage implements Authorization {
Assert
.
assertEquals
(
sourceRecordId
,
LiveVisitors
.
resourceReceiveRecordId
,
network
.
message
(
params
,
BasicConfig
.
USER_resourceList
,
"资料领取记录id不正确"
,
response
.
body
().
asString
()));
String
liveId
=
resourceList
.
getLiveId
();
Assert
.
assertEquals
(
liveId
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()),
network
.
message
(
params
,
BasicConfig
.
USER_resourceList
,
"资料领取直播id不正确"
,
response
.
body
().
asString
()));
try
{
for
(
ResourceList
resourceList1
:
resourceLists
){
if
(
resourceList1
.
getLiveId
().
equals
(
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()))){
Assert
.
assertNotEquals
(
resourceList1
.
getRecordId
(),
LiveVisitors
.
freeForEvaReceiveRecordId
,
network
.
message
(
params
,
BasicConfig
.
USER_resourceList
,
"关联测试的资料未被过滤"
,
response
.
body
().
asString
()));
}
else
{
break
;}
}
}
catch
(
NullPointerException
e
){
e
.
printStackTrace
();
Assert
.
fail
(
network
.
message
(
params
,
BasicConfig
.
USER_resourceList
,
"获取数据失败"
,
response
.
body
().
asString
()));
}
companyName
=
resourceList
.
getCompanyName
();
// 获取领取资料的公司名称
}
...
...
src/test/java/com/kjj/cases/live/liveConfig/EvaluationConf.java
View file @
e67c0126
...
...
@@ -82,23 +82,23 @@ public class EvaluationConf implements Authorization {
System
.
out
.
println
(
response
.
body
().
asString
());
}
@Test
(
description
=
"删除权益"
,
priority
=
2
)
public
void
删除权益
()
{
for
(
int
resourceId
:
Arrays
.
asList
(
LiveMaterial
.
resourceId
,
LiveMaterial
.
termResourceId
,
LiveMaterial
.
freeResourceId
,
LiveMaterial
.
picResourceId
)){
System
.
out
.
println
(
resourceId
);
Map
<
String
,
Object
>
delResourceParam
=
new
HashMap
<>();
delResourceParam
.
put
(
"id"
,
resourceId
);
Response
delResourceRes
=
network
.
postResponse
(
delResourceParam
,
BasicConfig
.
MANAGER_delResource
);
try
{
boolean
data
=
delResourceRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
delResourceParam
,
BasicConfig
.
MANAGER_delResource
,
"删除权益失败"
,
delResourceRes
.
body
().
asString
()));
}
catch
(
NullPointerException
e
){
e
.
printStackTrace
();
Assert
.
fail
(
network
.
message
(
delResourceParam
,
BasicConfig
.
MANAGER_delResource
,
"获取数据失败"
,
delResourceRes
.
body
().
asString
()));
}
}
}
//
@Test(description = "删除权益", priority = 2)
//
public void 删除权益() {
//
for (int resourceId : Arrays.asList(LiveMaterial.resourceId, LiveMaterial.termResourceId, LiveMaterial.freeResourceId, LiveMaterial.picResourceId)){
//
System.out.println(resourceId);
//
Map<String, Object> delResourceParam = new HashMap<>();
//
delResourceParam.put("id", resourceId);
//
Response delResourceRes = network.postResponse(delResourceParam, BasicConfig.MANAGER_delResource);
//
try {
//
boolean data = delResourceRes.jsonPath().getBoolean("data");
//
System.out.println(data);
//
Assert.assertTrue(data, network.message(delResourceParam, BasicConfig.MANAGER_delResource, "删除权益失败", delResourceRes.body().asString()));
//
}catch (NullPointerException e){
//
e.printStackTrace();
//
Assert.fail(network.message(delResourceParam, BasicConfig.MANAGER_delResource, "获取数据失败", delResourceRes.body().asString()));
//
}
//
}
//
}
...
...
src/test/java/com/kjj/cases/live/lottery/Lottery.java
View file @
e67c0126
...
...
@@ -68,7 +68,7 @@ public class Lottery implements Authorization {
Assert
.
assertTrue
(
success
,
network
.
message
(
connectSuccessParam
,
BasicConfig
.
USER_connectSuccess
,
"访客到场请求失败"
,
response
.
body
().
asString
()));
}
/*
@Test
(
description
=
"访客A抽奖查询抽奖活动弹层"
,
priority
=
5
)
public
void
访客
A
抽奖查询抽奖活动弹层
()
{
visitorAuth
();
...
...
@@ -1473,7 +1473,7 @@ public class Lottery implements Authorization {
throw
e
;
}
}
*/
}
...
...
src/test/java/com/kjj/cases/live/lotteryCode/LotteryCode.java
View file @
e67c0126
...
...
@@ -54,7 +54,6 @@ public class LotteryCode implements Authorization {
Assert
.
assertTrue
(
type
==
3
,
network
.
message
(
tokenParam
,
BasicConfig
.
MOBILE_Token
,
"未获取到绑定结果"
,
tokenRes
.
body
().
asString
()));
}
/*
@Test
(
description
=
"访客A获取直播所有的订阅消息模板"
,
priority
=
4
)
public
void
访客
A
获取直播所有的订阅消息模板
()
{
visitorAuth
();
...
...
@@ -243,7 +242,7 @@ public class LotteryCode implements Authorization {
System
.
out
.
println
(
type
);
Assert
.
assertTrue
(
type
==
3
,
network
.
message
(
tokenParam
,
BasicConfig
.
MOBILE_Token
,
"未获取到绑定结果"
,
tokenRes
.
body
().
asString
()));
}
*/
}
src/test/liveTestNG.xml
View file @
e67c0126
...
...
@@ -7,39 +7,39 @@
<class
name=
"com.kjj.cases.live.liveConfig.LiveMaterial"
/>
</classes>
</test>
<!-- <test preserve-order="true" name="配置秒杀商品">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.secondKill.ManagerConfGoods"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="团队管理">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.liveConfig.Team"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="精彩视频">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.liveConfig.Video"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"配置秒杀商品"
>
<classes
>
<class
name=
"com.kjj.cases.live.secondKill.ManagerConfGoods"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"团队管理"
>
<classes
>
<class
name=
"com.kjj.cases.live.liveConfig.Team"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"精彩视频"
>
<classes
>
<class
name=
"com.kjj.cases.live.liveConfig.Video"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"创建直播"
>
<classes>
<class
name=
"com.kjj.cases.live.liveConfig.SaveLive"
/>
</classes>
</test>
<!-- <test preserve-order="true" name="配置秒杀轮次及秒杀预告">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.secondKill.ConfSecondKill"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"配置秒杀轮次及秒杀预告"
>
<classes
>
<class
name=
"com.kjj.cases.live.secondKill.ConfSecondKill"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="成功案例">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.liveConfig.LiveCase"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"成功案例"
>
<classes
>
<class
name=
"com.kjj.cases.live.liveConfig.LiveCase"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"资料贴片"
>
<classes>
...
...
@@ -48,17 +48,17 @@
</test>
<!-- <test preserve-order="true" name="代理人首页">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.agent.Agent"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"代理人首页"
>
<classes
>
<class
name=
"com.kjj.cases.live.agent.Agent"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="小程序分享">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.liveConfig.Share"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"小程序分享"
>
<classes
>
<class
name=
"com.kjj.cases.live.liveConfig.Share"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"获取抽奖码校验"
>
<classes>
...
...
@@ -66,38 +66,38 @@
</classes>
</test>
<!-- <test preserve-order="false" name="预告页">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.preview.Preview"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="false" name="翻牌集字红包">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.flipCard.FlipCard"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="中奖规则配置">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.liveConfig.WinningRules"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="指定中奖">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.lottery.DesignatedWinner"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="亲友券">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.lottery.RelativeLottery"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="直播前-我的客户页">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.agent.LiveBefore"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"false"
name=
"预告页"
>
<classes
>
<class
name=
"com.kjj.cases.live.preview.Preview"
/
>
</classes
>
</test
>
<test
preserve-order=
"false"
name=
"翻牌集字红包"
>
<classes
>
<class
name=
"com.kjj.cases.live.flipCard.FlipCard"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"中奖规则配置"
>
<classes
>
<class
name=
"com.kjj.cases.live.liveConfig.WinningRules"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"指定中奖"
>
<classes
>
<class
name=
"com.kjj.cases.live.lottery.DesignatedWinner"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"亲友券"
>
<classes
>
<class
name=
"com.kjj.cases.live.lottery.RelativeLottery"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"直播前-我的客户页"
>
<classes
>
<class
name=
"com.kjj.cases.live.agent.LiveBefore"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"助播-开启直播"
>
...
...
@@ -111,51 +111,51 @@
</classes>
</test>
<!-- <test preserve-order="true" name="访客签到">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.lotteryCode.SignIn"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"访客签到"
>
<classes
>
<class
name=
"com.kjj.cases.live.lotteryCode.SignIn"
/
>
</classes
>
</test
>
<!-- <test preserve-order="true" name="宝箱裂变">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.treasure.Treasure"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"宝箱裂变"
>
<classes
>
<class
name=
"com.kjj.cases.live.treasure.Treasure"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"直播中抽奖"
>
<classes>
<class
name=
"com.kjj.cases.live.lottery.Lottery"
/>
</classes>
</test>
<!-- <test preserve-order="true" name="秒杀互动">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.secondKill.SecondKill"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="猜数字红包">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.guess.LiveGuess"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="看直播攒现金">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.treasure.TimeRed"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="免费领福利">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.FreeReward.FreeReward"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="我要咨询">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.agent.Potential"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"秒杀互动"
>
<classes
>
<class
name=
"com.kjj.cases.live.secondKill.SecondKill"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"猜数字红包"
>
<classes
>
<class
name=
"com.kjj.cases.live.guess.LiveGuess"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"看直播攒现金"
>
<classes
>
<class
name=
"com.kjj.cases.live.treasure.TimeRed"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"免费领福利"
>
<classes
>
<class
name=
"com.kjj.cases.live.FreeReward.FreeReward"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"我要咨询"
>
<classes
>
<class
name=
"com.kjj.cases.live.agent.Potential"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"访客领取资料"
>
<classes>
...
...
@@ -163,47 +163,47 @@
</classes>
</test>
<!-- <test preserve-order="true" name="红包领取">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.red.LiveVistorRed"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="有奖答题">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.answer.Answer"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="投票">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.choice.Choice"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="问题">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.question.Question"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="直播中时长宝箱">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.treasure.TreasureTime"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="闯关答题">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.answer.passQues"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="直播中获取线索统计">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.agent.LiveAgent"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<test
preserve-order=
"true"
name=
"红包领取"
>
<classes
>
<class
name=
"com.kjj.cases.live.red.LiveVistorRed"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"有奖答题"
>
<classes
>
<class
name=
"com.kjj.cases.live.answer.Answer"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"投票"
>
<classes
>
<class
name=
"com.kjj.cases.live.choice.Choice"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"问题"
>
<classes
>
<class
name=
"com.kjj.cases.live.question.Question"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"直播中时长宝箱"
>
<classes
>
<class
name=
"com.kjj.cases.live.treasure.TreasureTime"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"闯关答题"
>
<classes
>
<class
name=
"com.kjj.cases.live.answer.passQues"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"直播中获取线索统计"
>
<classes
>
<class
name=
"com.kjj.cases.live.agent.LiveAgent"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"助播-结束直播"
>
<classes>
...
...
@@ -211,40 +211,40 @@
</classes>
</test>
<!-- <test preserve-order="true" name="直播结束-我的客户页">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.agent.LiveLater"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="奖品发放配置">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.agent.Reward"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="指定中奖付款码">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.liveConfig.spec"/>--
>
<!-- </classes>--
>
<!-- </test>--
>
<!-- <test preserve-order="true" name="客户管理">--
>
<!-- <classes>--
>
<!-- <class name="com.kjj.cases.live.agent.Customer"/>--
>
<!-- </classes>--
>
<!-- </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>--
>
<test
preserve-order=
"true"
name=
"直播结束-我的客户页"
>
<classes
>
<class
name=
"com.kjj.cases.live.agent.LiveLater"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"奖品发放配置"
>
<classes
>
<class
name=
"com.kjj.cases.live.agent.Reward"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"指定中奖付款码"
>
<classes
>
<class
name=
"com.kjj.cases.live.liveConfig.spec"
/
>
</classes
>
</test
>
<test
preserve-order=
"true"
name=
"客户管理"
>
<classes
>
<class
name=
"com.kjj.cases.live.agent.Customer"
/
>
</classes
>
</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>
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