Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

JMeter multipe users data test

Posted on 2011-02-22
6
Medium Priority
?
1,362 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

604 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