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
77df146c
Commit
77df146c
authored
Jun 15, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加邀约优化的测试用例
parent
9728b086
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
25 deletions
+27
-25
Activity.java
src/test/java/com/oto/cases/otoseller/Activity.java
+13
-13
CheckTask.java
src/test/java/com/oto/cases/otoseller/CheckTask.java
+5
-3
Invite.java
src/test/java/com/oto/cases/otoseller/Invite.java
+3
-3
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+1
-1
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+5
-5
No files found.
src/test/java/com/oto/cases/otoseller/Activity.java
View file @
77df146c
...
...
@@ -519,7 +519,7 @@ public class Activity implements Authorization {
public
void
查询团队更新经营客户情况
(){
sleep
(
10000
);
otoLeaderAuth
();
checChart
(
1
,
0
,
0
);
checChart
(
1
,
2
,
0
);
checChart
(
2
,
3
,
0
);
checChart
(
3
,
0
,
0
);
checChart
(
4
,
0
,
0
);
...
...
@@ -531,9 +531,9 @@ public class Activity implements Authorization {
public
void
上传
kyc
更新经营客户情况
(){
saveKyc
(
cust_id
+
2
,
true
);
saveKyc
(
cust_id
+
3
,
true
);
sleep
(
1
0
000
);
checChart
(
1
,
4
,
0
);
checChart
(
2
,
0
,
0
);
sleep
(
1
5
000
);
checChart
(
1
,
2
,
0
);
checChart
(
2
,
2
,
0
);
checChart
(
3
,
1
,
0
);
checChart
(
4
,
0
,
0
);
checChart
(
5
,
0
,
0
);
...
...
@@ -545,9 +545,9 @@ public class Activity implements Authorization {
otoPlanAuth
();
savePlanFile
(
3
,
cust_id
+
2
);
savePlanFile
(
3
,
cust_id
+
3
);
sleep
(
1
0
000
);
checChart
(
1
,
4
,
1
);
checChart
(
2
,
0
,
0
);
sleep
(
1
5
000
);
checChart
(
1
,
2
,
1
);
checChart
(
2
,
2
,
0
);
checChart
(
3
,
0
,
0
);
checChart
(
4
,
1
,
0
);
checChart
(
5
,
0
,
0
);
...
...
@@ -558,9 +558,9 @@ public class Activity implements Authorization {
public
void
上传解决方案更新经营客户情况
(){
savePlanFile
(
3
,
cust_id
+
2
);
savePlanFile
(
3
,
cust_id
+
3
);
sleep
(
1
0
000
);
checChart
(
1
,
4
,
1
);
checChart
(
2
,
0
,
0
);
sleep
(
1
5
000
);
checChart
(
1
,
2
,
1
);
checChart
(
2
,
2
,
0
);
checChart
(
3
,
0
,
0
);
checChart
(
4
,
0
,
0
);
checChart
(
5
,
1
,
0
);
...
...
@@ -572,9 +572,9 @@ public class Activity implements Authorization {
otoLeaderAuth
();
promotionUpdate
(
cust_id
+
2
,
2
);
promotionUpdate
(
cust_id
+
3
,
2
);
sleep
(
1
0
000
);
checChart
(
1
,
4
,
1
);
checChart
(
2
,
0
,
0
);
sleep
(
1
5
000
);
checChart
(
1
,
2
,
1
);
checChart
(
2
,
2
,
0
);
checChart
(
3
,
0
,
0
);
checChart
(
4
,
0
,
0
);
checChart
(
5
,
0
,
0
);
...
...
src/test/java/com/oto/cases/otoseller/CheckTask.java
View file @
77df146c
...
...
@@ -109,7 +109,8 @@ public class CheckTask implements Authorization {
@Test
(
description
=
"查询团队未盘点的未见面客户"
,
priority
=
7
)
public
void
查询团队未盘点的未见面客户
(){
checChart
(
1
,
5
,
0
);
sleep
(
10000
);
checChart
(
1
,
3
,
0
);
}
@Test
(
description
=
"特定销售可见团队"
,
priority
=
9
)
...
...
@@ -720,8 +721,9 @@ public class CheckTask implements Authorization {
@Test
(
description
=
"查询团队的经营客户情况"
,
priority
=
70
)
public
void
查询团队的经营客户情况
(){
checChart
(
1
,
6
,
1
);
checChart
(
2
,
0
,
0
);
sleep
(
10000
);
checChart
(
1
,
3
,
1
);
checChart
(
2
,
2
,
0
);
checChart
(
3
,
0
,
0
);
checChart
(
4
,
0
,
0
);
checChart
(
5
,
0
,
0
);
...
...
src/test/java/com/oto/cases/otoseller/Invite.java
View file @
77df146c
...
...
@@ -115,7 +115,7 @@ public class Invite implements Authorization {
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
int
confUsableSize
=
response
.
jsonPath
().
getInt
(
"data[0].vos.findAll{it.confUsable == 1}.size()"
);
Assert
.
assertEquals
(
size
,
4
,
network
.
message
(
params
,
BasicConfig
.
WORK_getAllSceneConfs
,
"面访场景包含场景未根据产品组关联"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
confUsableSize
,
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
)
...
...
@@ -287,7 +287,7 @@ public class Invite implements Authorization {
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_calendar_preAssign
,
"预分配失败"
,
response
.
body
().
asString
()));
//验证约面日历状态/专家/带看人变更
getCalendarlist
(
today
,
4
,
"自动化测试客户"
,
"勿动-自动化测试邀约"
);
getCalendarlist
(
today
+
86400000
,
4
,
"自动化测试客户"
,
"勿动-自动化测试邀约"
);
Assert
.
assertEquals
(
recordItem
.
expertName
,
"勿动-自动化测试专家"
,
network
.
message
(
params
,
BasicConfig
.
WORK_calendar_list
,
"专家名称错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
recordItem
.
takeLookName
,
"勿动-自动化测试带看"
,
network
.
message
(
params
,
BasicConfig
.
WORK_calendar_list
,
"带看人名称错误"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
recordItem
.
hasAssignFlag
,
network
.
message
(
params
,
BasicConfig
.
WORK_calendar_list
,
"是否分配状态非【已分配】"
,
response
.
body
().
asString
()));
...
...
@@ -314,7 +314,7 @@ public class Invite implements Authorization {
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_calendar_assignRollback
,
"退回邀约组失败"
,
response
.
body
().
asString
()));
//验证约面日历状态/专家/带看人清空
getCalendarlist
(
today
,
3
,
"自动化测试客户"
,
"勿动-自动化测试邀约"
);
getCalendarlist
(
today
+
86400000
,
3
,
"自动化测试客户"
,
"勿动-自动化测试邀约"
);
Assert
.
assertNull
(
recordItem
.
expertName
,
network
.
message
(
params
,
BasicConfig
.
WORK_calendar_list
,
"专家名称不为空"
,
response
.
body
().
asString
()));
Assert
.
assertNull
(
recordItem
.
takeLookName
,
network
.
message
(
params
,
BasicConfig
.
WORK_calendar_list
,
"带看人名称不为空"
,
response
.
body
().
asString
()));
Assert
.
assertFalse
(
recordItem
.
hasAssignFlag
,
network
.
message
(
params
,
BasicConfig
.
WORK_calendar_list
,
"是否分配状态非【待分配未确认】"
,
response
.
body
().
asString
()));
...
...
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
77df146c
...
...
@@ -613,7 +613,7 @@ 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
,
4
,
network
.
message
(
params
,
BasicConfig
.
PHONE_interviewList
,
"专家面访列表为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
size
,
2
,
network
.
message
(
params
,
BasicConfig
.
PHONE_interviewList
,
"专家面访列表为空"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custName"
,
"自动化测试客户"
);
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
77df146c
...
...
@@ -46,25 +46,25 @@ public class Work implements Authorization {
menuList
(
3
);
otoExpertAuth
();
menuList
(
4
);
menuList
(
5
);
otoAssistAuth
();
menuList
(
1
4
);
menuList
(
1
6
);
otoLeaderAuth
();
menuList
(
19
);
menuList
(
20
);
otoPMAuth
();
menuList
(
13
);
otoAreaAuth
();
menuList
(
1
2
);
menuList
(
1
3
);
otoPlanAuth
();
menuList
(
3
);
otoManagerAuth
();
menuList
(
2
4
);
menuList
(
2
5
);
}
@Test
(
description
=
"工作台_标签列表"
,
priority
=
5
)
...
...
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