Commit 6d5e9d0a authored by 龚小红's avatar 龚小红

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

增加客户告知书管理的自动化测试接口

See merge request !7
parents 6d4b8c46 b223e9a3
......@@ -428,11 +428,9 @@ public class Manager {
params.put("encryptId", encryptId);
Response response = network.getResponse(params, BasicConfig.PHONE_notification_getDetail);
String supplierName = response.jsonPath().getString("data.supplierName");
String insureOrder = response.jsonPath().getString("data.insureOrder");
String custName = response.jsonPath().getString("data.custName");
String sellerName = response.jsonPath().getString("data.sellerName");
Assert.assertNotNull(supplierName,network.message(BasicConfig.PHONE_notification_getDetail,"告知书的供应商为空",response.body().asString()));
Assert.assertEquals(insureOrder,insureOrderstr,network.message(BasicConfig.PHONE_notification_getDetail,"告知书的投保单号错误",response.body().asString()));
Assert.assertEquals(custName,"自动化告知书客户",network.message(BasicConfig.PHONE_notification_getDetail,"告知书的客户名字错误",response.body().asString()));
Assert.assertEquals(sellerName,"自动化告知书销售",network.message(BasicConfig.PHONE_notification_getDetail,"告知书的销售名字错误",response.body().asString()));
}
......
......@@ -539,7 +539,7 @@ public class Phone implements Authorization {
public void 产品下架后公司产品列表不显示() {
otoSellerTku();
Response response = network.postResponse(BasicConfig.PHONE_listBysellComp);
Response response = network.getResponse(BasicConfig.PHONE_listBysellComp);
int size = response.jsonPath().getJsonObject("data.size()");
Assert.assertEquals(size,1,network.message(BasicConfig.PHONE_listBysellComp,"产品列表未包含已上架产品",response.body().asString()));
......
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