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
0112f8ff
Commit
0112f8ff
authored
Dec 20, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加促单状态接口
parent
4302e085
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+33
-0
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+1
-0
No files found.
src/test/java/com/oto/cases/otoseller/Work.java
View file @
0112f8ff
...
@@ -1253,6 +1253,7 @@ public class Work implements Authorization {
...
@@ -1253,6 +1253,7 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
custStar
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的专家评价未更新"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custStar
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的专家评价未更新"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"编辑客户专家评价"
,
priority
=
92
)
@Test
(
description
=
"编辑客户专家评价"
,
priority
=
92
)
public
void
编辑客户专家评价
(){
public
void
编辑客户专家评价
(){
assignSeller
(
custId
,
EXPERT_ID
,
true
,
3
);
assignSeller
(
custId
,
EXPERT_ID
,
true
,
3
);
...
@@ -1287,6 +1288,37 @@ public class Work implements Authorization {
...
@@ -1287,6 +1288,37 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
bookingStatus
,
0
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"预约状态错误:非待参观"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
bookingStatus
,
0
,
network
.
message
(
BasicConfig
.
PHONE_getReservationList
,
"预约状态错误:非待参观"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"标记和取消促单"
,
priority
=
94
)
public
void
标记和取消促单
(){
otoLeaderAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"promotionType"
,
1
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_getFollowInfo
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_getFollowInfo
,
"标记促单成功"
,
response
.
body
().
asString
()));
//查看客户的促单状态
params
.
put
(
"type"
,
2
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
int
promotionType
=
response
.
jsonPath
().
getInt
(
"data.promotionType"
);
Assert
.
assertEquals
(
promotionType
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的促单状态错误"
,
response
.
body
().
asString
()));
params
.
put
(
"promotionType"
,
0
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_getFollowInfo
);
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_getFollowInfo
,
"取消促单成功"
,
response
.
body
().
asString
()));
//查看客户的促单状态
params
.
put
(
"type"
,
2
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_header
);
promotionType
=
response
.
jsonPath
().
getInt
(
"data.promotionType"
);
Assert
.
assertEquals
(
promotionType
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"客户的促单状态错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"关闭见面场景状态"
,
priority
=
97
)
@Test
(
description
=
"关闭见面场景状态"
,
priority
=
97
)
public
void
关闭见面场景状态
(){
public
void
关闭见面场景状态
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
@@ -1705,6 +1737,7 @@ public class Work implements Authorization {
...
@@ -1705,6 +1737,7 @@ public class Work implements Authorization {
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_getFollowInfo
,
"客户的跟进角色错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_getFollowInfo
,
"客户的跟进角色错误"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"销售查看个人工作计划"
,
priority
=
119
)
@Test
(
description
=
"销售查看个人工作计划"
,
priority
=
119
)
public
void
销售查看个人工作计划
(){
public
void
销售查看个人工作计划
(){
otoTakerAuth
();
otoTakerAuth
();
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
0112f8ff
...
@@ -231,6 +231,7 @@ public class BasicConfig {
...
@@ -231,6 +231,7 @@ public class BasicConfig {
public
static
final
String
WORK_getPlanList
=
WORK_HOST
+
"/kjy/oto/manager/customer/getPlanList"
;
public
static
final
String
WORK_getPlanList
=
WORK_HOST
+
"/kjy/oto/manager/customer/getPlanList"
;
public
static
final
String
WORK_callSubmit
=
WORK_HOST
+
"/kjy/oto/manager/customer/call/cust/info/submit"
;
public
static
final
String
WORK_callSubmit
=
WORK_HOST
+
"/kjy/oto/manager/customer/call/cust/info/submit"
;
public
static
final
String
WORK_getSceneTypes
=
WORK_HOST
+
"/kjy/oto/manager/custconf/getSceneTypes"
;
public
static
final
String
WORK_getSceneTypes
=
WORK_HOST
+
"/kjy/oto/manager/custconf/getSceneTypes"
;
public
static
final
String
WORK_promotionUpdate
=
WORK_HOST
+
"/kjy/oto/manager/customer/promotion/update"
;
//*************************客集集营销平台******************************
//*************************客集集营销平台******************************
public
static
final
String
PHONE_bindWxUser
=
HOST
+
"/kjy/oto/interview/bindWxUser"
;
public
static
final
String
PHONE_bindWxUser
=
HOST
+
"/kjy/oto/interview/bindWxUser"
;
...
...
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