![](/img/trans.png)
[英]Jmeter - Fetch the Session ID from the Response and pass it next request.Request & Responses are in JSON
[英]How to get multiple ids from JSON and pass it to next request in jmeter
請找到附件的json:
"0":"10000267",
"no":"10000267",
"1":"2180100151-1-40",
"article_no":"2180100151-1-40",
"2":"550053",
"agent_code":"550053",
"3":"103896",
"customer_code":"103896",
"4":"A+",
"grade":"A+",
"5":"1336489",
"id":"1336489",
"6":"8907679958231",
"ean_code":"8907679958231",
"7":"315",
"quantity":"315",
"8":"27",
"available_quantity":"27"
},
{
"0":"10000286",
"no":"10000286",
"1":"2180100151-1-40",
"article_no":"2180100151-1-40",
"2":"550108",
"agent_code":"550108",
"3":"112230",
"customer_code":"112230",
"4":"A+",
"grade":"A+",
"5":"1432890",
"id":"1432890",
"6":"8907679958231",
"ean_code":"8907679958231",
"7":"494",
"quantity":"494",
"8":"27",
"available_quantity":"27"
現在,我已經使用JSON提取程序提取了“ id”,並且我必須在下一個請求中傳遞這些多個id。 我怎樣才能做到這一點?
例如:我必須在下一個請求中以id = 1432890,1336489的格式傳遞id。我如何實現這一目標。如果有人添加可以幫助實現此目標的代碼,那就太好了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.