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
72ca9215
Commit
72ca9215
authored
Mar 19, 2020
by
吕雯燕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'duiba_wenyan'
parents
ea531119
b19ba492
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
商品分组组件_DuibaTest.java
...st/java/http/cases/VisualEditorTest/商品分组组件_DuibaTest.java
+7
-6
商品组件_DuibaTest.java
...test/java/http/cases/VisualEditorTest/商品组件_DuibaTest.java
+1
-1
No files found.
src/test/java/http/cases/VisualEditorTest/商品分组组件_DuibaTest.java
View file @
72ca9215
...
...
@@ -157,13 +157,14 @@ public class 商品分组组件_DuibaTest extends DuibaTestBase {
switch
(
caseNum
){
case
1
:
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[0].title"
),
"Q币充值"
,
"校验第一个商品title失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[0].customCredits"
),
"700"
,
"校验第一个商品credits失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[0].smallImage"
),
"//yun.dui88.com/images/201610/9qawkmx7eh.jpg"
,
"校验第一个商品smallImage失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[0].title"
),
"【勿动】兑吧优惠券共享库存测试"
,
"校验第一个商品title失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[0].customCredits"
),
"140"
,
"校验第一个商品credits失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[0].smallImage"
),
"//yun.dui88.com/images/201807/79r9bwt2my.png"
,
"校验第二个商品smallImage失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[1].title"
),
"Q币充值"
,
"校验第二个商品title失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[1].customCredits"
),
"700"
,
"校验第二个商品credits失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[1].smallImage"
),
"//yun.dui88.com/images/201610/9qawkmx7eh.jpg"
,
"校验第一个商品smallImage失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[1].title"
),
"【勿动】兑吧优惠券共享库存测试"
,
"校验第二个商品title失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[1].customCredits"
),
"140"
,
"校验第二个商品credits失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[1].smallImage"
),
"//yun.dui88.com/images/201807/79r9bwt2my.png"
,
"校验第二个商品smallImage失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[2].title"
),
"【自动化勿动】兑吧实物日期兑换限制进行中"
,
"校验第三个商品title失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data.rows[2].customCredits"
),
"700"
,
"校验第三个商品credits失败"
);
...
...
src/test/java/http/cases/VisualEditorTest/商品组件_DuibaTest.java
View file @
72ca9215
...
...
@@ -230,7 +230,7 @@ public class 商品组件_DuibaTest extends DuibaTestBase{
@Test
(
description
=
"手机端商品组件老商品展示"
)
public
void
手机端商品组件老商品
()
throws
Exception
{
Map
cookies
=
authorization
.
dafuwengLogin
(
731
5
);
Map
cookies
=
authorization
.
dafuwengLogin
(
731
6
);
List
<
Integer
>
appItemIds
=
new
ArrayList
<>();
appItemIds
.
add
(
195485
);
appItemIds
.
add
(
191895
);
...
...
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