• 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 use httpclient by apache to test my application

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone,
I developed an application using JSP's with Beans.i needed to check the load and performance limit for my application.
In one of the earlier posts i read about httpclient being used to do so.can anyone please guide me as to how i test my software at low cost.
thank you
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Download and install HTTPClient (version 3.1 is latest)
2. Read the tutorial.html - you might want to write the example simple application just to get comfortable with the tools.
3. Figure out the user's "path" through your application that you want to test - I like to make a diagram with named circles and arrows - I also see a lot of UML style diagrams, whatever you are comfortable with. I suggest you start with the simplest path your app has.
4. Now for the hard part - you have to write a testing program to execute the client side of that user "path". Each test pass should run in its own Thread so that you can start multiple "simultaneous" requests. I like to write a sort of script containing the user inputs to be sent at each step - depending on the complexity of your app you might use XML to create the script.

Bill
 
nick sharma
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i downloaded the binary file but i have a .jar file in the binary zip folder.can you please tell me vat You exactly mean by install??
is there any manual configuration involved like adding class path etc or do you mean an installation done by windows installer etc??
Please clear the above doubt.

Thanks
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The commons-httpclient-3.1.zip is just a zipped file of the working directories for the project, pretty typical of Apache toolkits. It is only the big applications like Tomcat that have special installers.

I unzipped the entire set of files, using the base directory that is in the zip file so I now have a commons-httpclient-3.1 directory in my JavaMisc directory I use for this sort of thing. Inside that we find:

commons-httpclient-3.1.jar - you need this on your classpath to compile and run programs using the toolkit.

a bunch of license .txt files and RELEASE_NOTES.txt - the notes give the history of the project as leading to the current version

the docs directory - containing:
.apidocs - the standard JavaDocs formatted API documentation
.. several other directories containing examples and files used by the:
.html files that duplicate the Apache web site information including the page for the tutorial

Bill
reply
    Bookmark Topic Watch Topic
  • New Topic