| || |
Jmeter - using CSVs within a loop or alteratives
I have a Jmeter scenario, adding a new thread group that assigns a job to a user from a drop down list of users. My thread group will only be 1 or 2 admin users. What I'm aiming to do is login, then loop through the assign work process x times, selecting a different user to assign work to each time. I had wrongly assumed that i could just use the csv data set config but it appears that it only works within threads, not within loops, i.e if I put my usernames into the csv, a single thread will only use a single username, the loop doesn't appear to increment the row in the csv. So my questions are a) is there a way to force increment the csv or b) is there another way of doing this short of just recording the sampler loads of times and hard coding the values, which seems inelegant.
I thought of using the user defined variables config element, but this seems setup for single values.
I also thought of using beanshell script to determine which user to use, but then I'd need be able to ascertain which loop I was in, which I don't appear to be able to do either.
Any help appreciated, surprised this doesn't just work out of the box to be honest.
Re: Jmeter - using CSVs within a loop or alteratives
Hmm, ignore me, it looks like it DOES work embedded within a loop after all, straight out of the box. Problem was actually the test data, the first two rows of the csv were the same. Sorry for wasting time.