1

I have a body data for a request where I need to pass values from CSV, but for every iteration I need to pass 2 values from file because it is having 2 occurrences of same variable

Bodydata

1

How can we pass 2 values for every run in JMeter.

I need sequential each occurrence scenario in JMeter

Data:

claim1 claim2 claim3 claim4

For First run I need to use claim1 and claim2.

vimuth
  • 5,064
  • 33
  • 79
  • 116
Mikey8997
  • 7
  • 2

1 Answers1

0

I don't think you can achieve this using CSV Data Set Config, you will have to switch to __CSVRead() function where you have more control regarding when to proceed to the next line.

Amend your body to look like

{
  "Claims" : [
    {
      "Type": "${__CSVRead(test.csv,0)}${__CSVRead(test.csv,next)}"
    },
    {
      "Type": "${__CSVRead(test.csv,0)}${__CSVRead(test.csv,next)}"
    }
  ]
}

and you should get what you want.

More information: Apache JMeter Functions - An Introduction

Dmitri T
  • 159,985
  • 5
  • 83
  • 133