aspose file tools*
The moose likes Performance and the fly likes testing a single module using jmeter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "testing a single module using jmeter" Watch "testing a single module using jmeter" New topic
Author

testing a single module using jmeter

Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 112
Hi,

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.

--raaja g
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Jmeter is blind to how you have moduralized your application. As long as the links you test only target that particular module, you are good to go.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 112
Hi,

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.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

requires an input in the form of xml.


How is the XML passed to the servlet ? Via a multipart form request ?
Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 112
Hi,

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
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

You could always use a RAW HTTP request or paste the XML as the content body in the HTTP element on Jmeter. Either option should help you send the request to the servlet.
Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 112
Hi Deepak,

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.

--raaja g
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Raaja Gotluru wrote:Hi Deepak,

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.

--raaja g


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.

Good luck.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: testing a single module using jmeter