Santhosini Anand
Santhosini Anand

Reputation: 1

Read data's from csv and form JSON Array and then POST -JMETER 4.0

URL looks like this : https://url1/url2/url3

Post Body Data JSON Format:

Test:{
test1,
test2,
test3
}

I have to read the data from CSV ,pass Url values and corresponding test1, test2 ,etc data in random nos..

Eg: in one hit test 1,test2 should be posted.

In other hit test1,test2,test3,test4 should be posted.

In other hit test1, test4 should be posted.

In other hit test1,test2,test3,test4,test5 should be posted.

My CSV looks like this

Url1 url2 url3 test1

Url1 url2 url3 test2

Url1 url2 url3 test3

Url1 url2 url3 test4

Url1 url2 url3 test5

Url7 url8 url9 test11

Url7 url8 url9 test12

Url7 url8 url9 test13

Url7 url8 url9 test14

Upvotes: 0

Views: 349

Answers (1)

Masud Jahan
Masud Jahan

Reputation: 2978

Use Random CSV Data Set Config instead. You can download it by using Plugin Manager.

Random CSV Data Set Config is used to read CSV rows from file, split and put them into JMeter variables in random order.

Just check the Random Order field like this:

enter image description here

Upvotes: 0

Related Questions