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
d6d17bac
Commit
d6d17bac
authored
Aug 25, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20220824-gxh' into 'master'
修改微信公众号的预约列表 See merge request
!24
parents
a28b35a5
8135ea80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+5
-5
No files found.
src/test/java/com/oto/cases/otoseller/Work.java
View file @
d6d17bac
...
...
@@ -1085,7 +1085,7 @@ public class Work implements Authorization {
params
.
put
(
"pageSize"
,
20
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_getReservationList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"查看预约列表不为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
size
,
2
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"查看预约列表不为空"
,
response
.
body
().
asString
()));
int
bookingStatus
=
response
.
jsonPath
().
getInt
(
"data[0].bookingStatus"
);
Assert
.
assertEquals
(
bookingStatus
,
0
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"预约状态错误:非待参观"
,
response
.
body
().
asString
()));
...
...
@@ -1117,9 +1117,9 @@ public class Work implements Authorization {
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
int
confUsable
=
response
.
jsonPath
().
getInt
(
"data.list[0].confUsable"
);
String
sceneName
=
response
.
jsonPath
().
getString
(
"data.list[0].sceneName"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custConfList
,
"查看
预约列表
不为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
confUsable
,
0
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custConfList
,
"查看
预约列表不为空
"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
sceneName
,
"勿动-自动化场景"
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custConfList
,
"查看
预约列表不为空
"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custConfList
,
"查看
列表场景
不为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
confUsable
,
0
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custConfList
,
"查看
见面场景非0
"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
sceneName
,
"勿动-自动化场景"
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custConfList
,
"查看
见面名称错误
"
,
response
.
body
().
asString
()));
sceneId
=
response
.
jsonPath
().
getLong
(
"data.list[0].id"
);
}
...
...
@@ -1209,7 +1209,7 @@ public class Work implements Authorization {
public
void
查询所有产品列表
(){
Response
response
=
network
.
getResponse
(
BasicConfig
.
MANAGER_product_listAll
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.list.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
BasicConfig
.
MANAGER_product_listAll
,
"查看
预约
列表不为空"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
BasicConfig
.
MANAGER_product_listAll
,
"查看
产品
列表不为空"
,
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