• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to test web application

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

My company has an application which recently has user session data mixed up problems, and it occured only when many concurrent users logged in to the application. Does anyone know how to simulate concurrent users for functional testing to find out what caused the data error? Any tools? Thanks!
 
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As you didn't let us know how the application is build I can suggest you some testing tools/links and I hope you will find something:
  • A Load of Stress (article)
  • HttpUnit
  • jWebUnit
  • HtmlUnit
  • JUnitServlet
  • Cactus


  • ./pope
     
    author
    Posts: 11962
    5
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    JMeter is one of the more popular free load testing tools for Java developers (for Java developers because it's written in Java, not because it would be somehow geared towards testing web applications written in Java).
     
    JW Li
    Ranch Hand
    Posts: 33
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi,

    Thanks for all these information! Looks like it's going to be a lot of work just to learn these tools BTW, the application is written in JAVA and JSP, and running on Tomcat...
     
    Ranch Hand
    Posts: 138
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Check this web page. Excellent tutorial how to use jmeter.
     
    Mary Wallace
    Ranch Hand
    Posts: 138
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    This web pagealso.
     
    JW Li
    Ranch Hand
    Posts: 33
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Mary, Thanks a lot!
     
    drifter
    Posts: 1364
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Originally posted by JW Li:
    My company has an application which recently has user session data mixed up problems, and it occured only when many concurrent users logged in to the application. Does anyone know how to simulate concurrent users for functional testing to find out what caused the data error? Any tools? Thanks!



    If what you're really trying to do is find out what the cause of the problem is, I'd suggest a critical look at the code.
     
    JW Li
    Ranch Hand
    Posts: 33
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Carol,

    Yes, definitely would look into the code! The application was created on outdated model 1 (a lot of JAVA code handling the action embeded in JSP), and the original programmers have already left the company... I think it's the local variables defined in JSP caused the problem, but I am not sure whether my fix really makes the session data mixed up problem goes away. Even though I think it's fixed, I need some proof to make my manager happy...
     
    Carol Enderlin
    drifter
    Posts: 1364
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Originally posted by JW Li:
    Carol,

    Yes, definitely would look into the code! The application was created on outdated model 1 (a lot of JAVA code handling the action embeded in JSP), and the original programmers have already left the company... I think it's the local variables defined in JSP caused the problem, but I am not sure whether my fix really makes the session data mixed up problem goes away. Even though I think it's fixed, I need some proof to make my manager happy...



    Since you mention model 1 jsps: beware of use of <%! DECLARE %> tag for variables in jsps. Variables declared in this way are instance variables, not local variables. Unless the jsp is marked not thread safe (not recommended), this can result in what appear to be mixing of user session data with concurrent users.

    Good luck in setting up your tests to demonstrate the problem and then show it's fixed.
     
    JW Li
    Ranch Hand
    Posts: 33
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Carol,

    Thanks again! This tip is really helpful
     
    Replace the word "snake" with "danger noodle" in all tiny ads.
    a bit of art, as a gift, the permaculture playing cards
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic