Solved

JMeter multipe users data test

Posted on 2011-02-22
6
1,226 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
This video teaches viewers about errors in exception handling.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

920 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

14 Experts available now in Live!

Get 1:1 Help Now