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
9a2d4c9e
Commit
9a2d4c9e
authored
Mar 25, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gifeature/20220322-gj' into 'master'
总监离职校验、销售间客户动态取消隔离 See merge request test-group/kejiji!239
parents
a6bbd0fe
fdec9202
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
Manager.java
src/test/java/com/kjj/cases/otoseller/Manager.java
+11
-0
Work.java
src/test/java/com/kjj/cases/otoseller/Work.java
+19
-0
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+2
-0
No files found.
src/test/java/com/kjj/cases/otoseller/Manager.java
View file @
9a2d4c9e
...
@@ -184,4 +184,15 @@ public class Manager {
...
@@ -184,4 +184,15 @@ public class Manager {
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_updateCompany
,
"修改工作状态为请假中失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_updateCompany
,
"修改工作状态为请假中失败"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"总监下有销售离职失败"
,
priority
=
13
)
public
void
总监下有销售离职失败
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
43
);
params
.
put
(
"dimissionStatus"
,
1
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MANAGER_oto_switchDimissionStatus
);
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assertFalse
(
success
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_switchDimissionStatus
,
"总监名下存在销售但离职成功"
,
response
.
body
().
asString
()));
}
}
}
src/test/java/com/kjj/cases/otoseller/Work.java
View file @
9a2d4c9e
...
@@ -15,6 +15,7 @@ import java.util.HashMap;
...
@@ -15,6 +15,7 @@ import java.util.HashMap;
import
java.util.Map
;
import
java.util.Map
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLER_ID
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLER_ID
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
LEADER_ID
;
import
static
com
.
kjj
.
utils
.
BaseUtils
.*;
import
static
com
.
kjj
.
utils
.
BaseUtils
.*;
import
static
com
.
kjj
.
utils
.
ThreadSleepUtils
.
sleep
;
import
static
com
.
kjj
.
utils
.
ThreadSleepUtils
.
sleep
;
...
@@ -772,6 +773,24 @@ public class Work implements Authorization {
...
@@ -772,6 +773,24 @@ public class Work implements Authorization {
Assert
.
assertFalse
(
success
,
network
.
message
(
BasicConfig
.
WORK_logout
,
"总监修改非名下销售工作状态成功"
,
response
.
body
().
asString
()));
Assert
.
assertFalse
(
success
,
network
.
message
(
BasicConfig
.
WORK_logout
,
"总监修改非名下销售工作状态成功"
,
response
.
body
().
asString
()));
}
}
@Test
(
description
=
"销售间客户动态取消隔离"
,
priority
=
58
)
public
void
销售间客户动态取消隔离
(){
//将客户重新分配给总监
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"customerId"
,
custId
);
params
.
put
(
"sellerId"
,
LEADER_ID
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MANAGER_oto_assignSeller
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
BasicConfig
.
MANAGER_oto_assignSeller
,
"重新分配失败"
,
response
.
body
().
asString
()));
//总监查看客户动态
params
.
clear
();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"logDays"
,
1
);
Response
logRes
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_operation
);
int
logSize
=
logRes
.
jsonPath
().
getInt
(
"data.list.size()"
);
Assert
.
assertTrue
(
logSize
>
0
,
network
.
message
(
BasicConfig
.
WORK_operation
,
"客户动态隔离失败"
,
logRes
.
body
().
asString
()));
}
@Test
(
description
=
"删除客户"
,
priority
=
79
)
@Test
(
description
=
"删除客户"
,
priority
=
79
)
public
void
删除客户
(){
public
void
删除客户
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
9a2d4c9e
...
@@ -1324,6 +1324,8 @@ public class BasicConfig {
...
@@ -1324,6 +1324,8 @@ public class BasicConfig {
public
static
final
String
MANAGER_oto_customerPhone
=
MANAGER_HOST
+
"/kjy/manager/pub/form/customer/customerPhone"
;
public
static
final
String
MANAGER_oto_customerPhone
=
MANAGER_HOST
+
"/kjy/manager/pub/form/customer/customerPhone"
;
public
static
final
String
MANAGER_oto_qaDetail
=
MANAGER_HOST
+
"/kjy/manager/pub/form/customer/qaDetail"
;
public
static
final
String
MANAGER_oto_qaDetail
=
MANAGER_HOST
+
"/kjy/manager/pub/form/customer/qaDetail"
;
public
static
final
String
MANAGER_oto_channelList
=
MANAGER_HOST
+
"/kjy/manager/pub/form/channelList"
;
public
static
final
String
MANAGER_oto_channelList
=
MANAGER_HOST
+
"/kjy/manager/pub/form/channelList"
;
public
static
final
String
MANAGER_oto_switchDimissionStatus
=
MANAGER_HOST
+
"/kjy/manager/oto/seller/switchDimissionStatus"
;
public
static
final
String
WORK_getCaptcha
=
WORK_HOST
+
"/kjy/oto/manager/auth/captcha"
;
public
static
final
String
WORK_getCaptcha
=
WORK_HOST
+
"/kjy/oto/manager/auth/captcha"
;
public
static
final
String
WORK_login
=
WORK_HOST
+
"/kjy/oto/manager/auth/login"
;
public
static
final
String
WORK_login
=
WORK_HOST
+
"/kjy/oto/manager/auth/login"
;
...
...
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