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
763555ac
Commit
763555ac
authored
May 24, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加权限管理-换绑手机、绑定/解绑坐席、公众号查看预约订单列表的用例
parent
d778d16e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Phone.java
src/test/java/com/kjj/cases/otoseller/Phone.java
+1
-1
Work.java
src/test/java/com/kjj/cases/otoseller/Work.java
+1
-1
No files found.
src/test/java/com/kjj/cases/otoseller/Phone.java
View file @
763555ac
...
@@ -627,7 +627,7 @@ public class Phone implements Authorization {
...
@@ -627,7 +627,7 @@ public class Phone implements Authorization {
params
.
put
(
"pageSize"
,
20
);
params
.
put
(
"pageSize"
,
20
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_getReservationList
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_getReservationList
);
int
bookingStatus
=
response
.
jsonPath
().
getInt
(
"data[0].bookingStatus"
);
int
bookingStatus
=
response
.
jsonPath
().
getInt
(
"data[0].bookingStatus"
);
Assert
.
assertEquals
(
bookingStatus
,
1
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"
查看审批列表不为空
"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
bookingStatus
,
1
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"
订单状态未更新为已参观
"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"删除客户"
,
priority
=
79
)
@Test
(
description
=
"删除客户"
,
priority
=
79
)
...
...
src/test/java/com/kjj/cases/otoseller/Work.java
View file @
763555ac
...
@@ -796,7 +796,7 @@ public class Work implements Authorization {
...
@@ -796,7 +796,7 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"查看预约列表不为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"查看预约列表不为空"
,
response
.
body
().
asString
()));
int
bookingStatus
=
response
.
jsonPath
().
getInt
(
"data[0].bookingStatus"
);
int
bookingStatus
=
response
.
jsonPath
().
getInt
(
"data[0].bookingStatus"
);
Assert
.
assertEquals
(
bookingStatus
,
0
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"预约状态错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
bookingStatus
,
0
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"预约状态错误
:非待参观
"
,
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