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
8513e21f
Commit
8513e21f
authored
Mar 10, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加客户资料配置的测试用例
parent
1609e2b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
CheckTask.java
src/test/java/com/oto/cases/otoseller/CheckTask.java
+7
-2
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+1
-1
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+6
-5
No files found.
src/test/java/com/oto/cases/otoseller/CheckTask.java
View file @
8513e21f
...
...
@@ -742,8 +742,13 @@ public class CheckTask implements Authorization {
params
.
put
(
"id"
,
kycId
);
params
.
put
(
"isQualified"
,
isQualified
);
// 0不合格 1合格
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_scheme_qualified
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertEquals
(
data
,
result
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_qualified
,
"标记KYC结果非"
+
result
,
response
.
body
().
asString
()));
if
(
result
)
{
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertEquals
(
data
,
result
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_qualified
,
"标记KYC结果非"
+
result
,
response
.
body
().
asString
()));
}
else
{
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Assert
.
assertEquals
(
success
,
result
,
network
.
message
(
params
,
BasicConfig
.
WORK_scheme_qualified
,
"标记KYC结果非"
+
result
,
response
.
body
().
asString
()));
}
}
public
static
void
getSchemeNum
(
int
kycNum
,
int
schemeNum
,
int
commitPlanNum
,
Object
hasQualifiedKyc
){
...
...
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
8513e21f
...
...
@@ -721,7 +721,7 @@ public class Phone implements Authorization {
@Test
(
description
=
"方案讲解历史更新"
,
priority
=
67
)
public
void
方案讲解历史更新
(){
getSchemeNum
(
3
,
2
,
2
,
tru
e
);
getSchemeNum
(
3
,
2
,
2
,
fals
e
);
getSchemeList
(
3
,
2
,
0
);
}
...
...
src/test/java/com/oto/cases/otoseller/Work.java
View file @
8513e21f
...
...
@@ -444,14 +444,15 @@ public class Work implements Authorization {
@Test
(
description
=
"修改客户个人信息"
,
priority
=
31
)
public
void
修改客户个人信息
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
long
birthday
=
System
.
currentTimeMillis
()-
86400000
;
long
now
=
System
.
currentTimeMillis
();
long
tomorrow
=
now
-(
now
+
8
*
3600
*
1000
)
%
(
60
*
60
*
24
*
1000
)
+
86400000
;
params
.
put
(
"custId"
,
cust_id
);
params
.
put
(
"birthdayTime"
,
System
.
currentTimeMillis
()-
86400000
);
params
.
put
(
"birthdayTime"
,
tomorrow
);
params
.
put
(
"custAddress"
,
"老的客户住址"
);
params
.
put
(
"custGender"
,
1
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_updateInfo
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.liveDynamicListVoList.size()
"
);
Assert
.
assert
Equals
(
size
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateInfo
,
"直播动态错误
"
,
response
.
body
().
asString
()));
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data
"
);
Assert
.
assert
True
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_updateInfo
,
"修改个人信息失败
"
,
response
.
body
().
asString
()));
params
.
clear
();
params
.
put
(
"custId"
,
cust_id
);
...
...
@@ -461,7 +462,7 @@ public class Work implements Authorization {
String
custAddress
=
response
.
jsonPath
().
getString
(
"data.custAddress"
);
int
age
=
response
.
jsonPath
().
getInt
(
"data.age"
);
int
custGender
=
response
.
jsonPath
().
getInt
(
"data.custGender"
);
Assert
.
assertEquals
(
birthdayTime
,
birthday
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"出生年月日更新失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
birthdayTime
,
tomorrow
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"出生年月日更新失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
age
,
0
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"年纪更新失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custAddress
,
"老的客户住址"
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"家庭住址更新失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
custGender
,
1
,
network
.
message
(
params
,
BasicConfig
.
WORK_header
,
"性别更新失败"
,
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