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
73d6acc9
Commit
73d6acc9
authored
Jun 12, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加邀约优化的测试用例
parent
4e8b61d2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
CheckTask.java
src/test/java/com/oto/cases/otoseller/CheckTask.java
+2
-2
Invite.java
src/test/java/com/oto/cases/otoseller/Invite.java
+5
-5
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+4
-4
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+1
-1
No files found.
src/test/java/com/oto/cases/otoseller/CheckTask.java
View file @
73d6acc9
...
...
@@ -219,7 +219,7 @@ public class CheckTask implements Authorization {
public
void
自建计划查找销售名下客户
(){
otoTakerAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custName"
,
"自动化测试
用
户"
);
params
.
put
(
"custName"
,
"自动化测试
客
户"
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_obtainCustBySellerId
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_obtainCustBySellerId
,
"查看销售在在库客户为空"
,
response
.
body
().
asString
()));
...
...
@@ -371,7 +371,7 @@ public class CheckTask implements Authorization {
String
inviteName
=
response
.
jsonPath
().
getString
(
"data.inviteName"
);
String
expertName
=
response
.
jsonPath
().
getString
(
"data.expertName"
);
String
sellerName
=
response
.
jsonPath
().
getString
(
"data.sellerName"
);
Assert
.
assertEquals
(
introducer
,
"自动化测试
用
户"
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"转介绍客户的介绍人错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
introducer
,
"自动化测试
客
户"
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"转介绍客户的介绍人错误"
,
response
.
body
().
asString
()));
Assert
.
assertNull
(
inviteName
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"转介绍客户的当前邀约与介绍人不一致"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
expertName
,
"勿动-自动化测试专家"
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"转介绍客户的当前销售与介绍人不一致"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
sellerName
,
"勿动-自动化测试带看"
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"转介绍客户的当前专家与介绍人不一致"
,
response
.
body
().
asString
()));
...
...
src/test/java/com/oto/cases/otoseller/Invite.java
View file @
73d6acc9
...
...
@@ -113,14 +113,14 @@ public class Invite implements Authorization {
params
.
put
(
"custId"
,
cust_id
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_getAllSceneConfs
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
int
confUsableSize
=
response
.
jsonPath
().
getInt
(
"data[
5
].findAll{it.confUsable == 1}.size()"
);
int
confUsableSize
=
response
.
jsonPath
().
getInt
(
"data[
0
].findAll{it.confUsable == 1}.size()"
);
Assert
.
assertEquals
(
size
,
4
,
network
.
message
(
params
,
BasicConfig
.
WORK_getAllSceneConfs
,
"面访场景包含场景未根据产品组关联"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
confUsableSize
,
3
,
network
.
message
(
params
,
BasicConfig
.
WORK_getAllSceneConfs
,
"面访场景包含场景未根据产品组关联"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"修改客户面访承诺时间为今天"
,
priority
=
8
)
public
void
修改客户面访承诺时间为
1
天后
(){
updateInvite
(
1
,
now
,
cust_id
);
updateInvite
(
1
,
now
+
86400000
,
cust_id
);
getHasFirstInvite
(
1
,
true
);
getCallCustInfo
(
1
);
...
...
@@ -161,13 +161,13 @@ public class Invite implements Authorization {
getCalendarlist
(
today
+
86400000
*
2
,
0
,
"自动化测试客户"
,
"勿动-自动化测试邀约"
);
}
@Test
(
description
=
"修改客户已约到客户状态时间明天
后
变为已确认"
,
priority
=
13
)
public
void
修改客户已约到客户状态时间明天
后
变为已确认
(){
@Test
(
description
=
"修改客户已约到客户状态时间明天变为已确认"
,
priority
=
13
)
public
void
修改客户已约到客户状态时间明天变为已确认
(){
updateInvite
(
1
,
now
+
86400000
,
cust_id
);
getHasFirstInvite
(
1
,
true
);
getCallCustInfo
(
1
);
getCalendarlist
(
today
,
2
,
"自动化测试客户"
,
"勿动-自动化测试邀约"
);
getCalendarlist
(
today
+
86400000
,
2
,
"自动化测试客户"
,
"勿动-自动化测试邀约"
);
}
@Test
(
description
=
"查询客户的面访上传记录<1"
,
priority
=
14
)
...
...
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
73d6acc9
...
...
@@ -99,7 +99,7 @@ public class Phone implements Authorization {
params
.
put
(
"custId"
,
customer_id
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_listCustInterConf
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
2
,
network
.
message
(
params
,
BasicConfig
.
PHONE_listCustInterConf
,
"见面场景列表数量错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
size
,
5
,
network
.
message
(
params
,
BasicConfig
.
PHONE_listCustInterConf
,
"见面场景列表数量错误"
,
response
.
body
().
asString
()));
}
...
...
@@ -117,7 +117,7 @@ public class Phone implements Authorization {
params
.
put
(
"custId"
,
customer_id
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_listCustInterConf
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
3
,
network
.
message
(
params
,
BasicConfig
.
PHONE_listCustInterConf
,
"见面场景列表数量错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
size
,
6
,
network
.
message
(
params
,
BasicConfig
.
PHONE_listCustInterConf
,
"见面场景列表数量错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"创建社区参观的面访"
,
priority
=
8
)
...
...
@@ -613,14 +613,14 @@ public class Phone implements Authorization {
params
.
put
(
"pageSize"
,
"20"
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_interviewList
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.customerInterviewVos.size()"
);
Assert
.
assertEquals
(
size
,
2
,
network
.
message
(
params
,
BasicConfig
.
PHONE_interviewList
,
"专家面访列表为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
size
,
4
,
network
.
message
(
params
,
BasicConfig
.
PHONE_interviewList
,
"专家面访列表为空"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custName"
,
"自动化测试用户"
);
params
.
put
(
"pageSize"
,
"20"
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_customerList
);
int
interviewNum
=
response
.
jsonPath
().
getInt
(
"data.myCustomerVos[0].interviewNum"
);
Assert
.
assertEquals
(
interviewNum
,
2
,
network
.
message
(
params
,
BasicConfig
.
PHONE_customerList
,
"专家线下拜访次数不包含关联面访"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
interviewNum
,
4
,
network
.
message
(
params
,
BasicConfig
.
PHONE_customerList
,
"专家线下拜访次数不包含关联面访"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"上传面访后完成见面计划"
,
priority
=
58
)
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
73d6acc9
...
...
@@ -52,7 +52,7 @@ public class Work implements Authorization {
menuList
(
14
);
otoLeaderAuth
();
menuList
(
1
4
);
menuList
(
1
9
);
otoPMAuth
();
menuList
(
13
);
...
...
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