jmeter中json提取器提取多个参数给下游接口传参

本文实例中长租定检接口返回多个数据给签约接口使用。以下为长租定检接口返回数据

{
"resultCode": 0,
"resultMessage": "操作成功!",
"debugMessage": null,
"canBooking": true,
"failReason": null,
"priceComboDataList": [{
"priceComboId": 3732,
"priceComboName": "万间测试公寓折扣",
"payWayId": 2,
"payWayName": "付三押一",
"rentalPrice": 81900,
"serviceFeePrice": 20000,
"depositAmount": 81900,
"frontMoneyAmount": 100000,
"activityCode": "P000070",
"priceComboType": 2,
"priceComboCalcType": 2,
"priceComboCalcValue": 77
}],
"basePriceData": {
"baseRentalPrice": 106400,
"baseServiceFeePrice": 20000,
"baseDepositAmount": 106400,
"frontMoneyAmount": 100000
},
"defaultPriceComboData": {
"priceComboId": 3380,
"priceComboName": "全国门店7个月租期套餐付三",
"payWayId": 2,
"payWayName": "付三押一",
"rentalPrice": 117000,
"serviceFeePrice": 20000,
"depositAmount": 117000,
"frontMoneyAmount": 100000,
"activityCode": null,
"priceComboType": 0,
"priceComboCalcType": 0,
"priceComboCalcValue": 110
}
}

json提取器提取多个参数如下图

jmeter中json提取器提取多个参数给下游接口传参

 签约接口获取上一步json提取器返回的多个参数,如下图

jmeter中json提取器提取多个参数给下游接口传参