51Testing软件测试论坛
标题:
求助
[打印本页]
作者:
笑笑乐乐
时间:
2017-3-10 16:06
标题:
求助
"Data":{
"Id":"e490875a-6cbd-4697-9183-98aaf43ea12e",
"BasicId":"87c019ea-567f-42e3-9f4e-5961f005f522",
"UserId":"4f500000-4c4f-0200-1301-08d4133a4377",
"AppCode":"2016121601",
"ProductType":"一个设备T02带安装费",
"DistrictCode":"370200",
"ShopName":"xh测试客户",
"LinkMan":"xh测试客户 一个设备带安装费",
"LinkPhone":"13176544546",
"VIN":"xh201612161132123",
"UserName":"xh测试客户 一个设备带安装费",
"UserPhone":"13176544546",
"InstallTime":"2016-12-16T00:00:00",
"InstallAdd":"市北区",
"CreditPeriod":null,
"Num":1,
"Color":null,
"CarType":"奇瑞 风云2 手动超值版",
"CarPrice":null,
"InvoicePrice":null,
"LoanAmount":0,
"Remark":null,
"Status":"noRemind",
"ActualShopName":"xh测试客户",
"ActualShopId":"b4432661-d095-4ada-8aa0-8888537adc0f",
"ActualShopDepartId":"4f500000-4c4f-0200-6798-08d40c70964b",
"ActualCarType":"奇瑞 风云2 手动超值版",
"ActualInstallName":"zr16100018",
"ActualCarTypeId":"4f500000-4c4f-0200-30d2-08d3425dc498",
"ActualInstallTime":"2016-12-16T00:00:00",
"UnitId":null,
"UnitName":null,
"IfErpInstall":true,
"IfRecord":false,
"UnstallStatus":null,
"Deleted":false,
"CompensationId":null,
"CompensationName":null,
"Premium":null,
"DistrictName":"青岛市",
"InsuranceId":null,
"InsuranceType":null,
"CustomerId":"2f7ddcb5-8de7-45a3-adec-927e7d28fefe",
"CustomerName":"xh测试客户",
"WareHomeId":"4f500000-4c4f-0200-8dd6-08d30f37b3ea",
"WareHomeName":"中瑞总仓",
"PayType":false
},
"HasErrors":false,
"Success":true,
"AllMessages":"",
"Messages":[
]
这是一个json串 我想获取ActualInstallTime和UnstallStatus 值 这个json穿是通过接口随机取得 所以这两个字段不一定有值 有时为null有时显示值
作者:
szyszy2000
时间:
2017-3-10 18:07
可以是用Regular Expression Extractor,正则表达式:"ActualInstallTime":"(.+?)", 模板:$1$
作者:
笑笑乐乐
时间:
2017-3-13 14:07
正则表达式如下:
.*"CustomerId":"(.+?)"|(.+?),"CustomerName".+?"ImeiMaterialId":"(.+?)"|(.+?),"IMEI".*
我想获取CustomerId和ImeiMaterialId的信息 但我不知道这两个字段有没有值 值是字符类型或数字类型或null还是布尔类型 我想写一个通用的表达式 不知大神是否知道我哪写的不对
作者:
笑笑乐乐
时间:
2017-3-16 17:28
已经解决
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2