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
bafdbd07
Commit
bafdbd07
authored
Aug 31, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加多场景固定跑master分支
parent
8135ea80
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
2 deletions
+40
-2
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+16
-0
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+23
-1
NetworkUtils.java
src/test/java/com/oto/utils/NetworkUtils.java
+1
-1
No files found.
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
bafdbd07
...
...
@@ -761,6 +761,15 @@ public class Phone implements Authorization {
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delCust
,
"删除客户失败"
,
response
.
body
().
asString
()));
// for(int i = 5902;i<5966;i++){
// HashMap<String,Object> params = new HashMap<>();
// params.put("custId", i);
// Response response = network.postResponse(params,BasicConfig.WORK_delCust);
// boolean data = response.jsonPath().getBoolean("data");
// Assert.assertTrue(data,network.message(params,BasicConfig.WORK_delCust,"删除客户失败",response.body().asString()));
//
// }
}
@Test
(
description
=
"删除客户填写的表单记录"
,
priority
=
80
)
...
...
@@ -770,6 +779,13 @@ public class Phone implements Authorization {
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_delPubFormRecord
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delPubFormRecord
,
"删除客户表单记录失败"
,
response
.
body
().
asString
()));
// for(int i = 0;i<10;i++){
// HashMap<String,Object> params = new HashMap<>();
// params.put("phoneNum", "1301121000"+i);
// Response response = network.postResponse(params,BasicConfig.WORK_delPubFormRecord);
//
// }
}
@Test
(
description
=
"退出登录"
,
priority
=
81
)
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
bafdbd07
...
...
@@ -103,6 +103,20 @@ public class Work implements Authorization {
response
=
network
.
postResponse
(
params
,
BasicConfig
.
FORM_submitQuestion
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
FORM_submitQuestion
,
"客户填写表单失败"
,
response
.
body
().
asString
()));
// for(int i = 0;i<10;i++){
// HashMap<String,Object> params = new HashMap<>();
// params.put("formId", "Kj20ODA3");
// params.put("phoneNum", "1301121005"+i);
// params.put("urlLink", "https://kjj-static.duibatest.com.cn/cpic-home/202111261430?formId=Kj20ODA3&channel=bd&agent=x");
// params.put("username", "用户5"+i);
// params.put("uuid", "622d83e4-ca21-4ccd-94cb-182c0f2a6b60");
// Response response = network.postResponse(params,BasicConfig.FORM_submit);
// String recordId = response.jsonPath().getString("data.recordId");
// Assert.assertNotNull(recordId,network.message(params,BasicConfig.FORM_submit,"客户创建失败",response.body().asString()));
//
// }
}
@Test
(
description
=
"公域引流_查找客户"
,
priority
=
5
)
...
...
@@ -136,6 +150,14 @@ public class Work implements Authorization {
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_assignSeller
,
"销售相同产品组分配客户失败"
,
response
.
body
().
asString
()));
// for(int i = 6028;i<6035;i++){
// HashMap<String,Object> params = new HashMap<>();
// params.put("customerId",i);
// params.put("sellerId", 2);
// Response response = network.postResponse(params,BasicConfig.MANAGER_oto_assignSeller);
// boolean success = response.jsonPath().getBoolean("success");
//
// }
}
@Test
(
description
=
"工作台_销售信息"
,
priority
=
7
)
...
...
@@ -808,7 +830,7 @@ public class Work implements Authorization {
BigDecimal
bg
=
new
BigDecimal
(
coefficient
.
get
(
"totalCoefficient"
)
+
coefficient
.
get
(
"claimCustCoefficient"
));
Double
sum
=
bg
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
Double
totalCoefficient
=
response
.
jsonPath
().
getDouble
(
"data.totalCoefficient"
);
Assert
.
assertEquals
(
totalCoefficient
,
sum
,
network
.
message
(
BasicConfig
.
WORK_coefficient_detail
,
"
放弃客户销售总系数变化
"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
totalCoefficient
,
sum
,
network
.
message
(
BasicConfig
.
WORK_coefficient_detail
,
"
认领回收池客户后销售总系数错误
"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"认领回收池客户总数更新"
,
priority
=
69
)
...
...
src/test/java/com/oto/utils/NetworkUtils.java
View file @
bafdbd07
...
...
@@ -27,7 +27,7 @@ public class NetworkUtils {
//cookies中的tku
agentCookies
.
put
(
"tku"
,
AGENT_TKU
);
//多场景测试标志
// agentCookies.put("_duibaServiceGroupKey","miria-3132
");
agentCookies
.
put
(
"_duibaServiceGroupKey"
,
"miria-3321
"
);
//json类型的headers
agentHeaders
.
put
(
"Content-Type"
,
"application/json"
);
//二进制文件的headers
...
...
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