It does not work. Here are my steps

1. get a fresh copy
2. build and unit test
3. generate a test plan
          +
          |
          +-+ ThreadGroup
            |
            +-+ Modification Manager
              |
              +-- HTML Link parser
              |
              +-- Web Testing #1
              |
              +-- Web Testing #2
              |
              +-- Web Testing #3

4. apply the patch to make it run

diff -w -r1.7 AnchorModifier.java
154a155
>         if (result == null) return false;
263a265,266
>                 try
>                     {
266a270,271
>                         // skip <a name=""/>
>                         if (namedItem == null) continue;
268,269d272
<                       try
<                       {

5. run test
Sampling url: http://localhost:8080/ebill/customer/index.jsp
Sampling url: http://localhost:8080/ebill/customer.do
Sampling url:
http://localhost:8080/ebill/customer/welcome/content.jsp;jsessionid=KIMNBPOJ
AFBA
Sampling url: http://localhost:8080/ebill/news.do;jsessionid=.*

As you can see the session context is not carried - the last URL should read
Sampling url: http://localhost:8080/ebill/news.do;jsessionid=KIMNBPOJAFBA
because
#1 is a login page with a user and pasword field form
#2 is the action of the form submit
#3 is the result of the submit - the home page. The session ID is generated
by the server.
#4 is an example for any function provided by the application menu

Unfortunately i do not understand what's going on behind the jmeter scenes.

Looking forward to your answer

Jochen



> -----Urspr�ngliche Nachricht-----
> Von: Stover, Michael [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 1. November 2001 14:08
> An: 'JMeter Developers List'; '[EMAIL PROTECTED]'
> Betreff: RE: How do I handle session IDs in URLs?
>
>
> Ok, thanks.  It appears that all URL's in the HTML contain the session ID.
> In this case, what is needed is a modification manager.  Your test plan
> should have a modification manager under the threadgroup, and all test
> elements in your tree should be under this modification manager (excluding
> listeners and timers, of course).  Whatever structure you had under the
> threadgroup, put it under the threadgroup->mod manager instead.  Then, add
> the HTML Link parser to the mod manager (a response-based modifier).  Then
> comes the hard part:  you must add some regular expression stuff onto the
> PATH parameter of every web test.  If you look at the Amazon example, all
> paths appear to be patterned like so:
>
> http://server/path/[session-id]
>
> So, for every web test, I'd add "/.*" to the end of every PATH parameter.
>
> In Jochen's example, the patterned appeared to be /path;jsessionid=xxxxxx
> in which case, I'd add ";jsessionid=.*" to the end of every PATH paramter.
>
> Well, try it out and see if it works (it will only work with the latest
> nightly stuff, I believe.  the modification manager was broken prior to
> that).  If it works, this should probably be documented.
>
> -Mike
>
> > -----Original Message-----
> > From: Kevin Hammond [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, November 01, 2001 7:56 AM
> > To: JMeter Developers List
> > Subject: Re: How do I handle session IDs in URLs?
> >
> >
> > See http://www.amazon.com for a good example. You will see
> > that all URL's
> > contain the session ID.
> >
> > Kevin Hammond
> >
> > ----- Original Message -----
> > From: "Stover, Michael" <[EMAIL PROTECTED]>
> > To: "'JMeter Users List'" <[EMAIL PROTECTED]>
> > Sent: Thursday, November 01, 2001 4:52 AM
> > Subject: RE: How do I handle session IDs in URLs?
> >
> >
> > > Someone would have to explain to me the mechanism behind
> > URL-rewriting
> > > before I write the code to handle it.  Where does the
> > browser get the
> > > information about the session ID?  Is it in the return
> > header for every
> > > page?  Does the servlet engine rewrite every URL in the
> > HTML it returns?
> > If
> > > someone knows, I'm sure it wouldn't take but a moment to do it.
> > >
> > > -Mike
> > >
> > > > -----Original Message-----
> > > > From: Jochen Hinrichsen [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, November 01, 2001 6:23 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: How do I handle session IDs in URLs?
> > > >
> > > >
> > > > Hi,
> > > >
> > > > did someone figure out how to test URLs containing a
> > session ID, e.g.
> > > >
> > > > http://host:port/address;jsessionid=xxxxxxx?etc=andSoOn
> > > >
> > > > I tried CookieManager with no result.
> > > >
> > > > Thanks in advance
> > > >
> > > > Jochen
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:jmeter-dev-> [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: <mailto:[EMAIL PROTECTED]>
> >
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to