If your web application uses URL rewriting rather than cookies to save session information,
then you'll need to do a bit of extra work to test your site.
To respond correctly to URL rewriting, JMeter needs to parse the HTML
received from the server and retrieve the unique session ID. To do this, put
all your requests inside a
Modification Manager
, with an
HTML Link Parser
attached. Then, include the session ID as an additional parameter
with each
HTTP Request
, with ".*" as the value.
URL Rewriting Example
Download
this example
. In Figure 1 is shown a test plan using URL rewriting. Note that all HTTP Requests are
contained within the
Modification Manager
. The
Modification Manager
also has an
HTML Link Parser
attached to it.

Figure 1 - Test Tree
|
In Figure 2, we see the "Send Parameters with Request" section of one of the
HTTP Request
objects. It shows, in addition to the login
information, the SESSION_ID parameter, with a value of ".*", which is a regular expression
that will match any string. Your application will have its own unique name for
this parameter, which you will have to put in place of "SESSION_ID".

Figure 2 - Request parameters
|