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
52f63a98
Commit
52f63a98
authored
Apr 24, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/signDetailAndExpert_20220424' into 'master'
增加服务专家的测试用例 See merge request
!91
parents
e9192893
1c89fbb6
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
143 additions
and
14 deletions
+143
-14
Authorization.java
src/test/java/com/oto/cases/admin/Authorization.java
+9
-2
Activity.java
src/test/java/com/oto/cases/otoseller/Activity.java
+96
-11
Depts.java
src/test/java/com/oto/cases/otoseller/Depts.java
+28
-0
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+10
-1
No files found.
src/test/java/com/oto/cases/admin/Authorization.java
View file @
52f63a98
...
...
@@ -82,8 +82,15 @@ public interface Authorization {
default
void
otoEpertTku
()
{
network
.
agentCookies
.
put
(
"tku"
,
OTO_EXPERT_TKU
);
}
//oto销售工作台个微端-客户
default
void
WXCustomerTku
()
{
network
.
agentCookies
.
put
(
"ototku"
,
WX_CUSTOMER_TKU
);
}
//oto销售工作台个微端-客户_自动化测试客户3
default
void
WXCustomerTku3
()
{
network
.
agentCookies
.
put
(
"ototku"
,
WX_CUSTOMER_TKU3
);
}
//oto销售工作台个微端-客户_自动化测试客户2
default
void
WXCustomerTku2
()
{
network
.
agentCookies
.
put
(
"ototku"
,
WX_CUSTOMER_TKU2
);
}
//oto销售工作台个微端-客户_自动化测试客户5
default
void
WXCustomerTku5
()
{
network
.
agentCookies
.
put
(
"ototku"
,
WX_CUSTOMER_TKU5
);
}
//oto销售工作台个微端-专家
default
void
WXExpertTTku
()
{
network
.
agentCookies
.
put
(
"ototku"
,
WX_EXPERT_TKU
);
}
...
...
src/test/java/com/oto/cases/otoseller/Activity.java
View file @
52f63a98
This diff is collapsed.
Click to expand it.
src/test/java/com/oto/cases/otoseller/Depts.java
View file @
52f63a98
...
...
@@ -709,6 +709,34 @@ public class Depts implements Authorization {
Assert
.
assertEquals
(
deptId
,
47
,
network
.
message
(
selectParams
,
BasicConfig
.
WORK_MNG_customerList
,
"客户所属团队错误"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"配置成员资料"
,
priority
=
50
)
public
void
配置成员资料
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
EXPERT_ID
);
params
.
put
(
"introduceImage"
,
"//yun.dui88.com/kjy/image/20230424/9c17d843991b4ea7ac800235f144542f.jpg"
);
params
.
put
(
"shareImageUrl"
,
"//yun.dui88.com/kjy/image/20230424/72d9608dea5c459dae86e42129bf1fe7.jpg"
);
params
.
put
(
"shareDesc"
,
"勿动-自动化专家分享的卡片标题"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_configSave
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_configSave
,
"配置成员资料失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"查看成员资料配置"
,
priority
=
50
)
public
void
查看成员资料配置
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
EXPERT_ID
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_configDetail
);
String
shareDesc
=
response
.
jsonPath
().
getString
(
"data.shareDesc"
);
Assert
.
assertEquals
(
shareDesc
,
"勿动-自动化专家分享的卡片标题"
,
network
.
message
(
params
,
BasicConfig
.
WORK_configDetail
,
"配置成员资料失败"
,
response
.
body
().
asString
()));
params
.
put
(
"introduceImage"
,
"//yun.dui88.com/kjy/image/20230424/9c17d843991b4ea7ac800235f144542f.jpg"
);
params
.
put
(
"shareImageUrl"
,
"//yun.dui88.com/kjy/image/20230424/72d9608dea5c459dae86e42129bf1fe7.jpg"
);
params
.
put
(
"shareDesc"
,
"勿动-自动化测试专家分享的卡片标题"
);
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_configSave
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_configSave
,
"配置成员资料失败"
,
response
.
body
().
asString
()));
}
public
void
dimissionStatus
(
int
sellreid
){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
sellreid
);
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
52f63a98
...
...
@@ -45,7 +45,9 @@ public class BasicConfig {
public
static
final
String
OTO_EXPERT_TKU
=
"7Fcuh7FWTsTHSpfadRRWCqKfrLzGwUzSt2GyKaN2k4JGQDTqw8BwHhYw3TyqyaYEjXrPE6fkTN8KHHHhhFKnjdfEt8mmziXNdVKTpV1oLBfQVLsLG32XkcYgX9nHtUA3r9bYDRhQGQp1y4AumVyQFbxr"
;
/*******OTO销售工作台-个微*********/
public
static
final
String
WX_CUSTOMER_TKU
=
"3XE1uRL2Mq7DEPFFUMAtEgc1KZagjL4Bw7STUYA79h2mLaQExn9ji9MtuMqeigWxzYyLqGhdKFSWs18uFNXF74dZzMAuvJKHkLrc63b9erfkSoBQvM"
;
public
static
final
String
WX_CUSTOMER_TKU3
=
"3XE1uRL2Mq7DEPFFUMAtEgc1KZagjL4Bw7STUYA79h2mLaQExn9ji9MtuMqeigWxzYyLqGhdKFSWs18uFNXF74dZzMAuvJKHkLrc63b9erfkSoBQvM"
;
public
static
final
String
WX_CUSTOMER_TKU2
=
"3XE1uRL2Mq7DEPFFFRdnRPaPh4SXgsm35PhVj4M9pZEiBBjeEqjofm85tjBtZPBTzQoh68V4gcwq5RxvfTUzvU1HPrRRqU6Pji7JxkpeYD3PNZX7oH"
;
public
static
final
String
WX_CUSTOMER_TKU5
=
"3XE1uRL2Mq7DEPFFFRdnRPaTjtsHkF2ZD1idKAhmtGUvcqgpiFwyGQDqRFUnkryobzja88dJCcoixi4Locvda442c7y97vgtPidEaUhwXTot8J3VEG"
;
public
static
final
String
WX_EXPERT_TKU
=
"8WLT4bmESccxwWsdtyqvYAujdym8wr9EFgyuxyVTUn3bWkjBxCaRZ3Ab9Th23hEEHsVL89gYm26n7Eag4ZxYGhabwkN8voFamdmibepJZ7Jjinx"
;
public
static
final
String
WX_LEADER_TKU
=
"8WLT4bmESccxwWsdtyqvYGjw2btb5QStHynN3Wqird53MakwdEDu5aNZEnV3PdpvmxipZ4bVxD7bjZKdofEdP9XVWgdNfNF52Vw1qV2dsf7gWVe"
;
// *************** 客集集域名 ***************
...
...
@@ -332,6 +334,8 @@ public class BasicConfig {
public
static
final
String
WORK_MNG_ykList
=
WORK_HOST
+
"/kjy/oto/mng/seller/account/yk/availableList"
;
public
static
final
String
WORK_MNG_accountList
=
WORK_HOST
+
"/kjy/oto/mng/seller/account/availableList"
;
public
static
final
String
WORK_getDeptList
=
WORK_HOST
+
"/kjy/oto/mng/seller/get/dept/list"
;
public
static
final
String
WORK_configSave
=
WORK_HOST
+
"/kjy/oto/mng/seller/configSave"
;
public
static
final
String
WORK_configDetail
=
WORK_HOST
+
"/kjy/oto/mng/seller/configDetail"
;
//*************************客集集营销平台******************************
public
static
final
String
PHONE_bindWxUser
=
HOST
+
"/kjy/oto/interview/bindWxUser"
;
...
...
@@ -355,6 +359,11 @@ public class BasicConfig {
public
static
final
String
WX_searchCust
=
WX_HOST
+
"/oto/seller/submitRecord/searchCust"
;
public
static
final
String
WX_submitRecord
=
WX_HOST
+
"/oto/seller/submitRecord/submit"
;
public
static
final
String
WX_saveIntroduce
=
WX_HOST
+
"/oto/customer/introduce/save"
;
public
static
final
String
WX_serviceExpert_sign
=
WX_HOST
+
"/oto/customer/serviceExpert/sign"
;
public
static
final
String
WX_serviceExpert_detail
=
WX_HOST
+
"/oto/customer/serviceExpert/detail"
;
public
static
final
String
WX_info
=
WX_HOST
+
"/oto/user/info"
;
public
static
final
String
WX_sign_list
=
WX_HOST
+
"/oto/sign/list"
;
public
static
final
String
WX_sign_complement
=
WX_HOST
+
"/oto/activity/sign/complement"
;
//*************************销售工作台企微端**********************
public
static
final
String
PHONE_getCustPhase
=
WORK_HOST
+
"/kjy/oto/manager/customer/getCustPhase"
;
...
...
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