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

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

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