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
53bfac46
Commit
53bfac46
authored
Apr 25, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加服务专家的测试用例
parent
105a8a32
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
Activity.java
src/test/java/com/oto/cases/otoseller/Activity.java
+3
-3
Invite.java
src/test/java/com/oto/cases/otoseller/Invite.java
+17
-2
No files found.
src/test/java/com/oto/cases/otoseller/Activity.java
View file @
53bfac46
...
...
@@ -318,7 +318,7 @@ public class Activity implements Authorization {
public
void
添加非签到活动和其他见面客户并提报
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
ArrayList
list
=
new
ArrayList
();
list
.
add
(
new
SignCustomer
(
IdMakeUtil
.
encodingId
((
long
)
cust_id
+
3
),
"
a
m"
,
226
,
0
));
list
.
add
(
new
SignCustomer
(
IdMakeUtil
.
encodingId
((
long
)
cust_id
+
3
),
"
p
m"
,
226
,
0
));
list
.
add
(
new
SignCustomer
(
IdMakeUtil
.
encodingId
((
long
)
cust_id
+
4
),
"am"
,
17
,
2
));
params
.
put
(
"date"
,
today
);
params
.
put
(
"params"
,
list
);
...
...
@@ -480,7 +480,7 @@ public class Activity implements Authorization {
WXCustomerTku3
();
Response
response
=
network
.
postResponse
(
BasicConfig
.
WX_serviceExpert_detail
);
int
showType
=
response
.
jsonPath
().
getInt
(
"data.showType"
);
String
expertConfigUrl
=
response
.
jsonPath
().
getString
(
"data
.expertConfigUrl"
);
Object
expertConfigUrl
=
response
.
jsonPath
().
getString
(
"data.configVo
.expertConfigUrl"
);
Assert
.
assertEquals
(
showType
,
3
,
network
.
message
(
BasicConfig
.
WX_serviceExpert_detail
,
"展示页面非【专家页】"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
expertConfigUrl
,
network
.
message
(
BasicConfig
.
WX_serviceExpert_detail
,
"专家配置页为空"
,
response
.
body
().
asString
()));
}
...
...
@@ -525,7 +525,7 @@ public class Activity implements Authorization {
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WX_sign_list
);
int
notSignNum
=
response
.
jsonPath
().
getInt
(
"data.notSignNum"
);
int
isSign
=
response
.
jsonPath
().
getInt
(
"data.vos.find{it.
custN
ame.equals(\"自动化测试用户2\")}.isSign"
);
int
isSign
=
response
.
jsonPath
().
getInt
(
"data.vos.find{it.
n
ame.equals(\"自动化测试用户2\")}.isSign"
);
Assert
.
assertEquals
(
notSignNum
,
0
,
network
.
message
(
params
,
BasicConfig
.
WX_sign_list
,
"未签到人数错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
isSign
,
1
,
network
.
message
(
params
,
BasicConfig
.
WX_sign_list
,
"已分配客户的签到非【是】"
,
response
.
body
().
asString
()));
}
...
...
src/test/java/com/oto/cases/otoseller/Invite.java
View file @
53bfac46
...
...
@@ -128,7 +128,6 @@ public class Invite implements Authorization {
@Test
(
description
=
"查看约面日历为已确认"
,
priority
=
9
)
public
void
查看约面日历为已确认
(){
getCalendarlist
(
today
+
86400000
,
2
,
"自动化激活用户"
,
"勿动-自动化测试邀约"
);
Assert
.
assertEquals
(
recordItem
.
deptId
,
47
,
network
.
message
(
BasicConfig
.
WORK_getAllSceneConfs
,
"未回显部门id"
,
""
));
}
...
...
@@ -360,7 +359,23 @@ public class Invite implements Authorization {
takerCoefficient
=
leadertotalCoefficient
;
}
@Test
(
description
=
"邀约记录未到场盘点详情不可重新分配专家"
,
priority
=
26
)
@Test
(
description
=
"PM分配团队"
,
priority
=
26
)
public
void
PM
分配团队
(){
otoPMAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"recordId"
,
recordItem
.
recordId
);
params
.
put
(
"deptId"
,
47
);
params
.
put
(
"pageSource"
,
1
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_MNG_team
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_MNG_team
,
"客户分配团队失败"
,
response
.
body
().
asString
()));
getCalendarlist
(
today
,
4
,
"自动化激活用户"
,
"勿动-自动化测试邀约"
);
Assert
.
assertEquals
(
recordItem
.
deptId
,
47
,
network
.
message
(
BasicConfig
.
WORK_getAllSceneConfs
,
"未回显部门id"
,
""
));
}
@Test
(
description
=
"邀约记录未到场盘点详情不可重新分配专家"
,
priority
=
30
)
public
void
邀约记录未到场盘点详情不可重新分配专家
(){
assignSeller
(
cust_id
,
479
,
false
,
3
,
"check"
);
}
...
...
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