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
bdb20325
Commit
bdb20325
authored
Jul 10, 2020
by
Su-Yi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新用户初始版本类型判断
parent
dacdf1c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Pay.java
src/test/java/com/kjj/qa/cases/Pay.java
+2
-2
BasicConfig.java
src/test/java/com/kjj/qa/config/BasicConfig.java
+1
-1
ManagerUtil.class
target/test-classes/com/kjj/qa/utils/ManagerUtil.class
+0
-0
No files found.
src/test/java/com/kjj/qa/cases/Pay.java
View file @
bdb20325
...
@@ -44,8 +44,8 @@ public class Pay {
...
@@ -44,8 +44,8 @@ public class Pay {
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
params
.
put
(
"t"
,
System
.
currentTimeMillis
());
params
.
put
(
"t"
,
System
.
currentTimeMillis
());
Response
userVersionResponse
=
network
.
getResponse
(
params
,
VERSION_INFO
);
Response
userVersionResponse
=
network
.
getResponse
(
params
,
VERSION_INFO
);
int
userVersion
=
userVersionResponse
.
jsonPath
().
getInt
(
"data.find {it.openType == 1}.userVersion"
);
// 找出开启状态的版本类型
int
userVersion
=
userVersionResponse
.
jsonPath
().
getInt
(
"data.find {it.openType == 1}.userVersion"
);
// 找出开启状态的版本类型
1为通用版 2为保险版
Assert
.
assertEquals
(
userVersion
,
1
,
network
.
message
(
params
,
VERSION_INFO
,
"会员类型版本判断:判断错误,此版本为保险
版"
));
Assert
.
assertEquals
(
userVersion
,
2
,
network
.
message
(
params
,
VERSION_INFO
,
"会员类型版本判断:判断错误,此版本为通用
版"
));
//获取当前用户可用优惠码
//获取当前用户可用优惠码
...
...
src/test/java/com/kjj/qa/config/BasicConfig.java
View file @
bdb20325
...
@@ -10,7 +10,7 @@ public class BasicConfig {
...
@@ -10,7 +10,7 @@ public class BasicConfig {
// 用户微信昵称
// 用户微信昵称
public
static
final
String
WECHAT_NAME
=
"小疙瘩人寿"
;
//true
public
static
final
String
WECHAT_NAME
=
"小疙瘩人寿"
;
//true
// 用户tku
// 用户tku
public
static
final
String
AGENT_TKU
=
"T3gM31f18jAW2P
Scaq7Edra6rFP5FE6WMtZrKENQvLdKbz9Cxco2e4TVfPxEcGcN8MSWsy8UNryACCxNq9
"
;
public
static
final
String
AGENT_TKU
=
"T3gM31f18jAW2P
TGsthhWy3GVyEvgHADPdp3Pgnogte2iQPRjjKaxDi1cpW9QUKkoEhtoj4WmshTGdbPym
"
;
// *************** 钉钉机器人 ***************
// *************** 钉钉机器人 ***************
// 线上-告警群
// 线上-告警群
...
...
target/test-classes/com/kjj/qa/utils/ManagerUtil.class
View file @
bdb20325
No preview for this file type
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