Commit 64ee3705 authored by 张慧锋's avatar 张慧锋

修改接口

parent 636b2105
......@@ -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.cases.size()");
int count = response.jsonPath().getInt("data.sellerCases.size()");
Assert.assertEquals(count,3, network.message(params, SELLERCARD_SELLERCARDCASENEW,"服务案例-获取失败",response.body().asString()));
}
......
......@@ -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/sellerCardCasesNew";
public static final String SELLERCARD_SELLERCARDCASENEW = HOST + "/kjy/mp/sellerCardV5/sellerCardCasesList";
public static final String SELLERCARD_PRODUCTLIST = HOST + "/kjy/mp/sellerCardV5/productList";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment