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
c0386077
Commit
c0386077
authored
Sep 05, 2020
by
张震
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20200905-fix' into 'master'
修改接口 See merge request test-group/kejiji!23
parents
636b2105
64ee3705
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
SellerCard.java
src/test/java/com/kjj/qa/cases/SellerCard.java
+18
-4
BasicConfig.java
src/test/java/com/kjj/qa/config/BasicConfig.java
+1
-1
No files found.
src/test/java/com/kjj/qa/cases/SellerCard.java
View file @
c0386077
...
...
@@ -2,17 +2,31 @@ package com.kjj.qa.cases;
import
com.kjj.qa.utils.NetworkUtils
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.*;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.annotations.*
;
import
org.testng.annotations.AfterClass
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
java.io.IOException
;
import
java.util.HashMap
;
import
java.util.Map
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
ISVIPSUBSCRIBE
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_APPRAISELISTNEW
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_COMPANYLIST
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_EDITBASEINFO
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_EDITMAJORGOODAUTH
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_GETQUESTIONS
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_ISDISPLAYACTIVITY
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_PERSONALPROFILE
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_PRODUCTLIST
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_SELLERCARDCASENEW
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_TOPOFDETAIL
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
VERSION_INFO
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
WECHAT_NAME
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
apiCount
;
public
class
SellerCard
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
...
...
@@ -177,7 +191,7 @@ public class SellerCard {
params
.
put
(
"scid"
,
scid
);
params
.
put
(
"pageSize"
,
4
);
Response
response
=
network
.
getResponse
(
params
,
SELLERCARD_SELLERCARDCASENEW
);
int
count
=
response
.
jsonPath
().
getInt
(
"data.
c
ases.size()"
);
int
count
=
response
.
jsonPath
().
getInt
(
"data.
sellerC
ases.size()"
);
Assert
.
assertEquals
(
count
,
3
,
network
.
message
(
params
,
SELLERCARD_SELLERCARDCASENEW
,
"服务案例-获取失败"
,
response
.
body
().
asString
()));
}
...
...
src/test/java/com/kjj/qa/config/BasicConfig.java
View file @
c0386077
...
...
@@ -110,7 +110,7 @@ public class BasicConfig {
public
static
final
String
SELLERCARD_COMPANYLIST
=
HOST
+
"/kjy/mp/company/list"
;
public
static
final
String
SELLERCARD_SELLERCARDCASENEW
=
HOST
+
"/kjy/mp/sellerCardV5/sellerCardCases
New
"
;
public
static
final
String
SELLERCARD_SELLERCARDCASENEW
=
HOST
+
"/kjy/mp/sellerCardV5/sellerCardCases
List
"
;
public
static
final
String
SELLERCARD_PRODUCTLIST
=
HOST
+
"/kjy/mp/sellerCardV5/productList"
;
...
...
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