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
b223e9a3
Commit
b223e9a3
authored
Jun 07, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加客户告知书管理的自动化测试接口
parent
24693c9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
Manager.java
src/test/java/com/oto/cases/otoseller/Manager.java
+0
-2
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+1
-1
No files found.
src/test/java/com/oto/cases/otoseller/Manager.java
View file @
b223e9a3
...
@@ -428,11 +428,9 @@ public class Manager {
...
@@ -428,11 +428,9 @@ public class Manager {
params
.
put
(
"encryptId"
,
encryptId
);
params
.
put
(
"encryptId"
,
encryptId
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_notification_getDetail
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_notification_getDetail
);
String
supplierName
=
response
.
jsonPath
().
getString
(
"data.supplierName"
);
String
supplierName
=
response
.
jsonPath
().
getString
(
"data.supplierName"
);
String
insureOrder
=
response
.
jsonPath
().
getString
(
"data.insureOrder"
);
String
custName
=
response
.
jsonPath
().
getString
(
"data.custName"
);
String
custName
=
response
.
jsonPath
().
getString
(
"data.custName"
);
String
sellerName
=
response
.
jsonPath
().
getString
(
"data.sellerName"
);
String
sellerName
=
response
.
jsonPath
().
getString
(
"data.sellerName"
);
Assert
.
assertNotNull
(
supplierName
,
network
.
message
(
BasicConfig
.
PHONE_notification_getDetail
,
"告知书的供应商为空"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
supplierName
,
network
.
message
(
BasicConfig
.
PHONE_notification_getDetail
,
"告知书的供应商为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
insureOrder
,
insureOrderstr
,
network
.
message
(
BasicConfig
.
PHONE_notification_getDetail
,
"告知书的投保单号错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custName
,
"自动化告知书客户"
,
network
.
message
(
BasicConfig
.
PHONE_notification_getDetail
,
"告知书的客户名字错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custName
,
"自动化告知书客户"
,
network
.
message
(
BasicConfig
.
PHONE_notification_getDetail
,
"告知书的客户名字错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
sellerName
,
"自动化告知书销售"
,
network
.
message
(
BasicConfig
.
PHONE_notification_getDetail
,
"告知书的销售名字错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
sellerName
,
"自动化告知书销售"
,
network
.
message
(
BasicConfig
.
PHONE_notification_getDetail
,
"告知书的销售名字错误"
,
response
.
body
().
asString
()));
}
}
...
...
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
b223e9a3
...
@@ -539,7 +539,7 @@ public class Phone implements Authorization {
...
@@ -539,7 +539,7 @@ public class Phone implements Authorization {
public
void
产品下架后公司产品列表不显示
()
{
public
void
产品下架后公司产品列表不显示
()
{
otoSellerTku
();
otoSellerTku
();
Response
response
=
network
.
pos
tResponse
(
BasicConfig
.
PHONE_listBysellComp
);
Response
response
=
network
.
ge
tResponse
(
BasicConfig
.
PHONE_listBysellComp
);
int
size
=
response
.
jsonPath
().
getJsonObject
(
"data.size()"
);
int
size
=
response
.
jsonPath
().
getJsonObject
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
BasicConfig
.
PHONE_listBysellComp
,
"产品列表未包含已上架产品"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
BasicConfig
.
PHONE_listBysellComp
,
"产品列表未包含已上架产品"
,
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