Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

With different users I need to log to the same page and with every user I need to send same requests which contain some numbers that I have stored in CSV file (001, 002, 003) in every column one number for exmp. I got 3 users in name.surname.a1, name surname.a2, name.surname.a3 Each if them after log in should send requests with id's that came from CSV. Each user sends reqests with same id's So i have:

  • Counter (from 1 to 3) for 3 users
  • Thread group (3 users, loop 1)
  • Login Sampler
  • While controller (condition ${ID})// ID is the CSV variable
    • CSV Data set config (ID variable, Recycle on EOF:true, Stop thread on EOF: true, Sharin mode: All threads)
      • HTTP request with ${ID}

So with this I want for exmp user 1 to send the numbers 0001 0002 and 0003
than

user 2 to send the number 0001 0002 and 003

I have problem because either user 1 sends only the first number, user 2 only the second one or even though I have stop on EOF true the loop goes infintly

share|improve this question
    
Is this a Development question or an SQA question? –  Joe Strazzere Nov 27 '13 at 15:46
    
sorry I forgot to mentioned that this is in JMeter so it's SQA. Edited. –  user3017388 Nov 27 '13 at 16:15
add comment

2 Answers 2

I suggest you to try a simpler way - 3 users with 3 loops in a thread group. So each user will send all 3 values from CSV file.

Your test will look like:

share|improve this answer
add comment

Try to insert one While Controller into another:

-CSV Data Set Config
-While Loop controller   <-this iterates through users
--CSV Data Set Config
--While Loop Controller  <- this iterates through values for single user 
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.