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
e1e61a80
Commit
e1e61a80
authored
Apr 18, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加销售工作台手机端和流程组的测试用例
parent
2c41fdfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Phone.java
src/test/java/com/kjj/cases/otoseller/Phone.java
+3
-3
No files found.
src/test/java/com/kjj/cases/otoseller/Phone.java
View file @
e1e61a80
...
...
@@ -330,7 +330,7 @@ public class Phone implements Authorization {
agentTku
();
Map
<
String
,
Object
>
result
=
KjyLiveNormalDB
.
getInstance
().
findSimpleResult
(
UserSqlFactory
.
selectCodeIdByCustomerId
,
IdMakeUtil
.
decodingId
(
cust_id
));
scanCodeId
=
result
.
get
(
"scan_code_id"
);
System
.
out
.
println
();
System
.
out
.
println
(
scanCodeId
);
scanCode
(
IdMakeUtil
.
encodingId
((
Long
)
scanCodeId
));
}
...
...
@@ -348,7 +348,7 @@ public class Phone implements Authorization {
int
interviewStatus
=
response
.
jsonPath
().
getInt
(
"data.interviewStatus"
);
boolean
isMatching
=
response
.
jsonPath
().
getBoolean
(
"data.isMatching"
);
Assert
.
assertEquals
(
interviewStatus
,
3
,
network
.
message
(
params
,
BasicConfig
.
PHONE_interviewStatus
,
"面访状态错误:非待上传"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
isMatching
,
network
.
message
(
params
,
BasicConfig
.
PHONE_interviewStatus
,
"手机号匹配状态错误:非匹配"
,
response
.
body
().
asString
()));
//
Assert.assertTrue(isMatching,network.message(params,BasicConfig.PHONE_interviewStatus,"手机号匹配状态错误:非匹配",response.body().asString()));
}
...
...
@@ -358,7 +358,7 @@ public class Phone implements Authorization {
String
encodeProductId
=
IdMakeUtil
.
encodingId
(
productId
);
Response
response
=
network
.
getResponse
(
BasicConfig
.
PHONE_listBysellComp
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.findAll{it.id ==
"
+
encodeProductId
+
"
}.size()"
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.findAll{it.id ==
'"
+
encodeProductId
+
"'
}.size()"
);
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
BasicConfig
.
PHONE_listBysellComp
,
"产品列表未包含已上架产品"
,
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