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
d1687df5
Commit
d1687df5
authored
Oct 26, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改签到领红包的金额校验,并增加支付中切换版本的还原
parent
f266c48d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
SignRed.java
src/test/java/com/kjj/cases/assistant/homePage/SignRed.java
+1
-1
Pay.java
src/test/java/com/kjj/cases/assistant/pay/Pay.java
+7
-1
No files found.
src/test/java/com/kjj/cases/assistant/homePage/SignRed.java
View file @
d1687df5
...
@@ -96,7 +96,7 @@ public class SignRed implements Authorization {
...
@@ -96,7 +96,7 @@ public class SignRed implements Authorization {
int
changeType
=
response
.
jsonPath
().
getInt
(
"data[0].changeType"
);
int
changeType
=
response
.
jsonPath
().
getInt
(
"data[0].changeType"
);
String
nickname
=
response
.
jsonPath
().
getString
(
"data[0].nickname"
);
String
nickname
=
response
.
jsonPath
().
getString
(
"data[0].nickname"
);
int
bizType
=
response
.
jsonPath
().
getInt
(
"data[0].bizType"
);
int
bizType
=
response
.
jsonPath
().
getInt
(
"data[0].bizType"
);
float
changeMoney
=
response
.
jsonPath
().
getFloat
(
"data[0].changeMoney"
);
double
changeMoney
=
response
.
jsonPath
().
getDouble
(
"data[0].changeMoney"
);
Assert
.
assertEquals
(
changeType
,
2
,
network
.
message
(
PAY_accDetail
,
"收益明细类型错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
changeType
,
2
,
network
.
message
(
PAY_accDetail
,
"收益明细类型错误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
nickname
,
"吉吉"
,
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
(
bizType
,
16
,
network
.
message
(
PAY_accDetail
,
"收益明细类型错误"
,
response
.
body
().
asString
()));
...
...
src/test/java/com/kjj/cases/assistant/pay/Pay.java
View file @
d1687df5
...
@@ -23,7 +23,6 @@ public class Pay implements Authorization {
...
@@ -23,7 +23,6 @@ public class Pay implements Authorization {
public
void
setUp
()
{
public
void
setUp
()
{
BaseUtils
.
ssoLogin
();
BaseUtils
.
ssoLogin
();
agentTku
();
agentTku
();
}
}
public
String
comboId
;
public
String
comboId
;
public
long
id
;
public
long
id
;
...
@@ -126,6 +125,13 @@ public class Pay implements Authorization {
...
@@ -126,6 +125,13 @@ public class Pay implements Authorization {
response
=
network
.
getResponse
(
params
,
version_info
);
response
=
network
.
getResponse
(
params
,
version_info
);
userVersion
=
response
.
jsonPath
().
getInt
(
"data.find {it.openType == 1}.userVersion"
);
// 找出开启状态的版本类型
userVersion
=
response
.
jsonPath
().
getInt
(
"data.find {it.openType == 1}.userVersion"
);
// 找出开启状态的版本类型
Assert
.
assertEquals
(
userVersion
,
changeVersion
,
network
.
message
(
params
,
version_info
,
"会员类型版本判断:判断错误,此版本为尊享版"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
userVersion
,
changeVersion
,
network
.
message
(
params
,
version_info
,
"会员类型版本判断:判断错误,此版本为尊享版"
,
response
.
body
().
asString
()));
if
(
userVersion
==
1
){
//切换回保险专用版
versionParams
.
put
(
"targetVersion"
,
2
);
response
=
network
.
postResponse
(
versionParams
,
PAY_exchange
);
result
=
response
.
jsonPath
().
getString
(
"desc"
);
Assert
.
assertEquals
(
result
,
"OK"
,
network
.
message
(
versionParams
,
PAY_exchange
,
"会员类型切换:切换失败"
,
response
.
body
().
asString
()));
//判断返回的微信调起参数中appId是否正确
}
}
}
...
...
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