{
"data": {
"companyIds": [
5956,
54841
],
"userEmail": "abc@xyz.com",
"contactId": 183334,
"types": [
1974,
1975,
1931,
1932
],
"boards": [
168,
169,
175,
180
]
},
"succeeded": true,
"errors": null,
"message": "Configuration fetched successfully",
"statusCode": 200
}
以上是API的json响应,我已经使用JsonExtractor在Jmeter中提取了变量,如下所示-(调试采样器结果)boardIDs_1=[168,169,175,180] boardIDs_ALL=[168,169,175,180] boardIDs_matchNr=1
我想将变量转换为类似于(168,169,175,180)格式
因为我需要将它作为参数传递给下一个API,如- Parameters。condition=board_id in(168,169,175,180)和closedFlag = false
如何在jmeter中实现?有人能帮助如何将数组[168,169,175,180]转换为字符串变量(168,169,175,180)吗?
1条答案
按热度按时间holgip5t1#
将JSR 223 Postprocessor添加到请求中,并将下面的代码添加到'Script'区域。您将得到boards_INDIVIDUAL“168,169,175,180”。