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
eb80c1d7
Commit
eb80c1d7
authored
Sep 06, 2021
by
xiamengchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决tku失效报错问题
parent
2e62f6b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
+19
-16
SignRed.java
src/test/java/com/kjj/cases/assistant/homePage/SignRed.java
+19
-16
No files found.
src/test/java/com/kjj/cases/assistant/homePage/SignRed.java
View file @
eb80c1d7
...
...
@@ -71,7 +71,7 @@ public class SignRed implements Authorization {
Assert
.
assertTrue
(
attendAmount
>
0
,
network
.
message
(
ATTEND_open
,
"签到失败"
,
response
.
body
().
asString
()));
}
else
{
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assert
Tru
e
(
success
,
network
.
message
(
ATTEND_open
,
"重复签到成功"
,
response
.
body
().
asString
()));
Assert
.
assert
Fals
e
(
success
,
network
.
message
(
ATTEND_open
,
"重复签到成功"
,
response
.
body
().
asString
()));
}
}
...
...
@@ -86,20 +86,23 @@ public class SignRed implements Authorization {
@Test
(
description
=
"代理人账户明细"
,
priority
=
7
)
public
void
代理人账户明细
()
{
agentTku
();
Map
<
String
,
Object
>
Params
=
new
HashMap
<
String
,
Object
>();
Params
.
put
(
"type"
,
2
);
Params
.
put
(
"pageNo"
,
1
);
Params
.
put
(
"pageSize"
,
20
);
Response
response
=
network
.
getResponse
(
Params
,
PAY_accDetail
);
System
.
out
.
println
(
response
.
body
().
asString
());
int
changeType1
=
response
.
jsonPath
().
getInt
(
"data[0].changeType"
);
String
nickname
=
response
.
jsonPath
().
getString
(
"data[0].nickname"
);
int
bizType
=
response
.
jsonPath
().
getInt
(
"data[0].bizType"
);
String
changeMoney
=
response
.
jsonPath
().
getString
(
"data[0].changeMoney"
);
Assert
.
assertEquals
(
changeType1
,
2
,
network
.
message
(
PAY_accDetail
,
"收益明细类型错误"
,
response
.
body
().
asString
()));
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
()));
if
(!
todayAttendFlag
)
{
agentTku
();
Map
<
String
,
Object
>
Params
=
new
HashMap
<
String
,
Object
>();
Params
.
put
(
"type"
,
2
);
Params
.
put
(
"pageNo"
,
1
);
Params
.
put
(
"pageSize"
,
20
);
Response
response
=
network
.
getResponse
(
Params
,
PAY_accDetail
);
System
.
out
.
println
(
response
.
body
().
asString
());
int
changeType1
=
response
.
jsonPath
().
getInt
(
"data[0].changeType"
);
String
nickname
=
response
.
jsonPath
().
getString
(
"data[0].nickname"
);
int
bizType
=
response
.
jsonPath
().
getInt
(
"data[0].bizType"
);
String
changeMoney
=
response
.
jsonPath
().
getString
(
"data[0].changeMoney"
);
Assert
.
assertEquals
(
changeType1
,
2
,
network
.
message
(
PAY_accDetail
,
"收益明细类型错误"
,
response
.
body
().
asString
()));
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
()));
}
}
}
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