Solved

JMeter multipe users data test

Posted on 2011-02-22
6
1,215 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
  • 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

747 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now