wood burning stoves 2.0*
The moose likes Testing and the fly likes jmeter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "jmeter" Watch "jmeter" New topic
Author

jmeter

Prakash Chicka
Greenhorn

Joined: Mar 09, 2005
Posts: 23
Hi,
I am trying to use jmeter to run the load testing for my application. Could any one help me "how to get the session parameters in the jmeter". When I send a request from the jmeter, I get null pointer exception on the application server console since the session value is null. It would be great if somebody help me on this as it is very critical.

Regards,
Prakash
James Carman
Ranch Hand

Joined: Feb 20, 2001
Posts: 580
JMeter can't put values into the session. That has to be done by your webapp code. Maybe you need to have JMeter visit another page first so that the session values are initialized?


James Carman, President<br />Carman Consulting, Inc.
Prakash Chicka
Greenhorn

Joined: Mar 09, 2005
Posts: 23
James, thank you very much for your response....let me elaborate my problem. Basically the application has been developed using MVC architecture and I have to do the performance test for following requests....

1. Login
2. Send message
3. Track message (here the user can see the messages sent and received)
4. Logout

The session will be created when the user goes to the the login page. When the user hits submit button after entering username/password, it gets "carrID" from the session (we are using cookies to mantain session) and invokes a servlet. I have given some souts to check what session value is coming, it says session value=null. But when I see the TCP dump, the jmeter is sending the proper values. Could you please let me know how to debug this problem and if there are any different settings in jmeter for MVC architecture.

thanks & regards,
Prakash
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jmeter
 
Similar Threads
How to Simulate (parameterise)10 or 50 concurrent user for the JMeter
JMeter: Using same request object
Login Application Configuration on JMeter
Java Code Profiling
Problem to test my web Application with JMeter