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

Merge branch 'Feature/202111101-gxh' into 'master'

Feature/202111101 gxh

See merge request test-group/kejiji!158
parents f35171ef d54fc86f
......@@ -65,10 +65,13 @@ public class PersonCard implements Authorization {
boolean success = response.jsonPath().getBoolean("success");
Object data = response.jsonPath().getJsonObject("data");
WechatCard card = JsonUtil.parseResponseToBean(response,WechatCard.class);
System.out.println(response.body().asString());
String screenshotUrl= response.jsonPath().getString("data.screenshotUrl");
String avatar= response.jsonPath().getString("data.screenshotUrl");
scid = response.jsonPath().getString("data.scid");
Assert.assertTrue(success,network.message(SELLERCARD_topOfDetail,"接口返回失败状态",response.body().asString()));
Assert.assertNotNull(data,network.message(SELLERCARD_topOfDetail,"返回数据为空",response.body().asString()));
Assert.assertNotNull(screenshotUrl,network.message(SELLERCARD_topOfDetail,"返回数据为空",response.body().asString()));
Assert.assertNotNull(avatar,network.message(SELLERCARD_topOfDetail,"返回数据为空",response.body().asString()));
Assert.assertEquals(card.getSellerName(),"吉吉",network.message(SELLERCARD_topOfDetail,"名片信息错误",response.body().asString()));
Assert.assertEquals(card.getJobPost(),"嘿嘿嘿",network.message(SELLERCARD_topOfDetail,"名片信息错误",response.body().asString()));
Assert.assertEquals(card.getPhoneNumber(),"13012341234",network.message(SELLERCARD_topOfDetail,"名片信息错误",response.body().asString()));
......
......@@ -52,7 +52,7 @@ public class Cashback implements Authorization {
comboId=actualPayMoneyResponse.jsonPath().getString("data[0].id");
Assert.assertNotNull(comboId,network.message(PAY_combo,"套餐ID为null",actualPayMoneyResponse.body().asString()));
String actualPayMoney = actualPayMoneyResponse.jsonPath().getString("data[0].actualPayMoney");
Assert.assertEquals(actualPayMoney,"365",network.message(PAY_combo,"获取付费价格:价格不是365",actualPayMoneyResponse.body().asString()));
Assert.assertEquals(actualPayMoney,"0.01",network.message(PAY_combo,"获取付费价格:价格不是365",actualPayMoneyResponse.body().asString()));
//创建支付
Map<String, Object> payParams = new HashMap<String, Object>();
......
......@@ -54,7 +54,7 @@ public class Pay implements Authorization {
comboId=actualPayMoneyResponse.jsonPath().getString("data[0].id");
Assert.assertNotNull(comboId,network.message(PAY_combo,"套餐ID为null",actualPayMoneyResponse.body().asString()));
String actualPayMoney = actualPayMoneyResponse.jsonPath().getString("data[0].actualPayMoney");
Assert.assertEquals(actualPayMoney,"365",network.message(PAY_combo,"获取付费价格:价格不是365",actualPayMoneyResponse.body().asString()));
Assert.assertEquals(actualPayMoney,"0.01",network.message(PAY_combo,"获取付费价格:价格不是365",actualPayMoneyResponse.body().asString()));
}
......
......@@ -277,10 +277,5 @@
<class name="com.kjj.cases.live.treasure.GoldenEgg" />
</classes>
</test>
<test preserve-order="true" name="企业后台后台配置">
<classes>
<class name="com.kjj.cases.live.Corp.ManageCorp" />
</classes>
</test>
</suite>
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