简体   繁体   English

我需要在jmeter中使用csv文件向多个用户发送json请求

[英]I need to send json request for multiple users using csv file in jmeter

I have a csv file containing user names and password, i need to use that csv file to pass for json request but im getting internal sever error as json cant understand csv files. 我有一个包含用户名和密码的csv文件,我需要使用该csv文件来传递json请求,但由于json无法理解csv文件,因此我收到了内部服务器错误。

please help me what i need to do for passing json request for multiple users. 请帮助我传递多个用户的json请求所需的操作。

Parse the CSV using the User CSV Reader and set the inputs to variables, say for example ${Username}, ${Password}. 使用User CSV Reader解析CSV并将输入设置为变量,例如$ {Username},$ {Password}。 Then, wherever you are creating your JSON use a pre-processor to assign these values where they need to go - for example, if you had a template JSON that you loaded and had a field "username: ", you could set that field equal to the variable ${Username}. 然后,无论您在创建JSON的任何地方,都使用预处理器将这些值分配给需要的位置-例如,如果您具有加载的模板JSON并具有“ username:”字段,则可以将该字段设置为变量$ {Username}。

暂无
暂无

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

相关问题 如何在 Z8F0466AE1A66FDAF3CED537A2 中的单个 HTTP 请求中从 CSV 文件发送多个 JSON 数据 - How to send multiple JSON data from CSV file in single HTTP request in JMETER tool 如何在Jmeter中的单个json请求中发送多个Json数据 - How to send multiple Json data i the single json request in Jmeter 如何使用jmeter和json数组发送多个发布请求? - How to send multiple post request using jmeter and json array? JMeter:需要根据某些标准将 CSV 文件中的所有值发送到请求正文中的不同变量 - JMeter: Need to send all values in a CSV File to different variables in a request body, based on some criteria 需要在 Jmeter 中使用“CSV 数据集配置”构建大型 Json 请求 - Need to build large Json Request using "CSV Data Set Config" in Jmeter 使用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-如何读取Json格式的数组形式的GET请求返回的多个值并将其写入CSV文件 - Jmeter - How to read multiple values returned by GET request in the form of array in Json format and write it to a CSV file Json的Jmeter CSV文件 - Jmeter CSV file for Json 对于jmeter post请求,如何从csv文件生成输入json? - For jmeter post request, how can I generate input json from csv file? 我在使用 jq 将 JSON 文件解析为 a.csv 文件时需要帮助 - I need assistance in parsing a JSON file to a .csv file using jq
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM