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
e94af801
Commit
e94af801
authored
Aug 03, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充客户阅读偏好及留言板内容
parent
16e37d73
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
250 additions
and
102 deletions
+250
-102
ForwardAndRead.java
...java/com/kjj/cases/assistant/whoSawMe/ForwardAndRead.java
+12
-4
MyCustomer.java
...est/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
+105
-17
WhoSawMe.java
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
+127
-81
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+6
-0
No files found.
src/test/java/com/kjj/cases/assistant/whoSawMe/ForwardAndRead.java
View file @
e94af801
...
...
@@ -21,7 +21,7 @@ public class ForwardAndRead implements Authorization {
private
Long
sellerId
;
private
String
visitId
;
private
String
insuranceId
;
private
Stri
ng
forwardTime
;
private
lo
ng
forwardTime
;
@BeforeClass
public
void
setUp
()
throws
IOException
{
...
...
@@ -41,7 +41,7 @@ public class ForwardAndRead implements Authorization {
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
param
,
BasicConfig
.
FORWARD
,
"转发素材失败"
,
response
.
body
().
asString
()));
forwardTime
=
response
.
jsonPath
().
get
Stri
ng
(
"timestamp"
);
forwardTime
=
response
.
jsonPath
().
get
Lo
ng
(
"timestamp"
);
}
@Test
(
description
=
"代理人转发名片"
,
priority
=
2
)
...
...
@@ -122,7 +122,16 @@ public class ForwardAndRead implements Authorization {
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
CONTENT_READ
,
"接口调用失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"二度访客领取赠险"
,
priority
=
7
)
@Test
(
description
=
"添加访问记录"
,
priority
=
7
)
public
void
添加访问记录
()
throws
IOException
{
param
.
clear
();
param
.
put
(
"forwardTime"
,
forwardTime
+
5000
);
param
.
put
(
"scid"
,
articleScId
);
response
=
network
.
postResponse
(
param
,
BasicConfig
.
DYNAMIC_ADDVISIT
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"data"
),
network
.
message
(
param
,
BasicConfig
.
DYNAMIC_ADDVISIT
,
"添加访问记录失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"二度访客领取赠险"
,
priority
=
8
)
public
void
二度访客领取赠险
()
throws
IOException
{
param
=
new
HashMap
<>();
param
.
put
(
"clueTypeName"
,
"WELFARE_INSURANCE"
);
...
...
@@ -135,7 +144,6 @@ public class ForwardAndRead implements Authorization {
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
SELLERCARD_SENDPUSHFORSCAN
,
"接口调用失败"
,
response
.
body
().
asString
()));
String
data
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertEquals
(
data
,
"success"
,
network
.
message
(
param
,
BasicConfig
.
SELLERCARD_SENDPUSHFORSCAN
,
"领取赠险失败"
,
response
.
body
().
asString
()));
}
// 通过素材contentId获取线索员文章scId
...
...
src/test/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
View file @
e94af801
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
View file @
e94af801
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/config/BasicConfig.java
View file @
e94af801
...
...
@@ -761,6 +761,9 @@ public class BasicConfig {
public
static
final
String
CHAT_LIST
=
HOST
+
"/kjy/mp/chat/list"
;
public
static
final
String
CHAT_GETSUBSCRIBESTATUS
=
HOST
+
"/kjy/mp/chat/getSubscribeStatus"
;
public
static
final
String
CHAT_LINKMANLIST
=
HOST
+
"/kjy/mp/chat/sellerLinkmanList"
;
public
static
final
String
CHAT_COUNTHISTORY
=
HOST
+
"/kjy/mp/chat/countHistory"
;
public
static
final
String
CHAT_READED
=
HOST
+
"/kjy/mp/chat/readed"
;
public
static
final
String
CHAT_NEW
=
HOST
+
"/kjy/mp/chat/new"
;
// *************** 文章 ***************
...
...
@@ -845,6 +848,9 @@ public class BasicConfig {
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
TEAMRANKINGLIST
=
HOST
+
"/kjy/mp/seller/team/rankingList"
;
public
static
final
String
HASNEWTASK
=
HOST
+
"/kjy/mp/seller/team/task/hasNewTask"
;
public
static
final
String
MYTASKHEADER
=
HOST
+
"/kjy/mp/seller/team/task/myTaskHeader"
;
public
static
final
String
MYTASKLIST
=
HOST
+
"/kjy/mp/seller/team/task/myTaskList"
;
// 团队管理
public
static
final
String
FINDPAGEBYCONTENTTYPE
=
HOST
+
"/kjy/mp/exclusiveItem/findPageByContentType"
;
public
static
final
String
TEAMMEMBER
=
HOST
+
"/kjy/mp/seller/team/member"
;
...
...
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