I am working on a project (web) which is having 32 modules but I need to test (load) only one module. The module starting class is a servlet which takes one xml file as input. I want to check this web application using jmeter. But I am not getting any idea how to proceed as all the links coming in google are describing how to test the entire application but not a particular module. Can any one guide me in this regard.
Thanks for the reply. Actually this process is a background process so no user interaction will be there. Thats why I am not getting idea how to call that particular servlet directly through jmeter because that servlet requires an input in the form of xml.
How is the XML passed to the servlet ? Via a multipart form request ?
Joined: Mar 02, 2010
Sorry for the late reply.
No, it will be passed using http post. Actually in the application that xml will be generated by a device and we will configure our servlet url in that device so that it will send that xml directly to the servlet. In the servlet we retrieve that using req.getInputStream(). This entire process is a background process there will be no interaction by the user.
All the tutorials are guiding using http proxy when I am (user) not doing anything in the browser how can one will able to capture the flow in jmeter that I am not able to get.
I not getting idea how to use this tool in this scenario
Thanks for the reply. I solved this issue by accessing the xml using streams and passed that to the servlet. I am not using Jmeter to pass that.
One of the benefits of using Jmeter is the ability to scale your load test and monitor the results. Parameters such as request / response bytes | Time taken | Status codes etc are better monitored using Jmeter. In the interest of getting a better ROI in the long run, please re-consider tweaking Jmeter to run your tests.