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
ccb6e6ef
Commit
ccb6e6ef
authored
Sep 09, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还原顶部名片的用例
parent
c21c9820
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
SignRed.java
src/test/java/com/kjj/cases/assistant/homePage/SignRed.java
+2
-0
PersonalCenter.java
...est/java/com/kjj/cases/assistant/menu/PersonalCenter.java
+18
-3
No files found.
src/test/java/com/kjj/cases/assistant/homePage/SignRed.java
View file @
ccb6e6ef
...
...
@@ -102,6 +102,8 @@ public class SignRed implements Authorization {
Assert
.
assertEquals
(
nickname
,
"吉吉"
,
network
.
message
(
PAY_accDetail
,
"签到用户名称错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
bizType
,
16
,
network
.
message
(
PAY_accDetail
,
"收益明细类型错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
changeMoney
,
String
.
format
(
"%.2f"
,
attendAmount
/
100
),
network
.
message
(
PAY_accDetail
,
"收益金额错误"
,
response
.
body
().
asString
()));
}
else
{
System
.
out
.
println
(
"代理人今日已签到"
);
}
}
...
...
src/test/java/com/kjj/cases/assistant/menu/PersonalCenter.java
View file @
ccb6e6ef
...
...
@@ -264,7 +264,14 @@ public class PersonalCenter implements Authorization{
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
SELLERCONFIG_EDITCONFIG
,
"接口返回失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
SELLERCONFIG_EDITCONFIG
,
"关闭底部名片"
,
response
.
body
().
asString
()));
//娇艳是否关闭成功
params
.
put
(
"configKey"
,
"card_show_on_top"
);
response
=
network
.
postResponse
(
params
,
SELLERCONFIG_EDITCONFIG
);
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
SELLERCONFIG_EDITCONFIG
,
"接口返回失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
SELLERCONFIG_EDITCONFIG
,
"关闭底部名片"
,
response
.
body
().
asString
()));
//校验是否关闭成功
response
=
network
.
getResponse
(
SELLERCARD_GETSELLERCARDCONFIG
);
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Object
result
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
...
...
@@ -273,7 +280,7 @@ public class PersonalCenter implements Authorization{
int
size
=
response
.
jsonPath
().
getInt
(
"data.findAll{it.val == false}.size()"
);
System
.
out
.
println
(
"size:"
+
size
);
Assert
.
assertTrue
(
size
==
1
,
network
.
message
(
SELLERCARD_GETSELLERCARDCONFIG
,
"接口返回失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
size
==
2
,
network
.
message
(
SELLERCARD_GETSELLERCARDCONFIG
,
"接口返回失败"
,
response
.
body
().
asString
()));
//开启向客户展示底部和顶部名片
params
.
clear
();
...
...
@@ -286,6 +293,14 @@ public class PersonalCenter implements Authorization{
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
SELLERCONFIG_EDITCONFIG
,
"接口返回失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
SELLERCONFIG_EDITCONFIG
,
"返回数据为空"
,
response
.
body
().
asString
()));
params
.
put
(
"configKey"
,
"card_show_on_top"
);
response
=
network
.
postResponse
(
params
,
SELLERCONFIG_EDITCONFIG
);
System
.
out
.
println
(
response
.
body
().
asString
());
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
SELLERCONFIG_EDITCONFIG
,
"接口返回失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
SELLERCONFIG_EDITCONFIG
,
"返回数据为空"
,
response
.
body
().
asString
()));
response
=
network
.
getResponse
(
SELLERCARD_GETSELLERCARDCONFIG
);
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
result
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
...
...
@@ -293,7 +308,7 @@ public class PersonalCenter implements Authorization{
Assert
.
assertNotNull
(
result
,
network
.
message
(
params
,
SELLERCARD_GETSELLERCARDCONFIG
,
"配置列表为空"
,
response
.
body
().
asString
()));
size
=
response
.
jsonPath
().
getInt
(
"data.findAll{it.val == true}.size()"
);
Assert
.
assertTrue
(
size
==
1
,
network
.
message
(
USINGSTRATAGY_index
,
"接口返回失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
size
==
2
,
network
.
message
(
USINGSTRATAGY_index
,
"接口返回失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"关闭理财类互动区展示设置"
,
priority
=
10
)
...
...
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