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
ef43b427
Commit
ef43b427
authored
Nov 22, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gifeature/20211115-gj' into 'master'
集客助手公司专区增加视频类型修复 See merge request test-group/kejiji!167
parents
1c04b891
37ff3c61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
HomePage.java
src/test/java/com/kjj/cases/assistant/homePage/HomePage.java
+4
-3
No files found.
src/test/java/com/kjj/cases/assistant/homePage/HomePage.java
View file @
ef43b427
...
...
@@ -401,6 +401,7 @@ public class HomePage implements Authorization {
@Test
(
description
=
"首页_公司专区列表"
,
priority
=
21
)
public
void
首页
_
公司专区列表
(){
//获取公司专区标签id
sleep
(
5000
);
Response
response
=
network
.
getResponse
(
Daily_getTagList
);
Object
id
=
response
.
jsonPath
().
getJsonObject
(
"data.get(0).id"
);
String
desc
=
response
.
jsonPath
().
getString
(
"desc"
);
...
...
@@ -429,7 +430,7 @@ public class HomePage implements Authorization {
params
.
put
(
"pageNo"
,
1
);
params
.
put
(
"pageSize"
,
20
);
Response
listRes
=
network
.
getResponse
(
params
,
MANAGER_exclusiveItemPage
);
Object
id
=
listRes
.
jsonPath
().
getJsonObject
(
"data.list.get(
1
).id"
);
Object
id
=
listRes
.
jsonPath
().
getJsonObject
(
"data.list.get(
3
).id"
);
String
desc
=
listRes
.
jsonPath
().
getString
(
"desc"
);
Assert
.
assertEquals
(
desc
,
"OK"
,
network
.
message
(
params
,
MANAGER_exclusiveItemPage
,
"获取id失败"
,
listRes
.
body
().
asString
()));
companyCount
=
listRes
.
jsonPath
().
getInt
(
"data.list.size()"
);
...
...
@@ -453,11 +454,11 @@ public class HomePage implements Authorization {
paramsList
.
put
(
"source"
,
1
);
Response
dataRes
=
network
.
getResponse
(
paramsList
,
HOME_companyGetContentList
);
int
totalCount
=
dataRes
.
jsonPath
().
getInt
(
"data.totalCount"
);
int
totalCountNew
=
companyCount
-
2
;
//因为其中还包含一个视频,一个删除的文章,所以减去2
int
totalCountNew
=
companyCount
-
3
;
//因为其中还包含一个视频,一个删除的文章,所以减去2
Assert
.
assertEquals
(
totalCount
,
totalCountNew
,
network
.
message
(
paramsList
,
HOME_companyGetContentList
,
"获取公司专区内容列表数据错误"
,
dataRes
.
body
().
asString
()));
}
//管理后台删除
文章
//管理后台删除
视频
@Test
(
description
=
"管理后台_删除公司专区视频"
,
priority
=
23
)
public
void
管理后台
_
删除公司专区视频
(){
//获取删除的视频的id
...
...
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