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
6b5824ad
Commit
6b5824ad
authored
Jul 28, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码存档
parent
5e6a7d12
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
6 deletions
+47
-6
ArticlePage.java
src/test/java/com/kjj/bean/whoSawMe/ArticlePage.java
+1
-1
CustFavorite.java
src/test/java/com/kjj/bean/whoSawMe/CustFavorite.java
+9
-0
RankingList.java
src/test/java/com/kjj/bean/whoSawMe/RankingList.java
+1
-1
MyCustomer.java
...est/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
+31
-2
WhoSawMe.java
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
+2
-2
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+3
-0
No files found.
src/test/java/com/kjj/bean/
assistant
/ArticlePage.java
→
src/test/java/com/kjj/bean/
whoSawMe
/ArticlePage.java
View file @
6b5824ad
package
com
.
kjj
.
bean
.
assistant
;
package
com
.
kjj
.
bean
.
whoSawMe
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/whoSawMe/CustFavorite.java
0 → 100644
View file @
6b5824ad
package
com
.
kjj
.
bean
.
whoSawMe
;
import
lombok.Data
;
@Data
public
class
CustFavorite
{
private
String
contentId
;
private
String
userActionTypeEnum
;
}
src/test/java/com/kjj/bean/
assistant
/RankingList.java
→
src/test/java/com/kjj/bean/
whoSawMe
/RankingList.java
View file @
6b5824ad
package
com
.
kjj
.
bean
.
assistant
;
package
com
.
kjj
.
bean
.
whoSawMe
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
View file @
6b5824ad
package
com
.
kjj
.
cases
.
assistant
.
whoSawMe
;
import
com.kjj.bean.whoSawMe.CustFavorite
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -434,9 +435,37 @@ public class MyCustomer implements Authorization {
Assert
.
assertEquals
(
totalCount
,
visitCount
,
network
.
message
(
param
,
BasicConfig
.
CONTENTVISITRECORD
,
"访问记录总数与来访次数不符"
,
response
.
body
().
asString
()));
}
// 客户详情页_
资料信息
// 客户详情页_
关键线索_提交资料
@Test
(
description
=
"客户详情页_资料信息"
,
priority
=
27
)
public
void
客户详情页
_
资料信息
()
throws
IOException
{
public
void
关键线索
_
提交资料
()
throws
IOException
{
param
=
new
HashMap
<>();
param
.
put
(
"custUserId"
,
visitor1UserId
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
CUSTMATERIALS
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
CUSTMATERIALS
,
"接口请求失败"
,
response
.
body
().
asString
()));
}
// 客户详情页_关键线索_中奖记录
@Test
(
description
=
"客户详情页_关键信息_中奖记录"
,
priority
=
28
)
public
void
关键线索
_
中奖记录
()
throws
IOException
{
param
=
new
HashMap
<>();
param
.
put
(
"custUserId"
,
visitor1UserId
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
CUSTLOTTERIES
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
CUSTLOTTERIES
,
"接口请求失败"
,
response
.
body
().
asString
()));
}
// 客户详情页_关键信息_喜欢的内容
@Test
(
description
=
"关键信息_喜欢的内容"
,
priority
=
29
)
public
void
关键信息
_
喜欢的内容
()
throws
IOException
{
param
=
new
HashMap
<>();
param
.
put
(
"custUserId"
,
visitor1UserId
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
CUSTFAVORITE
);
List
<
CustFavorite
>
custFavorites
=
JsonUtil
.
parseResponseToListBean
(
response
,
CustFavorite
.
class
);
Assert
.
assertTrue
(
custFavorites
.
size
()
>=
1
,
network
.
message
(
param
,
BasicConfig
.
CUSTFAVORITE
,
"数据记录数有误"
,
response
.
body
().
asString
()));
String
userActionTypeEnum
=
custFavorites
.
get
(
0
).
getUserActionTypeEnum
();
String
contentId
=
custFavorites
.
get
(
0
).
getContentId
();
Assert
.
assertEquals
(
userActionTypeEnum
,
"FORWARD"
,
network
.
message
(
param
,
BasicConfig
.
CUSTFAVORITE
,
"用户动作类型记录有误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
contentId
,
BasicConfig
.
ARTICLE_CONTENTID
,
network
.
message
(
param
,
BasicConfig
.
CUSTFAVORITE
,
"用户产生动作的素材ID有误"
,
response
.
body
().
asString
()));
}
}
src/test/java/com/kjj/cases/assistant/whoSawMe/WhoSawMe.java
View file @
6b5824ad
package
com
.
kjj
.
cases
.
assistant
.
whoSawMe
;
import
com.beust.jcommander.internal.Lists
;
import
com.kjj.bean.
assistant
.ArticlePage
;
import
com.kjj.bean.
assistant
.RankingList
;
import
com.kjj.bean.
whoSawMe
.ArticlePage
;
import
com.kjj.bean.
whoSawMe
.RankingList
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.utils.BaseUtils
;
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
6b5824ad
...
...
@@ -723,6 +723,9 @@ public class BasicConfig {
public
static
final
String
UPDATEREMARKNAME
=
HOST
+
"/kjy/mp/seller/customer/updateRemarkName"
;
public
static
final
String
GETCUSTAGANDMEMO
=
HOST
+
"/kjy/mp/seller/getCustomerTagAndMemoInfo"
;
public
static
final
String
UPDATETAGANDMEMO
=
HOST
+
"/kjy/mp/seller/updateTagAndMemoInfo"
;
public
static
final
String
CUSTMATERIALS
=
HOST
+
"/kjy/mp/whoSawMe/materials"
;
public
static
final
String
CUSTLOTTERIES
=
HOST
+
"/kjy/mp/whoSawMe/lotteries"
;
public
static
final
String
CUSTFAVORITE
=
HOST
+
"/kjy/mp/whoSawMe/custFavorite"
;
// *************** 标签管理 ***************
public
static
final
String
TAG_ADDORUPDATE
=
HOST
+
"/kjy/mp/sellerTag/addOrUpdateTag"
;
public
static
final
String
TAG_GETLIST
=
HOST
+
"/kjy/mp/sellerTag/getTagList"
;
...
...
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