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
dfb20ed6
Commit
dfb20ed6
authored
Jan 20, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除留言功能
parent
024e5f1b
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
199 deletions
+3
-199
ArticalPersonCard.java
.../java/com/kjj/cases/assistant/card/ArticalPersonCard.java
+0
-10
RecommendMaterial.java
...a/com/kjj/cases/assistant/homePage/RecommendMaterial.java
+0
-18
GreetingCrad.java
...ava/com/kjj/cases/assistant/markettools/GreetingCrad.java
+2
-4
Pay.java
src/test/java/com/kjj/cases/assistant/pay/Pay.java
+1
-1
MyCustomer.java
...est/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
+0
-166
No files found.
src/test/java/com/kjj/cases/assistant/card/ArticalPersonCard.java
View file @
dfb20ed6
...
...
@@ -302,14 +302,4 @@ public class ArticalPersonCard implements Authorization {
Assert
.
assertNotNull
(
riskScid
,
network
.
message
(
params
,
ARTICLE_ISDISPLAYACTIVITY
,
"互动区-风险评测内容有误"
,
response
.
body
().
asString
()));
}
// 获取代理人个人专栏
@Test
(
description
=
"访客_查询是否存在未读消息"
,
priority
=
16
)
public
void
访客
_
查询是否存在未读消息
()
throws
IOException
{
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
params
.
put
(
"scid"
,
scid
);
params
.
put
(
"t"
,
System
.
currentTimeMillis
());
Response
response
=
network
.
getResponse
(
params
,
CHECKUNREAD
);
String
desc
=
response
.
jsonPath
().
getString
(
"desc"
);
Assert
.
assertEquals
(
desc
,
"OK"
,
network
.
message
(
params
,
CHECKUNREAD
,
"访客-获取私信有误"
,
response
.
body
().
asString
()));
}
}
src/test/java/com/kjj/cases/assistant/homePage/RecommendMaterial.java
View file @
dfb20ed6
...
...
@@ -81,13 +81,6 @@ public class RecommendMaterial implements Authorization {
Response
response
=
network
.
getResponse
(
params
,
FORWARD
);
Boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
FORWARD
,
"种草文章转发失败"
,
response
.
body
().
asString
()));
//个人中心——历史分享
Map
<
String
,
Object
>
paramsHistory
=
new
HashMap
<>();
paramsHistory
.
put
(
"sellerId"
,
2991
);
//吉吉的销售员id
Response
historyRes
=
network
.
getResponse
(
paramsHistory
,
HOME_sellerContentHistory
);
Object
list
=
historyRes
.
jsonPath
().
getJsonObject
(
"data.list.get(0).scId"
);
Assert
.
assertEquals
(
list
,
scid
,
network
.
message
(
paramsHistory
,
HOME_sellerContentHistory
,
"获取历史分享失败"
,
historyRes
.
body
().
asString
()));
}
...
...
@@ -387,15 +380,4 @@ public class RecommendMaterial implements Authorization {
//tku 切换为访客的
network
.
agentCookies
.
put
(
TKU_COOKIE_NAME
,
VISITOR_TKU
);
}
// 获取代理人个人专栏
@Test
(
description
=
"访客_获取代理人私信"
,
priority
=
25
)
public
void
访客
_
获取代理人私信
()
{
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
params
.
put
(
"scid"
,
scid
);
params
.
put
(
"t"
,
System
.
currentTimeMillis
());
Response
response
=
network
.
getResponse
(
params
,
CHECKUNREAD
);
String
desc
=
response
.
jsonPath
().
getString
(
"desc"
);
Assert
.
assertEquals
(
desc
,
"OK"
,
network
.
message
(
params
,
CHECKUNREAD
,
"访客-获取私信有误"
,
response
.
body
().
asString
()));
}
}
\ No newline at end of file
src/test/java/com/kjj/cases/assistant/markettools/GreetingCrad.java
View file @
dfb20ed6
...
...
@@ -551,14 +551,12 @@ public class GreetingCrad implements Authorization{
params
.
put
(
"scid"
,
scid
);
params
.
put
(
"confId"
,
confId
);
Response
response
=
network
.
postResponse
(
params
,
GREETING_open
);
System
.
out
.
println
(
GREETING_open
+
"\n"
+
response
.
body
().
asString
());
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assertFalse
(
success
,
network
.
message
(
params
,
GREETING_open
,
"接口返回失败"
,
response
.
body
().
asString
()));
sleep
(
2
000
);
sleep
(
3
000
);
//获取拆红包结果
response
=
network
.
postResponse
(
params
,
GREETING_openResult
);
System
.
out
.
println
(
GREETING_openResult
+
"\n"
+
response
.
body
().
asString
());
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Object
result
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
GREETING_openResult
,
"接口返回失败"
,
response
.
body
().
asString
()));
...
...
@@ -566,7 +564,7 @@ public class GreetingCrad implements Authorization{
int
redPacketState
=
response
.
jsonPath
().
getInt
(
"data.redPacketState"
);
int
receivedAmount
=
response
.
jsonPath
().
getInt
(
"data.receivedAmount"
);
Assert
.
assertEquals
(
redPacketState
,
2
,
network
.
message
(
params
,
GREETING_openResult
,
"红包领取失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
redPacketState
,
3
,
network
.
message
(
params
,
GREETING_openResult
,
"红包领取失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
receivedAmount
,
0
,
network
.
message
(
params
,
GREETING_openResult
,
"红包领取金额错误"
,
response
.
body
().
asString
()));
}
...
...
src/test/java/com/kjj/cases/assistant/pay/Pay.java
View file @
dfb20ed6
...
...
@@ -128,7 +128,7 @@ public class Pay implements Authorization {
@Test
(
description
=
"优惠券_优惠码绑定"
,
priority
=
10
)
public
void
优惠券
_
优惠码绑定
()
{
userTku3
();
//
吉吉
切换非会员
//切换非会员
updateTypeOrDate
(
207
,
false
);
//绑定优惠码
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
...
...
src/test/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
View file @
dfb20ed6
This diff is collapsed.
Click to expand it.
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