Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
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
马博
test-platform
Commits
a8cd26e8
Commit
a8cd26e8
authored
Nov 30, 2018
by
钱雯君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
ee25cb7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
pk_列表测试_AccessTest.java
src/test/java/http/cases/PkTest/pk_列表测试_AccessTest.java
+4
-0
No files found.
src/test/java/http/cases/PkTest/pk_列表测试_AccessTest.java
View file @
a8cd26e8
...
...
@@ -11,6 +11,7 @@ package http.cases.PkTest;
import
base.DuibaLog
;
import
base.DuibaTestBase
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
http.model.BetMobileVo
;
import
http.service.Activity.PkService
;
import
io.restassured.response.Response
;
...
...
@@ -61,8 +62,11 @@ public class pk_列表测试_AccessTest extends DuibaTestBase {
logger
.
info
(
"未参加过押注用户的列表数据校验成功,unbetList的信息为"
+
JSON
.
toJSONString
(
unbetList
));
Response
response_uid_18816
=
pkService
.
getBetList
(
uid_18816
);
logger
.
info
(
"response_uid_18816"
+
JSONObject
.
toJSONString
(
response_uid_18816
.
prettyPrint
()));
List
<
BetMobileVo
>
betedList_uid_18816
=
response_uid_18816
.
jsonPath
().
getList
(
"data.betedList"
,
BetMobileVo
.
class
);
logger
.
info
(
"betedList_uid_18816的信息为"
+
JSONObject
.
toJSONString
(
betedList_uid_18816
));
List
<
BetMobileVo
>
unbetList_uid_18816
=
response_uid_18816
.
jsonPath
().
getList
(
"data.unbetList"
,
BetMobileVo
.
class
);
logger
.
info
(
"unbetList_uid_188166的信息为"
+
JSONObject
.
toJSONString
(
unbetList_uid_18816
));
Assert
.
assertEquals
(
String
.
valueOf
(
unbetList_uid_18816
.
size
()),
"0"
,
"已投注的活动为0校验失败"
);
Assert
.
assertEquals
(
String
.
valueOf
(
betedList_uid_18816
.
size
()),
"0"
,
"未投注的活动为0校验失败"
);
logger
.
info
(
"没有添加pk楼层,用户的列表数据校验成功,均为空,betedList_uid_18816="
+
JSON
.
toJSONString
(
betedList_uid_18816
)+
"\nunbetList_uid_18816="
+
JSON
.
toJSONString
(
unbetList_uid_18816
));
...
...
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