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
7afafbb8
Commit
7afafbb8
authored
May 09, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加OTO销售工作台移动端1.1的测试用例
parent
8072345b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
Phone.java
src/test/java/com/kjj/cases/otoseller/Phone.java
+27
-27
No files found.
src/test/java/com/kjj/cases/otoseller/Phone.java
View file @
7afafbb8
...
@@ -608,33 +608,33 @@ public class Phone implements Authorization {
...
@@ -608,33 +608,33 @@ public class Phone implements Authorization {
//
@Test(description = "删除客户",priority = 79)
@Test
(
description
=
"删除客户"
,
priority
=
79
)
//
public void 删除客户(){
public
void
删除客户
(){
//
HashMap<String,Object> params = new HashMap<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
//
params.put("custId", IdMakeUtil.decodingId(cust_id));
params
.
put
(
"custId"
,
IdMakeUtil
.
decodingId
(
cust_id
));
//
Response response = network.postResponse(params,BasicConfig.WORK_delCust);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_delCust
);
//
boolean data = response.jsonPath().getBoolean("data");
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
//
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delCust,"删除客户失败",response.body().asString()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delCust
,
"删除客户失败"
,
response
.
body
().
asString
()));
//
//
params.put("custId", IdMakeUtil.decodingId(introduceCustomer_id));
params
.
put
(
"custId"
,
IdMakeUtil
.
decodingId
(
introduceCustomer_id
));
//
response = network.postResponse(params,BasicConfig.WORK_delCust);
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_delCust
);
//
data = response.jsonPath().getBoolean("data");
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
//
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delCust,"删除客户失败",response.body().asString()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delCust
,
"删除客户失败"
,
response
.
body
().
asString
()));
//
//
params.put("custId", IdMakeUtil.decodingId(myselfCustomer_id));
params
.
put
(
"custId"
,
IdMakeUtil
.
decodingId
(
myselfCustomer_id
));
//
response = network.postResponse(params,BasicConfig.WORK_delCust);
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_delCust
);
//
data = response.jsonPath().getBoolean("data");
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
//
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delCust,"删除客户失败",response.body().asString()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delCust
,
"删除客户失败"
,
response
.
body
().
asString
()));
//
}
}
//
//
@Test(description = "删除客户填写的表单记录",priority = 80)
@Test
(
description
=
"删除客户填写的表单记录"
,
priority
=
80
)
//
public void 删除客户填写的表单记录(){
public
void
删除客户填写的表单记录
(){
//
HashMap<String,Object> params = new HashMap<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
//
params.put("phoneNum", "17830855590");
params
.
put
(
"phoneNum"
,
"17830855590"
);
//
Response response = network.postResponse(params,BasicConfig.WORK_delPubFormRecord);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_delPubFormRecord
);
//
boolean data = response.jsonPath().getBoolean("data");
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
//
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delPubFormRecord,"删除客户表单记录失败",response.body().asString()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delPubFormRecord
,
"删除客户表单记录失败"
,
response
.
body
().
asString
()));
//
}
}
@Test
(
description
=
"退出登录"
,
priority
=
81
)
@Test
(
description
=
"退出登录"
,
priority
=
81
)
public
void
退出登录
(){
public
void
退出登录
(){
...
...
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