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
8d81c892
Commit
8d81c892
authored
Dec 08, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加场景类型
parent
807fed58
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+13
-2
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+11
-0
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+1
-0
No files found.
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
8d81c892
...
@@ -687,6 +687,17 @@ public class Phone implements Authorization {
...
@@ -687,6 +687,17 @@ public class Phone implements Authorization {
getSellerPlan
(
1
,
1
,
1
,
1
,
2
,
0
);
getSellerPlan
(
1
,
1
,
1
,
1
,
2
,
0
);
}
}
@Test
(
description
=
"查看跟进人标签"
,
priority
=
59
)
public
void
查看跟进人标签
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
IdMakeUtil
.
decodingId
(
cust_id
));
params
.
put
(
"type"
,
1
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
int
sceneConfDesc
=
response
.
jsonPath
().
getInt
(
"data.sceneConfDesc.size()"
);
Assert
.
assertEquals
(
sceneConfDesc
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的场景标签数量错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"删除客户"
,
priority
=
79
)
@Test
(
description
=
"删除客户"
,
priority
=
79
)
public
void
删除客户
(){
public
void
删除客户
(){
long
id
=
IdMakeUtil
.
decodingId
(
cust_id
);
long
id
=
IdMakeUtil
.
decodingId
(
cust_id
);
...
@@ -697,10 +708,10 @@ public class Phone implements Authorization {
...
@@ -697,10 +708,10 @@ public class Phone implements Authorization {
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
()));
}
}
//
// for(int i = 4559;i<4984;i++){
// for(int i = 4559;i<4984;i++){
// HashMap<String,Object> params = new HashMap<>();
// HashMap<String,Object> params = new HashMap<>();
// params.put("custId",
i
);
// params.put("custId",
7665
);
// Response response = network.postResponse(params,BasicConfig.WORK_delCust);
// Response response = network.postResponse(params,BasicConfig.WORK_delCust);
//
//
// }
// }
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
8d81c892
...
@@ -489,6 +489,7 @@ public class Work implements Authorization {
...
@@ -489,6 +489,7 @@ public class Work implements Authorization {
params
.
put
(
"confUsable"
,
0
);
params
.
put
(
"confUsable"
,
0
);
params
.
put
(
"companyIds"
,
new
int
[]{
5
});
params
.
put
(
"companyIds"
,
new
int
[]{
5
});
params
.
put
(
"sceneName"
,
"勿动-自动化场景"
);
params
.
put
(
"sceneName"
,
"勿动-自动化场景"
);
params
.
put
(
"sceneType"
,
2
);
params
.
put
(
"sceneDesc"
,
"勿动,这是自动化测试专用的面访场景"
);
params
.
put
(
"sceneDesc"
,
"勿动,这是自动化测试专用的面访场景"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_custConfSave
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_custConfSave
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
...
@@ -518,6 +519,7 @@ public class Work implements Authorization {
...
@@ -518,6 +519,7 @@ public class Work implements Authorization {
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
sceneId
);
params
.
put
(
"id"
,
sceneId
);
params
.
put
(
"confUsable"
,
1
);
params
.
put
(
"confUsable"
,
1
);
params
.
put
(
"sceneType"
,
1
);
params
.
put
(
"companyIds"
,
companyIds
);
params
.
put
(
"companyIds"
,
companyIds
);
params
.
put
(
"sceneName"
,
"勿动-自动化面访场景"
);
params
.
put
(
"sceneName"
,
"勿动-自动化面访场景"
);
params
.
put
(
"sceneDesc"
,
"勿动,这是自动化测试专用的面访场景"
);
params
.
put
(
"sceneDesc"
,
"勿动,这是自动化测试专用的面访场景"
);
...
@@ -1786,6 +1788,15 @@ public class Work implements Authorization {
...
@@ -1786,6 +1788,15 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
size
,
4
,
network
.
message
(
params
,
BasicConfig
.
WORK_getPlanList
,
"总计划数量错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
size
,
4
,
network
.
message
(
params
,
BasicConfig
.
WORK_getPlanList
,
"总计划数量错误"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"获取场景类型"
,
priority
=
124
)
public
void
获取场景类型
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"sceneType"
,
"1,2"
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_getSceneTypes
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertTrue
(
size
>
0
,
network
.
message
(
params
,
BasicConfig
.
PHONE_getSceneTypes
,
"场景结果为空"
,
response
.
body
().
asString
()));
}
//修改客户的约面情况
//修改客户的约面情况
public
void
updateInvite
(
int
interviewFlag
,
long
time
){
public
void
updateInvite
(
int
interviewFlag
,
long
time
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
8d81c892
...
@@ -270,6 +270,7 @@ public class BasicConfig {
...
@@ -270,6 +270,7 @@ public class BasicConfig {
public
static
final
String
PHONE_paper_getCustomers
=
PHONE_HOST
+
"/kjy/oto/seller/daily/paper/getCustomers"
;
public
static
final
String
PHONE_paper_getCustomers
=
PHONE_HOST
+
"/kjy/oto/seller/daily/paper/getCustomers"
;
public
static
final
String
PHONE_paper_updateCustomer
=
PHONE_HOST
+
"/kjy/oto/seller/daily/paper/updateCustomer"
;
public
static
final
String
PHONE_paper_updateCustomer
=
PHONE_HOST
+
"/kjy/oto/seller/daily/paper/updateCustomer"
;
public
static
final
String
PHONE_expertList
=
PHONE_HOST
+
"/kjy/oto/interview/expertList"
;
public
static
final
String
PHONE_expertList
=
PHONE_HOST
+
"/kjy/oto/interview/expertList"
;
public
static
final
String
PHONE_getSceneTypes
=
PHONE_HOST
+
"/kjy/oto/manager/custconf/getSceneTypes"
;
//******************专用测试接口****************************8
//******************专用测试接口****************************8
public
static
final
String
WORK_verifyCode
=
WORK_HOST
+
"/kjy/oto/auto/test/verifyCode"
;
public
static
final
String
WORK_verifyCode
=
WORK_HOST
+
"/kjy/oto/auto/test/verifyCode"
;
...
...
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