RE: [Grinder-use] Error in TCPProxy recording when using url rewriting
Distributed load testing framework - Java, Jython, or Clojure scripts.
Brought to you by:
philipa
From: Nicole H. <Nic...@we...> - 2005-02-09 15:40:13
|
<html><style>p {margin: 0px}</style><body bgcolor=3D'#ffffff' style=3D'font-si= ze:9pt; font-family:Verdana; font-family: Verdana' ><P>Hi Philip,</P><P>th= anks for your fast help! I made a patch to my local version and now everyt= hing is fine! As there were some requests regarding this problem before, p= erhaps you should make a patch available to the whole community=3F</P><P>&nb= sp;</P><P>Many thanks from a real Grinder fan,</P><P>Nicole</P><P>"Philip = Aston" <pa...@be...> schrieb am 09.02.05 12:49:45:<BR>> <BR>&g= t; I think this stems from confusion on my part. At one time I believed th= at ";" was an alternative query string separator.<BR>> <BR>> Try fix= ing the regexp for m=5FrequestLinePattern in HTTPPluiginTCPProxyFilter.java.= (Replace both occurrences of [\=3F;] with \=3F).<BR>> <BR>> -----Origin= al Message----- <BR>> From: Nicole Holthoefer [mailto:NicoleHolthoefer@= web.de] <BR>> Sent: Wed 09/02/2005 09:01 <BR>> To: grinder-use@lists= .sourceforge.net; Philip Aston <BR>> Cc: <BR>> Subject: RE: [Grinder= -use] Error in TCPProxy recording when using url rewriting<BR>> <BR>>= ; <BR>> <BR>> Sorry, but the jsessionid is not part of the query str= ing, it is part of the url. <BR>> <BR>> Original URL:<BR>> <BR>&g= t; http://localhost:8891/mywebapp/SimpleSession.jsp;jsessionid=3DCI9aE8kHeOL= IMv5jGL10VOmJVOdcOP2mHKUXBD8sd1u2DN8v7f1c!-2130159706<BR>> <BR>> Wil= l be transformed to:<BR>> <BR>> http://localhost:8891/mywebapp/Simpl= eSession.jsp=3Fjsessionid=3DCI9aE8kHeOLIMv5jGL10VOmJVOdcOP2mHKUXBD8sd1u2DN8v7f= 1c!-2130159706<BR>> <BR>> The very small but crucial difference is, = that the former character semicolon got changed to be questionmark. Theref= ore the session context is not working. As the browser does not change the= URL, it works fine and when I manually change the generated script it wor= ks fine, too. It is just the recording that does not see the difference be= tween ; and =3F<BR>> <BR>> Unfortunately I cannot change the applicati= on I need to test. But is there any way to define the list of characters t= he recoring uses as seperator between url and parameters=3F<BR>> <BR>>= Thanks and regs,<BR>> <BR>> Nicole<BR>> <BR>> "Philip Aston" = <pa...@be...> schrieb am 08.02.05 20:46:46:<BR>> > <BR>>= > The session ID provided in the NVPair will be correctly bolted back<= BR>> > into the URL as a query string. Sniff with the TCPProxy if yo= u want to<BR>> > see this.<BR>> > <BR>> > The likely pro= blem is that the replayed jsessonid refers to an<BR>> > obsolete ses= sion. The easy fix is to take out all the jsessionid stuff<BR>> > an= d just rely on HTTP cookies. Alternatively, check out the<BR>> > "-n= ewhttpplugin" switch to the TCPProxy. That has some support for<BR>> &g= t; jsessionIDs.<BR>> > <BR>> > - Phil<BR>> > <BR>> &g= t; Nicole Holthoefer writes on 08 February 2005 18:12:<BR>> > > <= BR>> > > <BR>> > > Hi,<BR>> > > <BR>> > &= gt; <BR>> > > <BR>> > > I have a web application that ha= s disabled cookies but is using url rewriting. On WebLogic Server that mea= ns, that the URL is defined in the form <http://ip:port/path;jsessionid= =3D...=3Fparams>. Unfortunately the TCPProxy does record the jsessionid to = be a parameter instead of leaving it in the url:<BR>> > > <BR>>= ; > > <BR>> > > <BR>> > > tests[1].GET(http://loca= lhost:8891/mywebapp/SimpleSession.jsp,<BR>> > > ( NVPair(jsession= id, CI9aE8kHeOLIMv5jGL10VOmJVOdcOP2mHKUXBD8sd1u2DN8v7f1c!-2130159706), ))<= BR>> > > <BR>> > > <BR>> > > With this changedu= rl WLS does not accept the sessionid and therefore the session is setup ne= w with each request. I have implemented an automatism, that changes the se= ! ssionid to be a variable being set dynamically on replay, but that does = not work, as the sessionid is recorded to be a parameter instead to be par= t or the url.<BR>> > > <BR>> > > <BR>> > > <BR>= > > > Is there any workaround=3F<BR>> > > <BR>> > &g= t; <BR>> > > <BR>> > > I addeda small demowebapp to this= email. Just deploy and call /mywebapp. If you use the redeploy button in = the browser, you will change the session, as there is no session cookie. B= ut if you use the reload link, url rewriting will be added to the url and = the session stays active.<BR>> > > <BR>> > > <BR>> &g= t; > <BR>> > > Thanks for help and regs,<BR>> > > <BR= >> > > Nicole<BR>> > > <BR>> > > <BR>> > = > <BR>> > > <http://img.web.de/p.gif> <BR>> > >= Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.<BR>> > &= gt; weltweit telefonieren! http://freephone.web.de/=3F! mc=3D021201 <http:/= /freephone.web.de/=3Fmc=3D021201> <BR>> > << File: mywebapp.war= >> <BR>> > <BR>> > <BR>> > ----------------------= ---------------------------------<BR>> > SF email is sponsored by - = The IT Product Guide<BR>> > Read honest & candid reviews on hund= reds of IT Products from real users.<BR>> > Discover which products = truly live up to the hype. Start reading now.<BR>> > http://ads.osdn= .com/=3Fad=5Fide95&alloc=5Fid=14396&op=C3=BFick<BR>> > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F<BR>> > Grinder-use mailing list<BR>&g= t; > Gri...@li...<BR>> > https://lists.sourc= eforge.net/lists/listinfo/grinder-use<BR>> <BR>> <BR>> <BR>> <= BR>> <BR>> <http://img.web.de/p.gif> <BR>> Verschicken Sie = romantische, coole und witzige Bilder per SMS! <BR>> Jetzt bei WEB.DE F= reeMail: http://f.web.de/=3Fmc=3D021193 <http://f.web.de/=3Fmc=3D021193> <BR= >> <BR>> HW=A6j)b=B2=CAh=9E=CA+y=D6=F2N=17=88L=FA=E8v=E7-=1A=E8=9Dy=17=9Av=1A'z=CBjwbv=B7=AF=89=EC,=A2xn=9D=DA=DEv=CA=1F!3=EB=A1=DB=9C= =B6=C7=EB=A2j=DEj[=ACz=BB=03=8A=C7(=BD=EA=F0=86'!=A6=BA=1D=B9=CBl=B6=BB=A5=CAX=AFz=EAm=A2=D8^=87*^J=D6=AB=B6=B7=9Av)=E0=9E=8C!=B6=DA=7F=FD=A7l=A2=C7gr=89=BFi=D8=9D<BR><= BR></P><br><br><table cellpadding=3D"0" cellspacing=3D"0" border=3D"0"><tr><td b= gcolor=3D"#000000"><img src=3D"http://img.web.de/p.gif" width=3D"1" height=3D"1" b= order=3D"0" alt=3D"" /></td></tr><tr><td style=3D"font-family:verdana; font-size= :12px; line-height:17px;">Mit WEB.DE FreePhone mit hoechster Qualitaet ab = 0 Ct./Min. <br>weltweit telefonieren! <A HREF=3D"http://freephone= .web.de/=3Fmc=3D021201"><B>http://freephone.web.de/=3Fmc=3D021201</B></A> &nb= sp;</td></tr></table></body></html> |