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
dc8fae65
Commit
dc8fae65
authored
Jun 09, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加邀约优化的测试用例
parent
e4765a9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
Invite.java
src/test/java/com/oto/cases/otoseller/Invite.java
+7
-8
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+4
-4
No files found.
src/test/java/com/oto/cases/otoseller/Invite.java
View file @
dc8fae65
...
@@ -113,14 +113,14 @@ public class Invite implements Authorization {
...
@@ -113,14 +113,14 @@ public class Invite implements Authorization {
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"custId"
,
cust_id
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_getAllSceneConfs
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_getAllSceneConfs
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
int
confUsableSize
=
response
.
jsonPath
().
getInt
(
"data.findAll{it.confUsable == 1}.size()"
);
int
confUsableSize
=
response
.
jsonPath
().
getInt
(
"data
[5]
.findAll{it.confUsable == 1}.size()"
);
Assert
.
assertEquals
(
size
,
4
,
network
.
message
(
params
,
BasicConfig
.
WORK_getAllSceneConfs
,
"面访场景包含场景未根据产品组关联"
,
response
.
body
().
asString
()));
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
()));
Assert
.
assertEquals
(
confUsableSize
,
3
,
network
.
message
(
params
,
BasicConfig
.
WORK_getAllSceneConfs
,
"面访场景包含场景未根据产品组关联"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"修改客户面访承诺时间为
1天后
"
,
priority
=
8
)
@Test
(
description
=
"修改客户面访承诺时间为
今天
"
,
priority
=
8
)
public
void
修改客户面访承诺时间为
1
天后
(){
public
void
修改客户面访承诺时间为
1
天后
(){
updateInvite
(
1
,
now
+
86400000
,
cust_id
);
updateInvite
(
1
,
now
,
cust_id
);
getHasFirstInvite
(
1
,
true
);
getHasFirstInvite
(
1
,
true
);
getCallCustInfo
(
1
);
getCallCustInfo
(
1
);
...
@@ -149,7 +149,7 @@ public class Invite implements Authorization {
...
@@ -149,7 +149,7 @@ public class Invite implements Authorization {
getCallCustInfo
(
1
);
getCallCustInfo
(
1
);
getCalendarlist
(
today
+
86400000
,
0
,
"自动化测试用户"
,
"勿动-自动化测试邀约"
);
getCalendarlist
(
today
+
86400000
,
0
,
"自动化测试用户"
,
"勿动-自动化测试邀约"
);
getCalendarlist
(
today
+
86400000
*
2
,
1
,
"自动化测试用户"
,
"勿动-自动化测试邀约"
);
getCalendarlist
(
today
+
86400000
*
2
,
1
,
"自动化测试用户"
,
"勿动-自动化测试邀约"
);
headerDeatil
(
1
,
"inviteStatus"
,
"
5
"
);
headerDeatil
(
1
,
"inviteStatus"
,
"
1
"
);
}
}
@Test
(
description
=
"修改客户未约到客户删除邀约记录"
,
priority
=
12
)
@Test
(
description
=
"修改客户未约到客户删除邀约记录"
,
priority
=
12
)
...
@@ -161,9 +161,9 @@ public class Invite implements Authorization {
...
@@ -161,9 +161,9 @@ public class Invite implements Authorization {
getCalendarlist
(
today
+
86400000
*
2
,
0
,
"自动化测试用户"
,
"勿动-自动化测试邀约"
);
getCalendarlist
(
today
+
86400000
*
2
,
0
,
"自动化测试用户"
,
"勿动-自动化测试邀约"
);
}
}
@Test
(
description
=
"修改客户已约到客户状态时间
今
天后变为已确认"
,
priority
=
13
)
@Test
(
description
=
"修改客户已约到客户状态时间
明
天后变为已确认"
,
priority
=
13
)
public
void
修改客户已约到客户状态时间
今
天后变为已确认
(){
public
void
修改客户已约到客户状态时间
明
天后变为已确认
(){
updateInvite
(
1
,
now
+
36
00000
,
cust_id
);
updateInvite
(
1
,
now
+
864
00000
,
cust_id
);
getHasFirstInvite
(
1
,
true
);
getHasFirstInvite
(
1
,
true
);
getCallCustInfo
(
1
);
getCallCustInfo
(
1
);
...
@@ -328,7 +328,6 @@ public class Invite implements Authorization {
...
@@ -328,7 +328,6 @@ public class Invite implements Authorization {
@Test
(
description
=
"立即分配邀约客户"
,
priority
=
25
)
@Test
(
description
=
"立即分配邀约客户"
,
priority
=
25
)
public
void
立即分配邀约客户
(){
public
void
立即分配邀约客户
(){
updateInvite
(
0
,
now
+
3600000
,
cust_id
);
updateInvite
(
1
,
now
+
3600000
,
cust_id
);
updateInvite
(
1
,
now
+
3600000
,
cust_id
);
getCalendarlist
(
today
,
2
,
"自动化测试用户"
,
"勿动-自动化测试邀约"
);
getCalendarlist
(
today
,
2
,
"自动化测试用户"
,
"勿动-自动化测试邀约"
);
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
dc8fae65
...
@@ -46,13 +46,13 @@ public class Work implements Authorization {
...
@@ -46,13 +46,13 @@ public class Work implements Authorization {
menuList
(
3
);
menuList
(
3
);
otoExpertAuth
();
otoExpertAuth
();
menuList
(
3
);
menuList
(
4
);
otoAssistAuth
();
otoAssistAuth
();
menuList
(
1
3
);
menuList
(
1
4
);
otoLeaderAuth
();
otoLeaderAuth
();
menuList
(
1
8
);
menuList
(
1
4
);
otoPMAuth
();
otoPMAuth
();
menuList
(
13
);
menuList
(
13
);
...
@@ -64,7 +64,7 @@ public class Work implements Authorization {
...
@@ -64,7 +64,7 @@ public class Work implements Authorization {
menuList
(
3
);
menuList
(
3
);
otoManagerAuth
();
otoManagerAuth
();
menuList
(
2
3
);
menuList
(
2
4
);
}
}
@Test
(
description
=
"工作台_标签列表"
,
priority
=
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