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

增加了我的名片、文章中名片的测试用例

parent cfd1a190
......@@ -8,26 +8,9 @@ public class WechatCard {
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;
}
......@@ -101,6 +101,7 @@ public class ArticalPersonCard implements Authorization {
@Test(description="代理人_头部名片详情",priority = 7)
public void 代理人_头部名片详情(){
//获取加密的销售ID
sleep(1000);
Response response = network.getResponse(USER_INFO);
sid = response.jsonPath().getString("data.encodeSellerId");
String sellerName = response.jsonPath().getString("data.sellerName");
......@@ -253,6 +254,7 @@ public class ArticalPersonCard implements Authorization {
params.put("scId",scId);
response = network.getResponse(params,HASALREADYLIKE);
int favourTimesNew = response.jsonPath().getInt("data.favourTimes");
favourResult = response.jsonPath().getBoolean("data.favourResult");
System.out.println(params);
System.out.println(response.body().asString());
Assert.assertTrue(favourResult,network.message(params,HASALREADYLIKE ,"接口返回失败",response.body().asString()));
......
......@@ -842,6 +842,7 @@ public class PersonCard implements Authorization {
@Test(description = "获取代理人名片详情", priority = 37) //priorty 方法执行优先级
public void 获取代理人名片详情() {
sleep(1000);
Response response = network.getResponse(SELLERCARD_READDETAIL);
boolean success = response.jsonPath().getBoolean("success");
Object data = response.jsonPath().getJsonObject("data");
......
......@@ -16,21 +16,11 @@
<class name="com.kjj.cases.basics.Pay"/>
</classes>
</test>
<!-- <test preserve-order="true" name="名片">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.basics.SellerCard"/>-->
<!-- </classes>-->
<!-- </test>-->
<test preserve-order="true" name="上传">
<classes>
<class name="com.kjj.cases.basics.Upload"/>
</classes>
</test>
<!-- <test preserve-order="true" name="文章">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.basics.Article"/>-->
<!-- </classes>-->
<!-- </test>-->
<test preserve-order="true" name="发圈">
<classes>
<class name="com.kjj.cases.basics.CircleFriends"/>
......
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