rest-assured获取响应体中的值(目的是用于下个请求中)
下面是接口返回的json,需要取到其中的汇率,真心求解?{"data": {"exchange_rate": {
"audXchrAmtCny": 4.875208470492,
"cadXchrAmtCny": 4.9292526828871,
"eurXchrAmtCny": 7.5548122307071,
"gbpXchrAmtCny": 8.5676732535169,
"hkdXchrAmtCny": 0.81583454501083,
"idrXchrAmtCny": 0.00045921417128527,
"jpyXchrAmtCny": 0.058222346348425,
"krwXchrAmtCny": 0.005948153454563,
"mxnXchrAmtCny": 0.31179448640017,
"myrXchrAmtCny": 1.6065455085719,
"phpXchrAmtCny": 0.12056443556003,
"rmbXchrAmt": 168.11940169985,
"rmbXchrAmtJpy": 17.175535901896,
"sgdXchrAmtCny": 4.7970501234378,
"thbXchrAmtCny": 0.19970450232087,
"twdXchrAmtCny": 0.21454120018859,
"updatedTime": 1528783522000,
"usdXchrAmt": 1076.2461230702,
"usdXchrAmtCny": 6.4016770949,
"usdXchrAmtJpy": 109.9522347758,
"vndXchrAmtCny": 0.00028043086938222,
"xchrStdDt": "20180612"
}
},
"msg": "success",
"code": 2000
}
设置其抓取文字信息 提示你路径不能为null,查看下路径 一般都是取正则表达式 正则截取啊
页:
[1]