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
a3883483
Commit
a3883483
authored
Feb 13, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/seller_plan' into 'master'
更新CRM的token See merge request
!68
parents
31accba0
f8da989d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
6 deletions
+20
-6
pom.xml
pom.xml
+0
-1
Authorization.java
src/test/java/com/oto/cases/admin/Authorization.java
+2
-2
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+14
-1
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+4
-2
No files found.
pom.xml
View file @
a3883483
...
...
@@ -159,7 +159,6 @@
</property>
</properties>
</configuration>
</plugin>
</plugins>
</build>
...
...
src/test/java/com/oto/cases/admin/Authorization.java
View file @
a3883483
...
...
@@ -35,12 +35,12 @@ public interface Authorization {
//oto销售工作台-带看销售
default
void
otoTakerAuth
()
{
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRw
uMAr15wbxgFdLvd7yBH2P3tUPLtxddZ3PVh7hYvUNEmh2KUB
"
);
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRw
vEnnavAmCTRjviosF96LJpxnM56edCVyxitFFHA3dGsMCRba
"
);
}
//oto销售工作台-专家
default
void
otoExpertAuth
()
{
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRw
uMAr1k2Cvo19wspzuZEsY48qVwFBfsmN8fyk9oT9sWj9WU5L
"
);
network
.
agentCookies
.
put
(
"otoToken"
,
"eTd1Af5HRGuUtkXq6ZtdzRw
vEnnavAmn1XJJP5h7NK6dZxn7af14AMnwtdM7XYhZYmJQjoB
"
);
}
//久久保管理员-正常权限模式
...
...
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
a3883483
...
...
@@ -462,7 +462,7 @@ public class Phone implements Authorization {
params
.
put
(
"custId"
,
IdMakeUtil
.
decodingId
(
cust_id
));
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_detail_v2
);
int
commitPlanFlag
=
response
.
jsonPath
().
getInt
(
"data.otoCustInfo4Manage.commitPlanFlag"
);
Assert
.
assertEquals
(
commitPlanFlag
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_detail_v2
,
"是否提交计划书非是
"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
commitPlanFlag
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_detail_v2
,
"是否提交计划书非【是】
"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查询专家列表"
,
priority
=
32
)
...
...
@@ -736,6 +736,19 @@ public class Phone implements Authorization {
}
@Test
(
description
=
"盘点详情重新分配"
,
priority
=
61
)
public
void
盘点详情重新分配
(){
otoLeaderAuth
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"assignType"
,
2
);
params
.
put
(
"customerId"
,
IdMakeUtil
.
decodingId
(
cust_id
));
params
.
put
(
"sellerId"
,
290
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_assignSeller
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_assignSeller
,
"查看销售在在库客户为空"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"删除客户"
,
priority
=
79
)
public
void
删除客户
(){
long
id
=
IdMakeUtil
.
decodingId
(
cust_id
);
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
a3883483
...
...
@@ -244,6 +244,7 @@ public class BasicConfig {
public
static
final
String
WORK_obtainCustBySellerId
=
WORK_HOST
+
"/kjy/oto/manager/customer/obtainCustBySellerId"
;
public
static
final
String
WORK_saveSelfPlan
=
WORK_HOST
+
"/kjy/oto/manager/customer/planList/save"
;
public
static
final
String
WORK_apolloSeller
=
WORK_HOST
+
"/kjy/oto/manager/customer/apollo/seller"
;
public
static
final
String
WORK_assignSeller
=
WORK_HOST
+
"/kjy/oto/manager/customer/assignSeller"
;
//*************************客集集营销平台******************************
public
static
final
String
PHONE_bindWxUser
=
HOST
+
"/kjy/oto/interview/bindWxUser"
;
...
...
@@ -289,9 +290,10 @@ public class BasicConfig {
public
static
final
String
WORK_verifyCode
=
WORK_HOST
+
"/kjy/oto/auto/test/verifyCode"
;
public
static
final
String
WORK_delCust
=
WORK_HOST
+
"/kjy/oto/auto/test/delCust"
;
public
static
final
String
WORK_delPubFormRecord
=
WORK_HOST
+
"/kjy/oto/auto/test/delPubFormRecord"
;
public
static
final
String
CALL_BACK_1
=
WORK_HOST
+
"/kjy/oto/notify/record?CallSheetID=e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd&CallID=e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd&CallType=dialout&CallNo="
;
public
static
final
String
CALL_BACK_2
=
"&Ring=2022-11-07
%2013:57:06&RingingTime=&Begin=2022-11-07%2013:57:14&End=2022-11-07%20
13:57:28&CallTimeLength="
;
public
static
final
String
CALL_BACK_3
=
"&MonitorFilename=http://work-phone-record.oss-cn-beijing.aliyuncs.com/20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&RecordFile=20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&FileServer=http://work-phone-record.oss-cn-beijing.aliyuncs.com/&ring=2022-11-07
%20
13:57:06"
;
public
static
final
String
CALL_BACK_2
=
"&Ring=2022-11-07
13:57:06&RingingTime=&Begin=2022-11-07 13:57:14&End=2022-11-07
13:57:28&CallTimeLength="
;
public
static
final
String
CALL_BACK_3
=
"&MonitorFilename=http://work-phone-record.oss-cn-beijing.aliyuncs.com/20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&RecordFile=20221103/20221103135706_16621273912_136****3947_e7b4efe0-e7bc-4fc1-9ce8-d7655dccc8cd.mp3&FileServer=http://work-phone-record.oss-cn-beijing.aliyuncs.com/&ring=2022-11-07
13:57:06"
;
//*************** 人管系统 ***************
public
static
final
String
JiuJiuBao_login
=
JiuJiuBao_HOST
+
"/oto/manager/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