简体   繁体   English

如何从jmeter中的CSV数据集配置中读取同一请求的两个值?

[英]How can I read two values for the same request from CSV data set config in jmeter?

I need to read two values from two different rows in a csv and pass those values as a part of the body of a POST request. 我需要从csv中的两个不同行中读取两个值,并将这些值作为POST请求正文的一部分传递。 Through CSV data set config I'm able to read only one value at a time. 通过CSV数据集配置,我一次只能读取一个值。 Is there any way I can read two values in the same request? 有什么办法可以在同一请求中读取两个值?

Example : sourceSystemGuid,sourceSystemName 示例sourceSystemGuid,sourceSystemName

sourceSystem_733,sourceSystem733 sourceSystem_590,sourceSystem590 sourceSystem_959,sourceSystem959 sourceSystem_733,sourceSystem733 sourceSystem_590,sourceSystem590 sourceSystem_959,sourceSystem959

I need to read two values for sourceSystemGuid in one request. 我需要在一个请求中读取sourceSystemGuid两个值。

Without custom scripting it's not possible. 没有自定义脚本,这是不可能的。

But you can put 4 columns per line and that will do what you want. 但是您可以在每行放置4列,这将满足您的要求。

暂无
暂无

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

相关问题 如何从 JMeter 中的 CSV 数据集配置中读取下一行? - How Can I Read The Next Row From A CSV Data Set Config In JMeter? 读取csv数据集配置jmeter中的变量 - Read variable in csv data set config jmeter JMeter 读/写到 CSV 数据集配置 - JMeter read / write to CSV Data Set Config 我该如何检测 <EOF> JMeter的常规脚本采样器中“ CSV数据集配置”的设置? - How can I detect <EOF> of a “CSV data set config” in a groovy script sampler in JMeter? 如何在jmeter3.0中使用csv数据集配置登录多个用户名和密码? - How can I login multiple username and paasword using csv data set config in jmeter3.0? JMeter - 如何从响应数据中捕获值并将它们添加到用于生成 HTML 报告的同一 CSV 结果文件中 - JMeter - How can I capture values from Response data and add them in the same CSV results file that is used to generate HTML reports 使用JMETER CSV日期设置配置时如何在请求正文中将CSV文件中的数据转换为JSON - How to have the data in the CSV file converted to JSON in the request body when using JMETER CSV Date set config JMeter中的CSV数据集配置无法读取持久订阅ID - Durable subscription ID cannot be read by CSV Data Set Config in JMeter 在jmeter中,我可以使用xml输入代替CSV数据集配置config元素吗? - In jmeter, can I use xml input as an alternative to the CSV Data Set Config config element? 如何在 Jmeter 中使用 CSV 数据集配置一次读取 csv 文件(而不是逐行) - How to read csv file using CSV Data Set Config at once in Jmeter (instead of line by line)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM