1
votes

I have a JMeter test that uses a CSV Data Set Config to provide a list of products for each simulated user to purchase.

The test is simple:

  • login
  • pick product to add to cart
  • checkout
  • logout.

This has worked well and now I want to simulate a user purchasing N products. I first tried duplicating the controllers that pick a product and also tried putting those in a loop controller, but in both cases they just add the same product to the cart repeatedly.

What I want is for each user to pick multiple items from the CSV file. I tried modifying settings for the CSV Data Set Config, but I get the same results no matter what I set it to. Am I missing something or is this expected behavior?

How do I get a thread to pick different items from the CSV file?
Is my only choice to provide multiple CSV files and use multiple CSV Data Set Configs?

1

1 Answers

0
votes

Your option is to use __StringFromFile function inside a Loop Controller

You could then use some Beanshell to process the line and split items.