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
0b2fb3ed
Commit
0b2fb3ed
authored
Dec 01, 2021
by
郭姣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业后台登录接口增加延时,公司专区新增文章类型时增加延时
parent
21e11411
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
HomePage.java
src/test/java/com/kjj/cases/assistant/homePage/HomePage.java
+2
-1
BaseUtils.java
src/test/java/com/kjj/utils/BaseUtils.java
+3
-3
No files found.
src/test/java/com/kjj/cases/assistant/homePage/HomePage.java
View file @
0b2fb3ed
...
@@ -422,6 +422,7 @@ public class HomePage implements Authorization {
...
@@ -422,6 +422,7 @@ public class HomePage implements Authorization {
//管理后台删除文章
//管理后台删除文章
@Test
(
description
=
"管理后台_删除公司专区内容"
,
priority
=
22
)
@Test
(
description
=
"管理后台_删除公司专区内容"
,
priority
=
22
)
public
void
管理后台
_
删除公司专区内容
(){
public
void
管理后台
_
删除公司专区内容
(){
ThreadSleepUtils
.
sleep
(
2000
);
//获取删除的内容的id
//获取删除的内容的id
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"exclusiveAreaId"
,
21
);
params
.
put
(
"exclusiveAreaId"
,
21
);
...
@@ -454,7 +455,7 @@ public class HomePage implements Authorization {
...
@@ -454,7 +455,7 @@ public class HomePage implements Authorization {
paramsList
.
put
(
"source"
,
1
);
paramsList
.
put
(
"source"
,
1
);
Response
dataRes
=
network
.
getResponse
(
paramsList
,
HOME_companyGetContentList
);
Response
dataRes
=
network
.
getResponse
(
paramsList
,
HOME_companyGetContentList
);
int
totalCount
=
dataRes
.
jsonPath
().
getInt
(
"data.totalCount"
);
int
totalCount
=
dataRes
.
jsonPath
().
getInt
(
"data.totalCount"
);
int
totalCountNew
=
companyCount
-
3
;
//因为其中还包含2个视频,一个删除的文章,所以减去
2
int
totalCountNew
=
companyCount
-
3
;
//因为其中还包含2个视频,一个删除的文章,所以减去
3
Assert
.
assertEquals
(
totalCount
,
totalCountNew
,
network
.
message
(
paramsList
,
HOME_companyGetContentList
,
"获取公司专区内容列表数据错误"
,
dataRes
.
body
().
asString
()));
Assert
.
assertEquals
(
totalCount
,
totalCountNew
,
network
.
message
(
paramsList
,
HOME_companyGetContentList
,
"获取公司专区内容列表数据错误"
,
dataRes
.
body
().
asString
()));
}
}
...
...
src/test/java/com/kjj/utils/BaseUtils.java
View file @
0b2fb3ed
...
@@ -214,7 +214,7 @@ public class BaseUtils {
...
@@ -214,7 +214,7 @@ public class BaseUtils {
System
.
out
.
println
(
captcha
);
System
.
out
.
println
(
captcha
);
//登录接口
//登录接口
ThreadSleepUtils
.
sleep
(
1
000
);
ThreadSleepUtils
.
sleep
(
2
000
);
params
.
clear
();
params
.
clear
();
params
.
put
(
"phone"
,
"15136361308"
);
params
.
put
(
"phone"
,
"15136361308"
);
params
.
put
(
"captcha"
,
captcha
);
params
.
put
(
"captcha"
,
captcha
);
...
@@ -260,7 +260,7 @@ public class BaseUtils {
...
@@ -260,7 +260,7 @@ public class BaseUtils {
System
.
out
.
println
(
captcha
);
System
.
out
.
println
(
captcha
);
//登录接口
//登录接口
ThreadSleepUtils
.
sleep
(
1
000
);
ThreadSleepUtils
.
sleep
(
2
000
);
params
.
clear
();
params
.
clear
();
params
.
put
(
"phone"
,
"15136361307"
);
params
.
put
(
"phone"
,
"15136361307"
);
params
.
put
(
"captcha"
,
captcha
);
params
.
put
(
"captcha"
,
captcha
);
...
@@ -307,7 +307,7 @@ public class BaseUtils {
...
@@ -307,7 +307,7 @@ public class BaseUtils {
System
.
out
.
println
(
captcha
);
System
.
out
.
println
(
captcha
);
//登录接口
//登录接口
ThreadSleepUtils
.
sleep
(
1
000
);
ThreadSleepUtils
.
sleep
(
2
000
);
params
.
clear
();
params
.
clear
();
params
.
put
(
"phone"
,
"15136361306"
);
params
.
put
(
"phone"
,
"15136361306"
);
params
.
put
(
"captcha"
,
captcha
);
params
.
put
(
"captcha"
,
captcha
);
...
...
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