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
c89dc69f
Commit
c89dc69f
authored
Aug 17, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/20210816-xmc
parents
daa477d7
431db287
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
NoviceGuidance.java
...est/java/com/kjj/cases/assistant/menu/NoviceGuidance.java
+1
-0
LiveVisitors.java
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
+6
-6
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+1
-0
No files found.
src/test/java/com/kjj/cases/assistant/menu/NoviceGuidance.java
View file @
c89dc69f
...
...
@@ -66,6 +66,7 @@ public class NoviceGuidance implements Authorization {
@Test
(
description
=
"进入名片后唤起新手引导"
,
priority
=
5
)
public
void
进入名片后唤起新手引导
(){
sleep
(
2000
);
Response
response
=
network
.
getResponse
(
SELLERCARD_CARDGUIDE
);
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
int
guideType
=
response
.
jsonPath
().
getInt
(
"data.guideType"
);
...
...
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
View file @
c89dc69f
...
...
@@ -290,7 +290,7 @@ public class LiveVisitors implements Authorization
adminAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
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
(
4
).
getConfId
());
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_pasterOn
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
...
...
@@ -304,13 +304,13 @@ public class LiveVisitors implements Authorization
ThreadSleepUtils
.
sleep
(
1000
);
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
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
(
4
).
getConfId
());
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_ResourceList
);
List
<
LiveVisitor
>
liveVisitors
=
JsonUtil
.
parseResponseToListBean
(
response
,
LiveVisitor
.
class
);
LiveVisitor
form
=
liveVisitors
.
get
(
5
);
LiveVisitor
form
=
liveVisitors
.
get
(
4
);
boolean
isHasConfPaster
=
form
.
isHasConfPaster
();
System
.
out
.
println
(
isHasConfPaster
);
Assert
.
assertTrue
(
isHasConfPaster
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_ResourceList
,
"
贴片上架
失败"
,
response
.
body
().
asString
()));
System
.
out
.
println
(
response
.
body
().
asString
()
);
Assert
.
assertTrue
(
isHasConfPaster
,
network
.
message
(
params
,
BasicConfig
.
MOBILE_ResourceList
,
"
获取列表
失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"访客获取贴片信息"
,
priority
=
19
)
...
...
@@ -331,7 +331,7 @@ public class LiveVisitors implements Authorization
adminAuth
();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
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
(
4
).
getConfId
());
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_pasterOff
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
...
...
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
c89dc69f
...
...
@@ -1419,6 +1419,7 @@ public class SaveLive implements Authorization {
Params
.
put
(
"showAmount"
,
1000
);
Params
.
put
(
"showMaxAmount"
,
1000
);
Params
.
put
(
"poolType"
,
1
);
Params
.
put
(
"openSceneType"
,
1
);
Params
.
put
(
"freeNum"
,
1
);
Response
response
=
network
.
postResponse
(
Params
,
BasicConfig
.
MANAGER_flipWord
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
...
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