Commit fccdce50 authored by 龚小红's avatar 龚小红

增加了我的名片基本信息、服务案例、精选产品的测试用例

parent 1e1a4e4d
package com.kjj.bean.card;
import lombok.Data;
@Data
public class GoodMajor {
String code;
String desc;
boolean choose;
String type;
}
package com.kjj.bean.card;
import lombok.Data;
@Data
public class WechatCard {
String avatar;
String address;
String addressLocation;
int avatarStyle;
String backgroundAvatar;
String backgroundAvatarThumbnail;
int companyId;
String companyName;
String companyLogo;
String jobPost;
String normalAvatar;
String normalAvatarThumbnail;
String parentCompanyName;
String professionalAvatar;
String professionalAvatarThumbnail;
String phoneNumber;
String screenshotUrl;
String sellerName;
String s_cid;
String sellerId;
String wechatNumber;
String wechatQrCode;
int userVersion;
boolean self;
boolean vip;
int tradeType;
}
This diff is collapsed.
......@@ -146,7 +146,7 @@ public class Treasure implements Authorization {
Assert.assertNotNull(data, network.message(simpleParam, BasicConfig.MOBILE_simple, "未登录查询分享人头像昵称失败", response.body().asString()));
}
@Test(description = "已登录查询分享人头像昵称", priority = 10)
@Test(description = "已登录查询助力信息", priority = 10)
public void 已登录查询分享人头像昵称() {
visitorAuth2();
Map<String, Object> infoParam = new HashMap<>();
......
......@@ -573,6 +573,15 @@ public class BasicConfig {
public static final String SELLERCARD_GETSELLERCARDSTYLE = HOST + "/kjy/mp/sellerConfig/getSellerCardStyle";
public static final String SELLERCARD_TOPOFCONTENT = HOST + "/kjy/mp/sellerCardV5/topOfContent";
public static final String SELLERCARD_BOTTOMOFCONTENT = HOST + "/kjy/mp/sellerCardV5/bottomOfContent";
public static final String SELLERCARD_GETPERSONINTROTEMPLATE = HOST + "/kjy/mp/sellerCardV5/getPersonalIntroTemplate";
public static final String SELLERCARD_UPDATESPLENDINGIMAGE = HOST + "/kjy/mp/sellerCard/updateSplendidImage";
public static final String SELLERCARD_GETSPLENDINGIMAGE = HOST + "/kjy/mp/sellerCard/getSellerSplendidImage";
public static final String SELLERCARD_EDITDELLERCASE = HOST + "/kjy/mp/sellerCard/editSellerCase";
public static final String SELLERCARD_UPDATESHOWSTATUSFORCASE = HOST + "/kjy/mp/sellerCardV5/updateShowStatusForCase";
public static final String SELLERCARD_DELETESELLERCASE = HOST + "/kjy/mp/sellerCard/deleteSellerCase";
public static final String SELLERCARD_ADDORUPDATEPRODUCT = HOST + "/kjy/mp/sellerCardV5/addOrUpdateProduct";
public static final String SELLERCARD_UPDATESHOWSTATUSFORPRODUCT = HOST + "/kjy/mp/sellerCardV5/updateShowStatusForProduct";
public static final String SELLERCARD_DELETEPRODUCT = HOST + "/kjy/mp/sellerCardV5/deleteProduct";
......
......@@ -73,4 +73,9 @@ public class JsonUtil {
return JSON.parseArray(str, tClass);
}
public static <T> List<T> parseResponsePathToListBean(Response response, String path,Class<T> tClass){
Object data = response.jsonPath().getJsonObject(path);
String str = new JsonBuilder(data).toString();
return JSON.parseArray(str, tClass);
}
}
......@@ -51,6 +51,11 @@
<class name="com.kjj.cases.basics.GreetingCard"/>
</classes>
</test>
<test preserve-order="true" name="名片">
<classes>
<class name="com.kjj.cases.basics.card.PersonCard"/>
</classes>
</test>
<test preserve-order="true" name = "种草素材">
<classes>
<class name="com.kjj.cases.assistant.RecommendMaterial"/>
......
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