简体   繁体   English

在JMeter中使用HTTP请求发送动态参数值

[英]Send dynamic parameter value with HTTP Request in JMeter

I'm aware of Correlation in Jmeter for passing dynamic value in JMeter, I usually create Regex Expression/CSS Selector Extractor for it and pass value as ${variable_name}. 我知道Jmeter中的Correlation用于在JMeter中传递动态值,我通常为它创建Regex Expression / CSS Selector Extractor并将值传递为$ {variable_name}。 This works fine. 这很好用。 Now recently i came up with scenario where value what i have to pass looks like below - 现在最近我想出了一个场景,我必须传递的价值如下所示 -

{"path":"Test123","sortExpression":"","startIndex":0,"maxRowNumber":10,"filterKeyWord":""}

I created one CSS Selector Extractor and fetch the value but when I'm passing like this , it does not recognize and fails. 我创建了一个CSS Selector Extractor并获取值但是当我像这样传递时,它无法识别并失败。 How can I pass this value ? 我怎样才能传递这个值?

{"path":${createFolder},"sortExpression":"","startIndex":0,"maxRowNumber":10,"filterKeyWord":""}

在此输入图像描述

不要忘记在JSON中双引号字符串值

 {"path":"${createFolder}","sortExpression":"","startIndex":0,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在jmeter的http请求请求主体中传递参数和json? - How to pass parameter and json both in http request request body in jmeter? Jmeter在HTTP请求的JSON有效载荷中发送通配符%未返回正确的响应 - Jmeter Send wildcard % in JSON Payload of HTTP Request not returning correct response 如何使用header参数发送HTTP请求? - How to send an HTTP request with a header parameter? 通过增加jmeter中变量的值来创建动态请求 - Create a dynamic request from increasing value of variables in jmeter 如何在 Jmeter 中创建动态请求 - How to create a dynamic request in Jmeter 如何使用逻辑应用程序中的 HTTP 工具发送请求的参数 - how to send a Request's parameter using HTTP tool in Logic app 如何在具有 JSON 变量的单个 HTTP 请求正文中传递参数和 JSON [JMeter] - How to pass both parameter and JSON in one single HTTP request body with having JSON a variable [JMeter] 如何在 Z8F0466AE1A66FDAF3CED537A2 中的单个 HTTP 请求中从 CSV 文件发送多个 JSON 数据 - How to send multiple JSON data from CSV file in single HTTP request in JMETER tool 在jmeter中,动态变量的值在json(“ $ {var}”)中进行了解析,但是服务器仍然抛出400错误的请求错误 - in jmeter, the value of dynamic variable gets parsed in json ( “${var}”), but still server throws 400-bad request error jmeter根据响应发出http请求 - jmeter to issue http request based on response
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM