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
872d7b46
Commit
872d7b46
authored
Jul 30, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新 谁看过我+我的客户
parent
d34ad305
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
12 deletions
+41
-12
MyCustomer.java
...est/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
+26
-10
WhoSawMe.java
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
+13
-1
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+2
-1
No files found.
src/test/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
View file @
872d7b46
...
@@ -592,8 +592,24 @@ public class MyCustomer implements Authorization {
...
@@ -592,8 +592,24 @@ public class MyCustomer implements Authorization {
Assert
.
assertEquals
(
list
.
size
(),
0
,
network
.
message
(
param
,
BasicConfig
.
GETREMINDINFOS
,
"待提醒事件未全部删除"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
list
.
size
(),
0
,
network
.
message
(
param
,
BasicConfig
.
GETREMINDINFOS
,
"待提醒事件未全部删除"
,
response
.
body
().
asString
()));
}
}
// 客户信息_客户管理_查询已提醒事件列表
@Test
(
description
=
"客户信息_客户管理_查询已提醒事件列表"
,
priority
=
35
)
public
void
客户信息
_
客户管理
_
查询已提醒事件列表
()
throws
IOException
{
param
=
new
HashMap
<>();
param
.
put
(
"pageIndex"
,
1
);
param
.
put
(
"pageSize"
,
20
);
param
.
put
(
"userId"
,
visitor1UserId
);
param
.
put
(
"remindStatus"
,
1
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
GETREMINDINFOS
);
List
<
RemindInfo
>
remindInfos
=
JsonUtil
.
parseResponseToPageBean
(
response
,
RemindInfo
.
class
);
String
remindContent
=
remindInfos
.
get
(
0
).
getRemindContent
();
int
remindStatus
=
remindInfos
.
get
(
0
).
getRemindStatus
();
Assert
.
assertEquals
(
remindContent
,
"吃饭"
,
network
.
message
(
param
,
BasicConfig
.
GETREMINDINFOS
,
"筛选结果事件内容不正确"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
remindStatus
,
1
,
network
.
message
(
param
,
BasicConfig
.
GETREMINDINFOS
,
"筛选结果状态非已提醒"
,
response
.
body
().
asString
()));
}
// 客户信息_客户管理_生日提醒
// 客户信息_客户管理_生日提醒
@Test
(
description
=
"客户信息_客户管理_生日提醒"
,
priority
=
3
5
)
@Test
(
description
=
"客户信息_客户管理_生日提醒"
,
priority
=
3
6
)
public
void
客户信息
_
客户管理
_
生日提醒
()
throws
IOException
{
public
void
客户信息
_
客户管理
_
生日提醒
()
throws
IOException
{
String
userId
=
String
.
valueOf
(
visitor1UserId
);
String
userId
=
String
.
valueOf
(
visitor1UserId
);
// 开启生日提醒
// 开启生日提醒
...
@@ -629,7 +645,7 @@ public class MyCustomer implements Authorization {
...
@@ -629,7 +645,7 @@ public class MyCustomer implements Authorization {
}
}
// 客户信息_客户管理_节日提醒
// 客户信息_客户管理_节日提醒
@Test
(
description
=
"客户信息_客户管理_节日提醒"
,
priority
=
3
6
)
@Test
(
description
=
"客户信息_客户管理_节日提醒"
,
priority
=
3
7
)
public
void
客户信息
_
客户管理
_
节日提醒
()
throws
IOException
{
public
void
客户信息
_
客户管理
_
节日提醒
()
throws
IOException
{
String
userId
=
String
.
valueOf
(
visitor1UserId
);
String
userId
=
String
.
valueOf
(
visitor1UserId
);
// 开启节日提醒
// 开启节日提醒
...
@@ -662,7 +678,7 @@ public class MyCustomer implements Authorization {
...
@@ -662,7 +678,7 @@ public class MyCustomer implements Authorization {
}
}
// 客户信息_客户关系链_统计信息
// 客户信息_客户关系链_统计信息
@Test
(
description
=
"客户信息_客户关系链_统计信息"
,
priority
=
3
7
)
@Test
(
description
=
"客户信息_客户关系链_统计信息"
,
priority
=
3
8
)
public
void
客户信息
_
客户关系链
_
统计信息
()
throws
IOException
{
public
void
客户信息
_
客户关系链
_
统计信息
()
throws
IOException
{
param
=
new
HashMap
<>();
param
=
new
HashMap
<>();
param
.
put
(
"custUserId"
,
far
.
decodeTku
(
BasicConfig
.
AGENT_TKU
).
get
(
"userId"
));
param
.
put
(
"custUserId"
,
far
.
decodeTku
(
BasicConfig
.
AGENT_TKU
).
get
(
"userId"
));
...
@@ -672,7 +688,7 @@ public class MyCustomer implements Authorization {
...
@@ -672,7 +688,7 @@ public class MyCustomer implements Authorization {
}
}
// 客户信息_客户关系链_人脉列表
// 客户信息_客户关系链_人脉列表
@Test
(
description
=
"客户信息_客户关系链_人脉列表"
,
priority
=
3
8
)
@Test
(
description
=
"客户信息_客户关系链_人脉列表"
,
priority
=
3
9
)
public
void
客户信息
_
客户关系链
_
人脉列表
()
throws
IOException
{
public
void
客户信息
_
客户关系链
_
人脉列表
()
throws
IOException
{
param
=
new
HashMap
<>();
param
=
new
HashMap
<>();
param
.
put
(
"custUserId"
,
far
.
decodeTku
(
BasicConfig
.
AGENT_TKU
).
get
(
"userId"
));
param
.
put
(
"custUserId"
,
far
.
decodeTku
(
BasicConfig
.
AGENT_TKU
).
get
(
"userId"
));
...
@@ -685,7 +701,7 @@ public class MyCustomer implements Authorization {
...
@@ -685,7 +701,7 @@ public class MyCustomer implements Authorization {
}
}
// 客户信息_客户关系链_邀请排行
// 客户信息_客户关系链_邀请排行
@Test
(
description
=
"客户信息_客户关系链_邀请排行"
,
priority
=
39
)
@Test
(
description
=
"客户信息_客户关系链_邀请排行"
,
priority
=
40
)
public
void
客户信息
_
客户关系链
_
邀请排行
()
throws
IOException
{
public
void
客户信息
_
客户关系链
_
邀请排行
()
throws
IOException
{
param
=
new
HashMap
<>();
param
=
new
HashMap
<>();
param
.
put
(
"type"
,
2
);
param
.
put
(
"type"
,
2
);
...
@@ -697,7 +713,7 @@ public class MyCustomer implements Authorization {
...
@@ -697,7 +713,7 @@ public class MyCustomer implements Authorization {
}
}
//客户信息_更多资料
//客户信息_更多资料
@Test
(
description
=
"客户信息_更多资料"
,
priority
=
4
0
)
@Test
(
description
=
"客户信息_更多资料"
,
priority
=
4
1
)
public
void
客户信息
_
更多资料
()
throws
IOException
{
public
void
客户信息
_
更多资料
()
throws
IOException
{
// 更新资料信息
// 更新资料信息
List
<
Object
>
baseMaterial
=
new
ArrayList
<>();
List
<
Object
>
baseMaterial
=
new
ArrayList
<>();
...
@@ -739,7 +755,7 @@ public class MyCustomer implements Authorization {
...
@@ -739,7 +755,7 @@ public class MyCustomer implements Authorization {
}
}
// 客户详情页_留言
// 客户详情页_留言
@Test
(
description
=
"客户详情页_留言"
,
priority
=
4
1
)
@Test
(
description
=
"客户详情页_留言"
,
priority
=
4
2
)
public
void
客户详情页
_
留言
()
throws
IOException
{
public
void
客户详情页
_
留言
()
throws
IOException
{
// 判断销售员是否首次访问新功能(留言)
// 判断销售员是否首次访问新功能(留言)
param
=
new
HashMap
<>();
param
=
new
HashMap
<>();
...
@@ -750,7 +766,7 @@ public class MyCustomer implements Authorization {
...
@@ -750,7 +766,7 @@ public class MyCustomer implements Authorization {
}
}
// 客户详情页_留言_发送消息
// 客户详情页_留言_发送消息
@Test
(
description
=
"客户详情页_留言_发送消息"
,
priority
=
4
2
)
@Test
(
description
=
"客户详情页_留言_发送消息"
,
priority
=
4
3
)
public
void
客户详情页
_
留言
_
发送消息
()
throws
IOException
{
public
void
客户详情页
_
留言
_
发送消息
()
throws
IOException
{
param
=
new
HashMap
<>();
param
=
new
HashMap
<>();
param
.
put
(
"content"
,
"Hello"
);
param
.
put
(
"content"
,
"Hello"
);
...
@@ -761,7 +777,7 @@ public class MyCustomer implements Authorization {
...
@@ -761,7 +777,7 @@ public class MyCustomer implements Authorization {
}
}
// 客户详情页_留言_聊天内容
// 客户详情页_留言_聊天内容
@Test
(
description
=
"客户详情页_留言_聊天内容"
,
priority
=
4
3
)
@Test
(
description
=
"客户详情页_留言_聊天内容"
,
priority
=
4
4
)
public
void
客户详情页
_
留言
_
聊天内容
()
throws
IOException
{
public
void
客户详情页
_
留言
_
聊天内容
()
throws
IOException
{
param
=
new
HashMap
<>();
param
=
new
HashMap
<>();
param
.
put
(
"pageSize"
,
30
);
param
.
put
(
"pageSize"
,
30
);
...
@@ -783,7 +799,7 @@ public class MyCustomer implements Authorization {
...
@@ -783,7 +799,7 @@ public class MyCustomer implements Authorization {
}
}
// 客户详情页_留言_留言对象是否关注公众号
// 客户详情页_留言_留言对象是否关注公众号
@Test
(
description
=
"客户详情页_留言_留言对象是否关注公众号"
,
priority
=
4
4
)
@Test
(
description
=
"客户详情页_留言_留言对象是否关注公众号"
,
priority
=
4
5
)
public
void
客户详情页
_
留言
_
留言对象是否关注公众号
()
throws
IOException
{
public
void
客户详情页
_
留言
_
留言对象是否关注公众号
()
throws
IOException
{
param
=
new
HashMap
<>();
param
=
new
HashMap
<>();
param
.
put
(
"targetSid"
,
far
.
decodeTku
(
BasicConfig
.
VISITOR2_TKU
).
get
(
"sellerId"
));
param
.
put
(
"targetSid"
,
far
.
decodeTku
(
BasicConfig
.
VISITOR2_TKU
).
get
(
"sellerId"
));
...
...
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
View file @
872d7b46
...
@@ -311,6 +311,19 @@ public class WhoSawMe implements Authorization {
...
@@ -311,6 +311,19 @@ public class WhoSawMe implements Authorization {
Assert
.
assertEquals
(
identity
,
1
,
network
.
message
(
param
,
BasicConfig
.
TEAMSTRUCTURE_IDENTITY
,
"当前代理人身份判断错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
identity
,
1
,
network
.
message
(
param
,
BasicConfig
.
TEAMSTRUCTURE_IDENTITY
,
"当前代理人身份判断错误"
,
response
.
body
().
asString
()));
}
}
// 团队架构_搜索成员
@Test
(
description
=
"团队架构_搜索成员"
,
priority
=
22
)
public
void
团队架构
_
搜索成员
()
throws
IOException
{
jjSellerId
=
far
.
decodeTku
(
BasicConfig
.
AGENT_TKU
).
get
(
"sellerId"
);
param
=
new
HashMap
<>();
param
.
put
(
"sellerName"
,
"吉吉"
);
param
.
put
(
"superiorSid"
,
String
.
valueOf
(
xxxSellerId
));
System
.
out
.
println
();
response
=
network
.
getResponse
(
param
,
BasicConfig
.
MEMBERSEARCH
);
String
sellerId
=
response
.
jsonPath
().
getString
(
"data[0].sellerId"
);
Assert
.
assertEquals
(
sellerId
,
far
.
encodeId
(
jjSellerId
),
network
.
message
(
param
,
BasicConfig
.
MEMBERSEARCH
,
"搜索结果错误"
,
response
.
body
().
asString
()));
}
// 团队架构_删除团队成员
// 团队架构_删除团队成员
@Test
(
description
=
"团队架构_删除团队成员"
,
priority
=
100
)
@Test
(
description
=
"团队架构_删除团队成员"
,
priority
=
100
)
public
void
团队架构
_
删除团队成员
()
throws
IOException
{
public
void
团队架构
_
删除团队成员
()
throws
IOException
{
...
@@ -372,7 +385,6 @@ public class WhoSawMe implements Authorization {
...
@@ -372,7 +385,6 @@ public class WhoSawMe implements Authorization {
// 新建任务_可推送成员
// 新建任务_可推送成员
@Test
(
description
=
"新建任务_可推送成员"
,
priority
=
26
)
@Test
(
description
=
"新建任务_可推送成员"
,
priority
=
26
)
public
void
新建任务
_
可推送成员
()
throws
IOException
{
public
void
新建任务
_
可推送成员
()
throws
IOException
{
jjSellerId
=
far
.
decodeTku
(
BasicConfig
.
AGENT_TKU
).
get
(
"sellerId"
);
param
=
new
HashMap
<>();
param
=
new
HashMap
<>();
param
.
put
(
"pageIndex"
,
1
);
param
.
put
(
"pageIndex"
,
1
);
param
.
put
(
"pageSize"
,
20
);
param
.
put
(
"pageSize"
,
20
);
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
872d7b46
...
@@ -844,11 +844,12 @@ public class BasicConfig {
...
@@ -844,11 +844,12 @@ public class BasicConfig {
public
static
final
String
TEAMDATA
=
HOST
+
"/kjy/mp/seller/team/data"
;
public
static
final
String
TEAMDATA
=
HOST
+
"/kjy/mp/seller/team/data"
;
public
static
final
String
TEAMMEMBERNUM
=
HOST
+
"/kjy/mp/seller/team/memberNumber"
;
public
static
final
String
TEAMMEMBERNUM
=
HOST
+
"/kjy/mp/seller/team/memberNumber"
;
public
static
final
String
TEAMRANKINGLIST
=
HOST
+
"/kjy/mp/seller/team/rankingList"
;
public
static
final
String
TEAMRANKINGLIST
=
HOST
+
"/kjy/mp/seller/team/rankingList"
;
// 团队
任务
// 团队
管理
public
static
final
String
FINDPAGEBYCONTENTTYPE
=
HOST
+
"/kjy/mp/exclusiveItem/findPageByContentType"
;
public
static
final
String
FINDPAGEBYCONTENTTYPE
=
HOST
+
"/kjy/mp/exclusiveItem/findPageByContentType"
;
public
static
final
String
TEAMMEMBER
=
HOST
+
"/kjy/mp/seller/team/member"
;
public
static
final
String
TEAMMEMBER
=
HOST
+
"/kjy/mp/seller/team/member"
;
public
static
final
String
TEAMSTRUCTURE_IDENTITY
=
HOST
+
"/kjy/mp/seller/team/member/identity"
;
public
static
final
String
TEAMSTRUCTURE_IDENTITY
=
HOST
+
"/kjy/mp/seller/team/member/identity"
;
public
static
final
String
MEMBERREMOVE
=
HOST
+
"/kjy/mp/seller/team/member/remove"
;
public
static
final
String
MEMBERREMOVE
=
HOST
+
"/kjy/mp/seller/team/member/remove"
;
public
static
final
String
MEMBERSEARCH
=
HOST
+
"/kjy/mp/seller/team/member/search"
;
...
...
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