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
56b95093
Commit
56b95093
authored
Aug 19, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/live_kill
parents
b3da835a
3e333315
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
HomePage.java
src/test/java/com/kjj/cases/assistant/homePage/HomePage.java
+1
-1
LiveBefore.java
src/test/java/com/kjj/cases/live/agent/LiveBefore.java
+2
-2
No files found.
src/test/java/com/kjj/cases/assistant/homePage/HomePage.java
View file @
56b95093
...
@@ -56,7 +56,7 @@ public class HomePage implements Authorization {
...
@@ -56,7 +56,7 @@ public class HomePage implements Authorization {
Response
response
=
network
.
getResponse
(
params
,
HOME_getContentList
);
Response
response
=
network
.
getResponse
(
params
,
HOME_getContentList
);
Object
obj
=
response
.
jsonPath
().
getJsonObject
(
"data.list"
);
Object
obj
=
response
.
jsonPath
().
getJsonObject
(
"data.list"
);
Assert
.
assertNotNull
(
obj
,
network
.
message
(
params
,
HOME_getContentList
,
"获取首页种草素材列表失败"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
obj
,
network
.
message
(
params
,
HOME_getContentList
,
"获取首页种草素材列表失败"
,
response
.
body
().
asString
()));
grasscontentId
=
response
.
jsonPath
().
getString
(
"data.list.get(
0
).contentId"
);
grasscontentId
=
response
.
jsonPath
().
getString
(
"data.list.get(
8
).contentId"
);
articleId
=
decodingId
(
grasscontentId
);
articleId
=
decodingId
(
grasscontentId
);
//获取素材对应的scid
//获取素材对应的scid
...
...
src/test/java/com/kjj/cases/live/agent/LiveBefore.java
View file @
56b95093
...
@@ -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
()));
}
}
...
...
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