Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@apache.org Received: (qmail 64281 invoked from network); 1 Nov 2001 17:54:30 -0000 Received: from unknown (HELO osaka.betaversion.org) (192.18.49.133) by daedalus.apache.org with SMTP; 1 Nov 2001 17:54:30 -0000 Received: (qmail 29186 invoked from network); 1 Nov 2001 17:56:45 -0000 Received: from nagoya.betaversion.org (192.18.49.131) by osaka.betaversion.org with SMTP; 1 Nov 2001 17:56:45 -0000 Received: (qmail 1119 invoked by uid 97); 1 Nov 2001 17:54:31 -0000 Delivered-To: qmlist-jakarta-archive-jmeter-user@jakarta.apache.org Received: (qmail 1101 invoked by uid 97); 1 Nov 2001 17:54:29 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 1090 invoked from network); 1 Nov 2001 17:54:28 -0000 Content-return: allowed Date: Thu, 01 Nov 2001 12:54:07 -0500 From: "Stover, Michael" Subject: RE: How do I handle session IDs in URLs? To: "'JMeter Users List'" Message-id: <61E69E92EA1CD211B94700805F65B9110790C541@USA0834MS1> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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? >=20 >=20 > It does not work. Here are my steps >=20 > 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 >=20 > 4. apply the patch to make it run >=20 > diff -w -r1.7 AnchorModifier.java > 154a155 > > if (result =3D=3D null) return false; > 263a265,266 > > try > > { > 266a270,271 > > // skip > > if (namedItem =3D=3D null) continue; > 268,269d272 > < try > < { >=20 > 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=3DKIMNBPOJ > AFBA > Sampling url: http://localhost:8080/ebill/news.do;jsessionid=3D.* >=20 > As you can see the session context is not carried - the last=20 > URL should read > Sampling url:=20 > http://localhost:8080/ebill/news.do;jsessionid=3DKIMNBPOJAFBA > 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=20 > ID is generated > by the server. > #4 is an example for any function provided by the application menu >=20 > Unfortunately i do not understand what's going on behind the=20 > jmeter scenes. >=20 > Looking forward to your answer >=20 > Jochen >=20 >=20 >=20 > > -----Urspr=FCngliche 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=20 > the session ID. > > In this case, what is needed is a modification manager. =20 > Your test plan > > should have a modification manager under the threadgroup,=20 > and all test > > elements in your tree should be under this modification=20 > manager (excluding > > listeners and timers, of course). Whatever structure you=20 > had under the > > threadgroup, put it under the threadgroup->mod manager=20 > instead. Then, add > > the HTML Link parser to the mod manager (a response-based=20 > modifier). Then > > comes the hard part: you must add some regular expression=20 > stuff onto the > > PATH parameter of every web test. If you look at the=20 > 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=20 > PATH parameter. > > > > In Jochen's example, the patterned appeared to be=20 > /path;jsessionid=3Dxxxxxx > > in which case, I'd add ";jsessionid=3D.*" to the end of every=20 > PATH paramter. > > > > Well, try it out and see if it works (it will only work=20 > with the latest > > nightly stuff, I believe. the modification manager was=20 > 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" > > > To: "'JMeter Users List'" > > > 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=20 [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=3Dxxxxxxx?etc=3DandSoOn > > > > > > > > I tried CookieManager with no result. > > > > > > > > Thanks in advance > > > > > > > > Jochen > > > > > > > > > > > > -- > > > > To unsubscribe, e-mail: > > > > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > > > For additional commands, e-mail: > > > > > > > > > > > -- > > To unsubscribe, e-mail: > > unsubscribe@jakarta.apache.org> > > For > > additional commands, > > e-mail: > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: