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
762f8388
Commit
762f8388
authored
Jul 29, 2021
by
郭姣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成功案例,上传链接接口用例修改
parent
1890fa7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
HomePage.java
src/test/java/com/kjj/cases/assistant/homePage/HomePage.java
+2
-2
Upload.java
src/test/java/com/kjj/cases/assistant/homePage/Upload.java
+3
-3
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+1
-0
No files found.
src/test/java/com/kjj/cases/assistant/homePage/HomePage.java
View file @
762f8388
...
...
@@ -226,8 +226,8 @@ public class HomePage implements Authorization {
@Test
(
description
=
"首页_公司专区列表"
,
priority
=
15
)
public
void
首页
_
公司专区列表
(){
Response
response
=
network
.
getResponse
(
HOME_getExclusiveArea
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data
"
);
Assert
.
assert
NotNull
(
data
,
network
.
message
(
HOME_getExclusiveArea
,
"获取公司专区列表失败"
,
response
.
body
().
asString
()));
String
desc
=
response
.
jsonPath
().
getString
(
"desc
"
);
Assert
.
assert
Equals
(
desc
,
"OK"
,
network
.
message
(
HOME_getExclusiveArea
,
"获取公司专区列表失败"
,
response
.
body
().
asString
()));
}
//管理后台新增成功案例
...
...
src/test/java/com/kjj/cases/assistant/homePage/Upload.java
View file @
762f8388
...
...
@@ -57,11 +57,11 @@ public class Upload {
params
.
put
(
"page"
,
"upload_link"
);
long
timestamp
=
System
.
currentTimeMillis
();
params
.
put
(
"timestamp"
,
timestamp
);
Response
response
=
network
.
getResponse
(
params
,
GREETING
_getTipsByPage
);
Response
response
=
network
.
getResponse
(
params
,
UPLOAD
_getTipsByPage
);
boolean
isShowTips
=
response
.
jsonPath
().
getBoolean
(
"data.isShowTips"
);
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assertTrue
(
isShowTips
,
network
.
message
(
params
,
GREETING
_getTipsByPage
,
"tips展示成功"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
GREETING
_getTipsByPage
,
"查看tips请求失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
isShowTips
,
network
.
message
(
params
,
UPLOAD
_getTipsByPage
,
"tips展示成功"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
UPLOAD
_getTipsByPage
,
"查看tips请求失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"上传_文章链接"
,
priority
=
5
)
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
762f8388
...
...
@@ -683,6 +683,7 @@ public class BasicConfig {
public
static
final
String
UPLOAD_UNBIND
=
HOST
+
"/kjy/mp/seller/import/unbind"
;
public
static
final
String
UPLOAD_supportDomain
=
HOST
+
"/kjy/mp/supportDomain"
;
public
static
final
String
UPLOAD_sellerFirstVisit
=
HOST
+
"/kjy/mp/newFunction/sellerFirstVisit"
;
public
static
final
String
UPLOAD_getTipsByPage
=
HOST
+
"/kjy/mp/tips/getTipsByPage"
;
// *************** 新手任务 ***************
public
static
final
String
NOVICE_LIST
=
HOST
+
"/kjy/mp/seller/novice/list"
;
...
...
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