【发布时间】:2020-12-02 19:34:42
【问题描述】:
我正在关联 json 响应,但从捕获的 json 中,我需要用一些不同的文本替换一个值。 例如 - 捕获的响应如下并保存到“corr_json”变量:
{
"data": [{
"type": "articles",
"id": "1",
"attributes": {
"title": JSON:API paints my bikeshed!,
"body": "The shortest article. Ever.",
"created": "2015-05-22T14:56:29.000Z",
"updated": "2015-05-22T14:56:28.000Z"
},
"relationships": {
"author": {
"data": {"id": "42", "type": "people"}
}
}
从此我需要替换字符串
API paints my bikeshed
带有文本Performance Testing 并传递给下一个请求,因此要传递的json如下:
{
"data": [{
"type": "articles",
"id": "1",
"attributes": {
"title": "Performance Testing",
"body": "The shortest article. Ever.",
"created": "2015-05-22T14:56:29.000Z",
"updated": "2015-05-22T14:56:28.000Z"
},
"relationships": {
"author": {
"data": {"id": "42", "type": "people"}
}
}
有没有办法在 Loadrunner 中做到这一点?
【问题讨论】:
标签: performance-testing loadrunner vugen