?
Solved

JMeter multipe users data test

Posted on 2011-02-22
6
Medium Priority
?
1,345 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
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 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