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
089fbef0
Commit
089fbef0
authored
Aug 07, 2019
by
吕雯燕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'duiba_wenyan'
parents
1e082cc2
6f3ce47f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
商品分组组件_DuibaTest.java
...st/java/http/cases/VisualEditorTest/商品分组组件_DuibaTest.java
+0
-0
商品组件_DuibaTest.java
...test/java/http/cases/VisualEditorTest/商品组件_DuibaTest.java
+0
-0
DevItemNewService.java
src/test/java/http/service/hd/DevItemNewService.java
+35
-0
No files found.
src/test/java/http/cases/VisualEditorTest/商品分组组件_DuibaTest.java
View file @
089fbef0
This diff is collapsed.
Click to expand it.
src/test/java/http/cases/VisualEditorTest/商品组件_DuibaTest.java
0 → 100644
View file @
089fbef0
This diff is collapsed.
Click to expand it.
src/test/java/http/service/hd/DevItemNewService.java
View file @
089fbef0
...
...
@@ -127,6 +127,41 @@ public class DevItemNewService {
}
//商品组件
public
Response
appItems
(
Map
cookies
,
String
appId
,
List
<
Integer
>
itemIdList
)
throws
Exception
{
String
url
=
hdserverHost
+
"/devItemNew/appItems"
;
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"status"
,
"on"
);
map
.
put
(
"pageSize"
,
"300"
);
map
.
put
(
"appId"
,
appId
);
map
.
put
(
"pageNo"
,
"1"
);
map
.
put
(
"itemIdList"
,
itemIdList
);
map
.
put
(
"sort"
,
"custom"
);
map
.
put
(
"soldOutType"
,
"show"
);
map
.
put
(
"forGoodsVisual"
,
"true"
);
logger
.
info
(
"请求商品组件接口:"
+
"/devItemNew/appItems"
);
Response
response
=
given
().
contentType
(
"application/json;charset=UTF-8"
).
cookies
(
cookies
).
params
(
map
).
get
(
"http://"
+
url
);
try
{
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"success"
),
"true"
);
}
catch
(
Exception
e
){
throw
new
Exception
(
"/devItemNew/appItems接口返回异常,返回信息:"
+
response
.
asString
());
}
catch
(
Error
er
){
throw
new
Exception
(
"/devItemNew/appItems接口返回异常,返回信息:"
+
response
.
asString
());
}
return
response
;
}
...
...
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