0
votes

Need help for the following scenario: I have a Csv file with multiple records where one of the parameter is in array format and other detail in the row are plain text.How can it fetch all the data's from csv and send a POST request in jmeter? Here is my file format below, But it is encoded with special characters. I have given CSV file sample data

Jmeter Response if delimiter set as Comma

Jmeter Response id delimiter set to | (pipe line/vertical bar line)

1

1 Answers

0
votes

If your CSV file looks like:

[{"A_name":"UserA","A_poid":"12345678","A_Cycle":"1","A_amount":980.00}]|1357902468|16-06-2020 12:58

and you configure CSV Data Set Config like:

enter image description here

You will be able to refer the values from the CSV file as ${column1}, ${column2} and ${column3} where required, i.e. in HTTP Request sampler parameters

enter image description here

The real data you're sending can be viewed using "Request" tab of the View Results Tree listener (you might want to switch to "HTTP" mode)

enter image description here