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
cc53b4de
Commit
cc53b4de
authored
Aug 04, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新运营周报部分
parent
abada3c4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
185 additions
and
26 deletions
+185
-26
WeeklyList.java
src/test/java/com/kjj/bean/whoSawMe/WeeklyList.java
+23
-0
ForwardAndRead.java
...java/com/kjj/cases/assistant/whoSawMe/ForwardAndRead.java
+18
-0
WhoSawMe.java
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
+135
-26
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+9
-0
No files found.
src/test/java/com/kjj/bean/whoSawMe/WeeklyList.java
0 → 100644
View file @
cc53b4de
package
com
.
kjj
.
bean
.
whoSawMe
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
WeeklyList
{
private
String
yearMonth
;
private
List
<
weeklyPublication
>
weeklyPublications
;
@Data
public
static
class
weeklyPublication
{
private
String
endDate
;
private
int
freshVisitorNum
;
private
String
id
;
private
int
keyCluesNum
;
private
boolean
newWeekly
;
private
String
startDate
;
private
int
totalShareNum
;
private
int
totalVisitorNum
;
}
}
src/test/java/com/kjj/cases/assistant/whoSawMe/ForwardAndRead.java
View file @
cc53b4de
...
...
@@ -150,6 +150,24 @@ public class ForwardAndRead implements Authorization {
Assert
.
assertEquals
(
data
,
"success"
,
network
.
message
(
param
,
BasicConfig
.
SELLERCARD_SENDPUSHFORSCAN
,
"领取赠险失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"获取文章FAQs"
,
priority
=
9
)
public
void
获取文章
FAQs
()
throws
IOException
{
param
.
clear
();
param
.
put
(
"scid"
,
articleScId
);
param
.
put
(
"recommend"
,
1
);
param
.
put
(
"pageIndex"
,
1
);
param
.
put
(
"pageSize"
,
2
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
ARTICLE_ENHANCEDCOLUMN_GETFAQS
);
int
totalCount
=
response
.
jsonPath
().
getInt
(
"data.totalCount"
);
List
<
Object
>
lists
=
response
.
jsonPath
().
getList
(
"data.list"
);
Assert
.
assertEquals
(
totalCount
,
lists
.
size
(),
network
.
message
(
param
,
BasicConfig
.
ARTICLE_ENHANCEDCOLUMN_GETFAQS
,
"FAQ总数与FAQ列表大小不一致"
,
response
.
body
().
asString
()));
}
// @Test(description = "二度访客点击FAQ", priority = 10)
// public void 二度访客点击FAQ() throws IOException{
//
// }
// 通过素材contentId获取线索员文章scId
public
String
getContentScId
(
String
contentId
){
param
=
new
HashMap
<>();
...
...
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
View file @
cc53b4de
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/config/BasicConfig.java
View file @
cc53b4de
...
...
@@ -723,6 +723,15 @@ public class BasicConfig {
public
static
final
String
CLUEINFO
=
HOST
+
"/kjy/mp/whoSawMe/clue/info"
;
public
static
final
String
CLUEADVISE
=
HOST
+
"/kjy/mp/whoSawMe/clue/info/advise"
;
// *************** 运营周报 ***************
public
static
final
String
WEEKLY_INDEXINFO
=
HOST
+
"/kjy/mp/weekly/getWeeklyIndexInfo"
;
public
static
final
String
WEEKLY_CONTENTSTATS
=
HOST
+
"/kjy/mp/weekly/getSellerContentStatsInfo"
;
public
static
final
String
WEEKLY_CARDSTATS
=
HOST
+
"/kjy/mp/weekly/getSellerCardStatsInfo"
;
public
static
final
String
WEEKLY_CUSTOMERSTATS
=
HOST
+
"/kjy/mp/weekly/getSellerWeeklyCustomerStatsInfo"
;
public
static
final
String
WEEKLY_CLUESTATS
=
HOST
+
"/kjy/mp/weekly/getSellerWeeklyClueStatsInfo"
;
public
static
final
String
WEEKLY_DATESTATS
=
HOST
+
"/kjy/mp/weekly/getSellerWeeklyDateStatsInfo"
;
public
static
final
String
WEEKLY_POSTERINFO
=
HOST
+
"/kjy/mp/weekly/getSellerWeeklyPosterInfo"
;
// *************** 客户信息 ***************
public
static
final
String
CUSTINFOHEADER
=
HOST
+
"/kjy/mp/whoSawMe/custInfoHeader"
;
public
static
final
String
CUSTINFO
=
HOST
+
"/kjy/mp/seller/v2/custInfo"
;
...
...
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