jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stover, Michael" <Michael.Sto...@usa.xerox.com>
Subject RE: How do I handle session IDs in URLs?
Date Thu, 01 Nov 2001 17:54:07 GMT
I don't recognize that patch for the AnchorModifier.java?  You need the
latest version from cvs - should be available in the latest nighlty tarball
(which needs to be compiled - I hope it compiles ;-(

-Mike

> -----Original Message-----
> From: Jochen Hinrichsen [mailto:jochen.hinrichsen@kambrium.net]
> Sent: Thursday, November 01, 2001 12:00 PM
> To: JMeter Users List
> Subject: AW: How do I handle session IDs in URLs?
> 
> 
> 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;jsess
> ionid=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:Michael.Stover@usa.xerox.com]
> > Gesendet: Donnerstag, 1. November 2001 14:08
> > An: 'JMeter Developers List'; 'jmeter-user@jakarta.apache.org'
> > 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:khammond25@home.com]
> > > 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" <Michael.Stover@usa.xerox.com>
> > > To: "'JMeter Users List'" <jmeter-user@jakarta.apache.org>
> > > 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:jochen.hinrichsen@kambrium.net]
> > > > Sent: Thursday, November 01, 2001 6:23 AM
> > > > To: jmeter-user@jakarta.apache.org
> > > > 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:jmeter-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > > <mailto:jmeter-user-help@jakarta.apache.org>
> > > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:jmeter-dev-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <mailto:jmeter-dev-help@jakarta.apache.org>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:jmeter-dev-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <mailto:jmeter-dev-help@jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail:
> <mailto:jmeter-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:jmeter-user-help@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:
<mailto:jmeter-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:jmeter-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:jmeter-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jmeter-user-help@jakarta.apache.org>


Mime
View raw message