Solved

JMeter multipe users data test

Posted on 2011-02-22
6
1,284 Views
Last Modified: 2013-12-13
Hello,

I am new to JMeter. I am trying to perform a stress test againt a servlet by sending different values, I was told to use CSV Set Data Config to load different data from a file. I created a file with one record with a single parameter just for testing. I have been unsuccessful so far. in my application log file, it seems that JMeter is not sending any paramter along with the request.
I am not sure what I am doing wrong.

these are my settings.
 Thread Group
 HTTP Request

 CSV Data Set Conf
My userfile.csv contains one single record and saved under the JMeter BIN directory.

1234567

Question I have: is the CSV Data Set Config should a child of Thread Group or a child of HTTP request?


Once I get this test working I would like to add more parameters and add more records.

Thanks in advance,

Abdellah.
0
Comment
Question by:AbdellahT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 34956130
Try at least 2 lines.  Sometimes 1 causes weird issues.  Also, is there anything in the jmeter log or your application log?
0
 

Author Comment

by:AbdellahT
ID: 34956475

Thanks for your reply, I added one more line but did not make any difference.
 
My Log file:
/22 16:37:59 INFO  - jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
2011/02/22 16:38:00 INFO  - jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
2011/02/22 16:38:00 INFO  - jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
2011/02/22 16:38:00 INFO  - jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
2011/02/22 16:38:00 INFO  - jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
2011/02/22 16:38:00 INFO  - jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
2011/02/22 16:38:01 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError
      at javax.swing.tree.DefaultTreeModel.getPathToRoot(Unknown Source)
      at javax.swing.tree.DefaultTreeModel.getPathToRoot(Unknown Source)
      at javax.swing.tree.DefaultTreeModel.getPathToRoot(Unknown Source)
at javax.swing.tree.DefaultTreeModel.getPathToRoot(Unknown Source)
      at javax.swing.tree.DefaultTreeModel.getPathToRoot(Unknown Source)
      at javax.swing.tree.DefaultTreeModel.getPathToRoot(Unknown Source)

2011/02/22 16:38:04 INFO  - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-2
2011/02/22 16:38:04 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-2
2011/02/22 16:38:04 INFO  - jmeter.engine.StandardJMeterEngine: Stopping test
2011/02/22 16:38:04 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2011/02/22 16:38:04 INFO  - jmeter.services.FileServer: Close: usersfile.csv
2011/02/22 16:38:04 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
2011/02/22 16:38:04 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended
2011/02/22 16:38:55 INFO  - jmeter.engine.StandardJMeterEngine: Running the test!
2011/02/22 16:38:55 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2011/02/22 16:38:56 INFO  - jmeter.engine.StandardJMeterEngine: Starting 2 threads for group Thread Group.
2011/02/22 16:38:56 INFO  - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2011/02/22 16:38:56 INFO  - jmeter.engine.StandardJMeterEngine: All threads have been started
2011/02/22 16:38:56 INFO  - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1
2011/02/22 16:38:56 INFO  - jmeter.services.FileServer: Stored: usersfile.csv
2011/02/22 16:38:57 INFO  - jmeter.threads.JMeterThread: Thread started: Thread Group 1-2


404 is not because http request sampler not finding the target server, I think because is not getting any reply at all I am not sure what the problem is.
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 34960588
Can you change the logging level?

http://jakarta.apache.org/jmeter/usermanual/get-started.html
-L[category]=[priority] - overrides a logging setting, setting a particular category to the given priority level.
The -L flag can also be used without the category name to set the root logging level.

Also, can you add Listeners?  Maybe add some assertions and add an Assertion Results listener...you may see more of what's going on.  
0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
LVL 16

Expert Comment

by:Bryan Butler
ID: 35334491
Any luck?
0
 

Accepted Solution

by:
AbdellahT earned 0 total points
ID: 35336066
Sorry. I got busy with other things.

Yes. I was missing the parameters in the request. I should have added the parameter to the request, the name  should be the paramname and value should be in this format $[paramname] .
the parameters order need to match the parameters in csv file data config.

Thanks a lot for your help.

Abdellah
0
 

Author Closing Comment

by:AbdellahT
ID: 35364753
I found the solution on my own.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Globalscape EFT Notifications Help 2 32
How to centrally test thousands of laptops USB is blocked 5 62
Java Eclipse Loop 3 31
program arguments vs VM arguments 4 30
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
This article was originally published on Monitis Blog, you can check it  here . If you have responsibility for software in production, I bet you’d like to know more about it. I don’t mean that you’d like an extra peek into the bowels of the sour…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question