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
18cd41b0
Commit
18cd41b0
authored
Apr 08, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gifeature/2021110402-gj' into 'master'
Gifeature/2021110402 gj See merge request test-group/kejiji!242
parents
cae7e4cf
ea9457ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
Work.java
src/test/java/com/kjj/cases/otoseller/Work.java
+31
-0
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+2
-0
No files found.
src/test/java/com/kjj/cases/otoseller/Work.java
View file @
18cd41b0
...
...
@@ -838,6 +838,37 @@ public class Work implements Authorization {
Assert
.
assertTrue
(
success
,
network
.
message
(
BasicConfig
.
MANAGER_oto_updatePermission
,
"开启总监的新客户认领权限和回收客户认领权限失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"新建日程"
,
priority
=
63
)
public
void
新建日程
(){
//获取日程提醒数量
Response
listRes
=
network
.
getResponse
(
BasicConfig
.
WORK_notifyList
);
int
size
=
listRes
.
jsonPath
().
getInt
(
"data.size()"
);
//新建日程
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"notifyTime"
,
System
.
currentTimeMillis
()+
3600000
);
params
.
put
(
"type"
,
"phone"
);
Response
scheduleRes
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_saveOrModifySchedule
);
boolean
success
=
scheduleRes
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
success
,
network
.
message
(
BasicConfig
.
WORK_saveOrModifySchedule
,
"新建日程失败"
,
scheduleRes
.
body
().
asString
()));
//日程通知数量增加
Response
listRes2
=
network
.
getResponse
(
BasicConfig
.
WORK_notifyList
);
int
size2
=
listRes2
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertTrue
(
size
<
size2
,
network
.
message
(
BasicConfig
.
WORK_notifyList
,
"日程通知未展示新建日程"
,
listRes
.
body
().
asString
()));
}
@Test
(
description
=
"取消日程"
,
priority
=
64
)
public
void
取消日程
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_cancelSchedule
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
BasicConfig
.
WORK_cancelSchedule
,
"取消日程失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"删除客户"
,
priority
=
79
)
public
void
删除客户
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
18cd41b0
...
...
@@ -1362,6 +1362,8 @@ public class BasicConfig {
public
static
final
String
WORK_claim
=
WORK_HOST
+
"/kjy/oto/manager/customer/pool/claim"
;
public
static
final
String
WORK_attendanceList
=
WORK_HOST
+
"/kjy/oto/manager/attendance/list"
;
public
static
final
String
WORK_switchWorkStatus
=
WORK_HOST
+
"/kjy/oto/manager/attendance/switchWorkStatus"
;
public
static
final
String
WORK_saveOrModifySchedule
=
WORK_HOST
+
"/kjy/oto/manager/sellerNotify/saveOrModifySchedule"
;
public
static
final
String
WORK_cancelSchedule
=
WORK_HOST
+
"/kjy/oto/manager/sellerNotify/cancelSchedule"
;
public
static
final
String
PHONE_customerList
=
MOBILE_HOST
+
"kjy/oto/customer/list"
;
public
static
final
String
PHONE_customerSave
=
MOBILE_HOST
+
"kjy/oto/customer/introduce/save"
;
...
...
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