Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-sportstest
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-sportstest
Commits
09855c88
Commit
09855c88
authored
Oct 29, 2024
by
DuJunLi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加注释
parent
a507bc1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/xiaomai/cases/polar/membercluster/TestEditMemberCluster.java
+2
-2
No files found.
src/main/java/com/xiaomai/cases/polar/membercluster/TestEditMemberCluster.java
View file @
09855c88
...
...
@@ -76,7 +76,7 @@ public class TestEditMemberCluster extends BaseTestImpl {
ruleTypeDeposit
.
put
(
"tags"
,
null
);
ruleList
.
add
(
ruleTypeDeposit
);
clusterId
=
memberClusterTools
.
createMemberCluster
(
name
,
""
,
"YES"
,
ruleList
);
//
4
.查看列表,check是否包含刚创建的人群
//
1.3
.查看列表,check是否包含刚创建的人群
memberClusterTools
.
getMemberClusterList
();
Assert
.
assertTrue
(
XMJSONPath
.
getJSONArrayByReadPath
(
dataApi
.
getApi_response
(),
"$.result"
)
.
toJavaList
(
JSONObject
.
class
).
stream
()
...
...
@@ -107,7 +107,7 @@ public class TestEditMemberCluster extends BaseTestImpl {
Assert
.
assertEquals
(
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.result.displayRuleList"
),
"会员卡课程剩余次数60~62次、储值卡剩余金额900~999元"
);
Assert
.
assertTrue
(
XMJSONPath
.
getJSONArrayByReadPath
(
dataApi
.
getApi_response
(),
"$.result.ruleList"
).
size
()
==
2
,
"编辑后人群定义规则不是剩余2个,请检查"
);
//3.操作定向运营
//3.操作定向运营
(刚创建的人群未操作更新时,操作定向运营时接口也要拦截check)
memberClusterTools
.
batchMessagePushForMemberCluster
(
clusterId
,
"WECHAT_MEMBER_CARD"
);
Assert
.
assertTrue
(
Boolean
.
valueOf
(
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.success"
))
==
false
,
"调用接口返回结果:"
+
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.message"
));
Assert
.
assertTrue
(
"分群数据尚未收集,请先更新分群数据后再操作"
.
equals
(
XMJSONPath
.
readPath
(
dataApi
.
getApi_response
(),
"$.message"
)),
"还没更新人数,人群数量为0,所以操作定向运营要拦截下,目前接口返回数据不是这个请检查"
);
...
...
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