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
f623e159
Commit
f623e159
authored
Aug 16, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除测试类型的权益
parent
85e691d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
216 additions
and
217 deletions
+216
-217
LiveVisitors.java
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
+18
-19
liveTestNG.xml
src/test/liveTestNG.xml
+198
-198
No files found.
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
View file @
f623e159
...
@@ -33,8 +33,7 @@ public class LiveVisitors implements Authorization
...
@@ -33,8 +33,7 @@ public class LiveVisitors implements Authorization
{
{
adminAuth
();
adminAuth
();
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
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceList
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceList
);
List
<
ResourcePushList
>
list
=
JsonUtil
.
parseResponseToListBean
(
response
,
ResourcePushList
.
class
);
List
<
ResourcePushList
>
list
=
JsonUtil
.
parseResponseToListBean
(
response
,
ResourcePushList
.
class
);
this
.
PushList
=
list
;
this
.
PushList
=
list
;
...
@@ -51,7 +50,7 @@ public class LiveVisitors implements Authorization
...
@@ -51,7 +50,7 @@ public class LiveVisitors implements Authorization
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
this
.
PushList
.
get
(
1
).
getConfId
());
params
.
put
(
"confId"
,
this
.
PushList
.
get
(
1
).
getConfId
());
params
.
put
(
"pushType"
,
this
.
PushList
.
get
(
1
).
getPushType
());
params
.
put
(
"pushType"
,
this
.
PushList
.
get
(
1
).
getPushType
());
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_ResourceOn
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_ResourceOn
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
System
.
out
.
println
(
data
);
...
@@ -66,7 +65,7 @@ public class LiveVisitors implements Authorization
...
@@ -66,7 +65,7 @@ public class LiveVisitors implements Authorization
ThreadSleepUtils
.
sleep
(
3000
);
ThreadSleepUtils
.
sleep
(
3000
);
visitorAuth
();
visitorAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Resource
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Resource
);
System
.
out
.
println
(
params
);
System
.
out
.
println
(
params
);
System
.
out
.
println
(
response
.
body
().
asString
());
System
.
out
.
println
(
response
.
body
().
asString
());
...
@@ -110,7 +109,7 @@ public class LiveVisitors implements Authorization
...
@@ -110,7 +109,7 @@ public class LiveVisitors implements Authorization
ResourceForm
list
=
访客端系统表单资料查询
();
ResourceForm
list
=
访客端系统表单资料查询
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
confId_form
);
params
.
put
(
"confId"
,
confId_form
);
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
List
<
ResourceForm
.
FieldList
>
fieldList
=
list
.
getFieldList
();
List
<
ResourceForm
.
FieldList
>
fieldList
=
list
.
getFieldList
();
List
<
JSONObject
>
fieldListparam
=
new
ArrayList
<>();
List
<
JSONObject
>
fieldListparam
=
new
ArrayList
<>();
JSONObject
one
=
new
JSONObject
();
JSONObject
one
=
new
JSONObject
();
...
@@ -137,7 +136,7 @@ public class LiveVisitors implements Authorization
...
@@ -137,7 +136,7 @@ public class LiveVisitors implements Authorization
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
this
.
PushList
.
get
(
1
).
getConfId
());
params
.
put
(
"confId"
,
this
.
PushList
.
get
(
1
).
getConfId
());
params
.
put
(
"pushType"
,
this
.
PushList
.
get
(
1
).
getPushType
());
params
.
put
(
"pushType"
,
this
.
PushList
.
get
(
1
).
getPushType
());
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_ResourceOff
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_ResourceOff
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
System
.
out
.
println
(
data
);
...
@@ -151,7 +150,7 @@ public class LiveVisitors implements Authorization
...
@@ -151,7 +150,7 @@ public class LiveVisitors implements Authorization
visitorAuth
();
visitorAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
confId_free
);
params
.
put
(
"confId"
,
confId_free
);
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
);
ResourceFree
agentBeans
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceFree
.
class
);
ResourceFree
agentBeans
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceFree
.
class
);
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
...
@@ -165,7 +164,7 @@ public class LiveVisitors implements Authorization
...
@@ -165,7 +164,7 @@ public class LiveVisitors implements Authorization
visitorAuth
();
visitorAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
confId_free
);
params
.
put
(
"confId"
,
confId_free
);
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
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
()));
...
@@ -192,7 +191,7 @@ public class LiveVisitors implements Authorization
...
@@ -192,7 +191,7 @@ public class LiveVisitors implements Authorization
visitorAuth
();
visitorAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
confId_link
);
params
.
put
(
"confId"
,
confId_link
);
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Link
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Link
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"success"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Link
,
"领取链接资料失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_Link
,
"领取链接资料失败"
,
response
.
body
().
asString
()));
...
@@ -205,7 +204,7 @@ public class LiveVisitors implements Authorization
...
@@ -205,7 +204,7 @@ public class LiveVisitors implements Authorization
agentAuth
();
agentAuth
();
ThreadSleepUtils
.
sleep
(
3000
);
ThreadSleepUtils
.
sleep
(
3000
);
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Resource
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Resource
);
List
<
LiveVisitor
>
liveVisitors
=
JsonUtil
.
parseResponseToListBean
(
response
,
LiveVisitor
.
class
);
List
<
LiveVisitor
>
liveVisitors
=
JsonUtil
.
parseResponseToListBean
(
response
,
LiveVisitor
.
class
);
System
.
out
.
println
(
liveVisitors
);
System
.
out
.
println
(
liveVisitors
);
...
@@ -219,7 +218,7 @@ public class LiveVisitors implements Authorization
...
@@ -219,7 +218,7 @@ public class LiveVisitors implements Authorization
agentAuth
();
agentAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
confId_imageText
);
params
.
put
(
"confId"
,
confId_imageText
);
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
);
ResourceFree
agentBeans
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceFree
.
class
);
ResourceFree
agentBeans
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceFree
.
class
);
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
...
@@ -247,7 +246,7 @@ public class LiveVisitors implements Authorization
...
@@ -247,7 +246,7 @@ public class LiveVisitors implements Authorization
agentAuth
();
agentAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
confId_free
);
params
.
put
(
"confId"
,
confId_free
);
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
);
ResourceFree
agentBeans
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceFree
.
class
);
ResourceFree
agentBeans
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceFree
.
class
);
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
...
@@ -261,7 +260,7 @@ public class LiveVisitors implements Authorization
...
@@ -261,7 +260,7 @@ public class LiveVisitors implements Authorization
agentAuth
();
agentAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"confId"
,
confId_link
);
params
.
put
(
"confId"
,
confId_link
);
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceFindDetailByConfid
);
ResourceFree
agentBeans
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceFree
.
class
);
ResourceFree
agentBeans
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceFree
.
class
);
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
...
@@ -274,7 +273,7 @@ public class LiveVisitors implements Authorization
...
@@ -274,7 +273,7 @@ public class LiveVisitors implements Authorization
{
{
adminAuth
();
adminAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
params
.
put
(
"ids"
,
confId_imageText
);
params
.
put
(
"ids"
,
confId_imageText
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceEditList
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceEditList
);
ResourceEditList
list
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceEditList
.
class
);
ResourceEditList
list
=
JsonUtil
.
parseResponseToBean
(
response
,
ResourceEditList
.
class
);
...
@@ -287,7 +286,7 @@ public class LiveVisitors implements Authorization
...
@@ -287,7 +286,7 @@ public class LiveVisitors implements Authorization
{
{
adminAuth
();
adminAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
params
.
put
(
"confId"
,
this
.
PushList
.
get
(
5
).
getConfId
());
params
.
put
(
"confId"
,
this
.
PushList
.
get
(
5
).
getConfId
());
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_pasterOn
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_pasterOn
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
@@ -301,7 +300,7 @@ public class LiveVisitors implements Authorization
...
@@ -301,7 +300,7 @@ public class LiveVisitors implements Authorization
adminAuth
();
adminAuth
();
ThreadSleepUtils
.
sleep
(
1000
);
ThreadSleepUtils
.
sleep
(
1000
);
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
params
.
put
(
"confId"
,
this
.
PushList
.
get
(
5
).
getConfId
());
params
.
put
(
"confId"
,
this
.
PushList
.
get
(
5
).
getConfId
());
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceList
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceList
);
List
<
LiveVisitor
>
liveVisitors
=
JsonUtil
.
parseResponseToListBean
(
response
,
LiveVisitor
.
class
);
List
<
LiveVisitor
>
liveVisitors
=
JsonUtil
.
parseResponseToListBean
(
response
,
LiveVisitor
.
class
);
...
@@ -317,7 +316,7 @@ public class LiveVisitors implements Authorization
...
@@ -317,7 +316,7 @@ public class LiveVisitors implements Authorization
ThreadSleepUtils
.
sleep
(
1000
);
ThreadSleepUtils
.
sleep
(
1000
);
visitorAuth
();
visitorAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_pasterInfo
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_pasterInfo
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_pasterInfo
,
"访客未获取到贴片信息"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_pasterInfo
,
"访客未获取到贴片信息"
,
response
.
body
().
asString
()));
...
@@ -328,7 +327,7 @@ public class LiveVisitors implements Authorization
...
@@ -328,7 +327,7 @@ public class LiveVisitors implements Authorization
{
{
adminAuth
();
adminAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
params
.
put
(
"confId"
,
this
.
PushList
.
get
(
5
).
getConfId
());
params
.
put
(
"confId"
,
this
.
PushList
.
get
(
5
).
getConfId
());
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_pasterOff
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_pasterOff
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
@@ -343,7 +342,7 @@ public class LiveVisitors implements Authorization
...
@@ -343,7 +342,7 @@ public class LiveVisitors implements Authorization
@Test
(
description
=
"资料咨询时客户标记同意"
,
priority
=
21
)
@Test
(
description
=
"资料咨询时客户标记同意"
,
priority
=
21
)
public
void
资料咨询时客户标记同意
()
{
public
void
资料咨询时客户标记同意
()
{
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Map
<
String
,
Object
>
Params
=
new
HashMap
<>();
Params
.
put
(
"liveId"
,
IdMakeUtil
.
encodingId
(
Long
.
valueOf
(
5310L
)));
Params
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
(
)));
Params
.
put
(
"bizConfId"
,
confId_link
);
Params
.
put
(
"bizConfId"
,
confId_link
);
Params
.
put
(
"chanceType"
,
2
);
Params
.
put
(
"chanceType"
,
2
);
Params
.
put
(
"agreeFlag"
,
true
);
Params
.
put
(
"agreeFlag"
,
true
);
...
...
src/test/liveTestNG.xml
View file @
f623e159
...
@@ -2,132 +2,132 @@
...
@@ -2,132 +2,132 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite
name=
"直播"
verbose=
"1"
thread-count=
"3"
>
<suite
name=
"直播"
verbose=
"1"
thread-count=
"3"
>
<!-- <test preserve-order="true" name="直播素材">--
>
<test
preserve-order=
"true"
name=
"直播素材"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.liveConfig.LiveMaterial"/>--
>
<class
name=
"com.kjj.cases.live.liveConfig.LiveMaterial"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="团队管理">--
>
<test
preserve-order=
"true"
name=
"团队管理"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.liveConfig.Team"/>--
>
<class
name=
"com.kjj.cases.live.liveConfig.Team"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="精彩视频">--
>
<test
preserve-order=
"true"
name=
"精彩视频"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.liveConfig.Video"/>--
>
<class
name=
"com.kjj.cases.live.liveConfig.Video"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="创建直播">--
>
<test
preserve-order=
"true"
name=
"创建直播"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.liveConfig.SaveLive"/>--
>
<class
name=
"com.kjj.cases.live.liveConfig.SaveLive"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="成功案例">--
>
<test
preserve-order=
"true"
name=
"成功案例"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.liveConfig.LiveCase"/>--
>
<class
name=
"com.kjj.cases.live.liveConfig.LiveCase"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="资料贴片">--
>
<test
preserve-order=
"true"
name=
"资料贴片"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.liveConfig.Paster"/>--
>
<class
name=
"com.kjj.cases.live.liveConfig.Paster"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="代理人首页">--
>
<test
preserve-order=
"true"
name=
"代理人首页"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.agent.Agent"/>--
>
<class
name=
"com.kjj.cases.live.agent.Agent"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="小程序分享">--
>
<test
preserve-order=
"true"
name=
"小程序分享"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.liveConfig.Share"/>--
>
<class
name=
"com.kjj.cases.live.liveConfig.Share"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="获取抽奖码校验">--
>
<test
preserve-order=
"true"
name=
"获取抽奖码校验"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.lotteryCode.LotteryCode"/>--
>
<class
name=
"com.kjj.cases.live.lotteryCode.LotteryCode"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="false" name="翻牌集字红包">--
>
<test
preserve-order=
"false"
name=
"翻牌集字红包"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.flipCard.FlipCard"/>--
>
<class
name=
"com.kjj.cases.live.flipCard.FlipCard"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="中奖规则配置">--
>
<test
preserve-order=
"true"
name=
"中奖规则配置"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.liveConfig.WinningRules"/>--
>
<class
name=
"com.kjj.cases.live.liveConfig.WinningRules"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="指定中奖">--
>
<test
preserve-order=
"true"
name=
"指定中奖"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.lottery.DesignatedWinner"/>--
>
<class
name=
"com.kjj.cases.live.lottery.DesignatedWinner"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="直播前-我的客户页">--
>
<test
preserve-order=
"true"
name=
"直播前-我的客户页"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.agent.LiveBefore"/>--
>
<class
name=
"com.kjj.cases.live.agent.LiveBefore"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="助播-开启直播">--
>
<test
preserve-order=
"true"
name=
"助播-开启直播"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.anchor.OpenLive"/>--
>
<class
name=
"com.kjj.cases.live.anchor.OpenLive"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="访客签到">--
>
<test
preserve-order=
"true"
name=
"访客签到"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.lotteryCode.SignIn"/>--
>
<class
name=
"com.kjj.cases.live.lotteryCode.SignIn"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="宝箱裂变">--
>
<test
preserve-order=
"true"
name=
"宝箱裂变"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.treasure.Treasure"/>--
>
<class
name=
"com.kjj.cases.live.treasure.Treasure"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="直播中抽奖">--
>
<test
preserve-order=
"true"
name=
"直播中抽奖"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.lottery.Lottery"/>--
>
<class
name=
"com.kjj.cases.live.lottery.Lottery"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="猜数字红包">--
>
<test
preserve-order=
"true"
name=
"猜数字红包"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.guess.LiveGuess"/>--
>
<class
name=
"com.kjj.cases.live.guess.LiveGuess"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="看直播攒现金">--
>
<test
preserve-order=
"true"
name=
"看直播攒现金"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.treasure.TimeRed"/>--
>
<class
name=
"com.kjj.cases.live.treasure.TimeRed"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="免费领福利">--
>
<test
preserve-order=
"true"
name=
"免费领福利"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.FreeReward.FreeReward"/>--
>
<class
name=
"com.kjj.cases.live.FreeReward.FreeReward"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="我要咨询">--
>
<test
preserve-order=
"true"
name=
"我要咨询"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.agent.Potential"/>--
>
<class
name=
"com.kjj.cases.live.agent.Potential"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<test
preserve-order=
"true"
name=
"访客领取资料"
>
<test
preserve-order=
"true"
name=
"访客领取资料"
>
<classes>
<classes>
...
@@ -135,77 +135,77 @@
...
@@ -135,77 +135,77 @@
</classes>
</classes>
</test>
</test>
<!-- <test preserve-order="true" name="红包领取">--
>
<test
preserve-order=
"true"
name=
"红包领取"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.red.LiveVistorRed"/>--
>
<class
name=
"com.kjj.cases.live.red.LiveVistorRed"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="有奖答题">--
>
<test
preserve-order=
"true"
name=
"有奖答题"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.answer.Answer"/>--
>
<class
name=
"com.kjj.cases.live.answer.Answer"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="投票">--
>
<test
preserve-order=
"true"
name=
"投票"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.choice.Choice"/>--
>
<class
name=
"com.kjj.cases.live.choice.Choice"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="问题">--
>
<test
preserve-order=
"true"
name=
"问题"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.question.Question"/>--
>
<class
name=
"com.kjj.cases.live.question.Question"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="直播中时长宝箱">--
>
<test
preserve-order=
"true"
name=
"直播中时长宝箱"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.treasure.TreasureTime"/>--
>
<class
name=
"com.kjj.cases.live.treasure.TreasureTime"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="闯关答题">--
>
<test
preserve-order=
"true"
name=
"闯关答题"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.answer.passQues"/>--
>
<class
name=
"com.kjj.cases.live.answer.passQues"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="直播中获取线索统计">--
>
<test
preserve-order=
"true"
name=
"直播中获取线索统计"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.agent.LiveAgent"/>--
>
<class
name=
"com.kjj.cases.live.agent.LiveAgent"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="助播-结束直播">--
>
<test
preserve-order=
"true"
name=
"助播-结束直播"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.anchor.CloseLive"/>--
>
<class
name=
"com.kjj.cases.live.anchor.CloseLive"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="直播结束-我的客户页">--
>
<test
preserve-order=
"true"
name=
"直播结束-我的客户页"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.agent.LiveLater"/>--
>
<class
name=
"com.kjj.cases.live.agent.LiveLater"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="奖品发放配置">--
>
<test
preserve-order=
"true"
name=
"奖品发放配置"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.agent.Reward"/>--
>
<class
name=
"com.kjj.cases.live.agent.Reward"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="指定中奖付款码">--
>
<test
preserve-order=
"true"
name=
"指定中奖付款码"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.liveConfig.spec"/>--
>
<class
name=
"com.kjj.cases.live.liveConfig.spec"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
<!-- <test preserve-order="true" name="客户管理">--
>
<test
preserve-order=
"true"
name=
"客户管理"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.kjj.cases.live.agent.Customer"/>--
>
<class
name=
"com.kjj.cases.live.agent.Customer"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</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