Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: JMeter as testing tool for Spring app

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Location
    Stockholm
    Posts
    466

    Default JMeter as testing tool for Spring app

    Hi

    Are there anyone who have experience in testing a Spring-based webapp using JMeter?

    I wonder how to test submitions to forms as Spring handles those things in a special way. It's very seldom you actually parse the request parameters on a submission, they are instead bound to the form data object.

    Are there a better way of load testing a Spring app?

    Interested in all kinds of experience.
    Sincerely,
    /The Cantor

    "Murphy was an optimist"
    (The O'Toole commentary on Murphy's Law)

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney
    Posts
    503

    Default

    We used jcrawler to do some quick and dirty load testing.

    If people will be primarily viewing pages as opposed to filling out forms and clicking submit then jcrawler may give you useful information.

    Our app probably gets 40 pages views to every 1 form completion so the fact that we weren't simulating filling in forms probably only makes a small difference.

    The great thing about jcrawler is that you just give it a starting URL and away it goes.

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    I recommend http://grinder.sourceforge.net/ version 3 for pure stress testing, and http://jwebunit.sourceforge.net/ for functional testing (it wraps HttpUnit and makes it easier to deal with).

  4. #4
    Join Date
    Sep 2004
    Location
    Christchurch, New Zealand
    Posts
    73

    Default

    I have used jMeter to load test the jPetStore example application. Since in this case jMeter deals in HTTP requests (get or post), it is totally un-aware of what app server or framework is processing the requests. If you like I could email you the jMeter config file I used.

  5. #5
    Join Date
    Jan 2006
    Posts
    9

    Default

    hi,

    Im trying to load test my application with JMeter.
    My application has: Spring framework with Acegi security & Tomcat v5.5
    My aggregate report shows 100% errors.
    I guess the problem is JMeter cannot understand Acegi encoding. I am using Acegi JDBC Authenticaton.
    How do you load test Acegi applications with JMeter?

    Thanks in advance,
    Gaurav

  6. #6

    Default

    Hi Chris,
    I am Luis and I am trying to export some testcases from SpringSource and Maven to JMeter.
    I would like to ask you if you could show me your config file please?
    Thank you so very much
    Email: lacribeiro11@gmail.com.

    Luis

  7. #7
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    I wonder how to test submitions to forms as Spring handles those things in a special way. It's very seldom you actually parse the request parameters on a submission, they are instead bound to the form data object.
    As Chris points out, nothing Spring does affects what load testing tools you can use.

    And Spring's data binding approach is not unusual: other frameworks use the same concepts. It just saves you work, rather than changing anything publically exposed in your web app.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  8. #8
    Join Date
    Aug 2004
    Location
    Stockholm
    Posts
    466

    Default

    Quote Originally Posted by Chris
    I have used jMeter to load test the jPetStore example application. Since in this case jMeter deals in HTTP requests (get or post), it is totally un-aware of what app server or framework is processing the requests. If you like I could email you the jMeter config file I used.
    I would be very grateful if you could do that.
    Sincerely,
    /The Cantor

    "Murphy was an optimist"
    (The O'Toole commentary on Murphy's Law)

  9. #9
    Join Date
    Nov 2004
    Posts
    159

    Default

    Hi Chris,

    Have you used jMeter with any other non-web application. Did you use the graphical interface provided by jMeter or the command-line interface? We would like this load test to run as part of our nightly build.

    Thanks!

  10. #10
    Join Date
    Sep 2004
    Location
    Christchurch, New Zealand
    Posts
    73

    Default

    I have tested a simple Java class by extending the following jMeter framework class, this worked well. I did not however execute this from the command line.

    http://jakarta.apache.org/jmeter/api...lerClient.html

    Instructions for execution of jMeter from an Ant task are here:

    [/url]http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-9f8a07a9e4bbc875fca60c3be01755ff3c1e6103[/url]

    Kantorn - the jMeter config file is 57kb, this seems a little large to paste in here. If you email me I will reply with the file.

Similar Threads

  1. suggestions for web test tool?
    By ctassoni in forum Architecture
    Replies: 12
    Last Post: Oct 26th, 2005, 05:38 AM
  2. JDO Transactions and JUnit testing
    By markds75 in forum Data
    Replies: 2
    Last Post: Sep 17th, 2005, 01:46 AM
  3. Positioning the tool bar buttons
    By amit_rangari in forum Swing
    Replies: 1
    Last Post: Apr 25th, 2005, 04:36 AM
  4. Please help! Unit testing code for JPetStore
    By lakershen in forum Container
    Replies: 4
    Last Post: Jan 13th, 2005, 05:00 PM
  5. Replies: 2
    Last Post: Jan 6th, 2005, 02:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •