Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 35573 invoked from network); 12 Nov 2009 19:54:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Nov 2009 19:54:13 -0000 Received: (qmail 72725 invoked by uid 500); 12 Nov 2009 19:54:13 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 72656 invoked by uid 500); 12 Nov 2009 19:54:13 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 72645 invoked by uid 99); 12 Nov 2009 19:54:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 19:54:13 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.142.236.131] (HELO web58108.mail.re3.yahoo.com) (68.142.236.131) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 12 Nov 2009 19:54:10 +0000 Received: (qmail 52923 invoked by uid 60001); 12 Nov 2009 19:53:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1258055629; bh=5dVdVAi3gSO10qRpvkmmhHxqWg3TW7GfT9Z6m4AVLjE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Wky//dUZ2QdUUvhO8QSkMxoxW+3UtajcBXLSZFTHpZXk8YJ8+x9XqPIZe0o+68kcBIuOEWmOz4uD+jdfFDdxYsSP0gekewaAIktDgdA4AG4xtsJdp5f5M5n2bgQvIO8h4RajBDo3jBIXDu13qxdo7Pcu7/zB5eeZURqIz4HJB1A= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=gYjSpEUu9vm3vWSz6lhknhSuz27IwGzA3FN/cFjuI4CatGB8xB05C0G4fuAOy+lU9JXqrakFnnI2sZXokfwXlC/UM13h1RRJOoX/n/VKhPL+U1cPWnsPGyBQvghY9cpJYzjY/R9I8F7iE9M+hjlqBKDVEDttsZFiHU5SRv5pttA=; Message-ID: <27210.52878.qm@web58108.mail.re3.yahoo.com> X-YMail-OSG: GQiDVsgVM1kOaVdRktWgsy6g9_gdtnQBryGt8wM9iDFv00d8lXUtV1jsiqgy.t9T5_.fAygB7wJ2LfWhPTwWExbt6JLrqBbpckaWMRYC7HhAuT2Z0svHEFnPqRtGAZM55B9WOJeFuhjBAiWO9GDUfXea3uNfgciBju0DwKrTB2XiYvpGj0cjnGPPA.ZgQJ0t6zYHxMuT9VT1c44fshk9b3BtfI5_r59IYnMOiP0yJ.HuplBU2cia2eLp6poKYKX5ocOfRPX6WJ6k8hNwaeA.Auj6BdFgHLaOK6H3QUx6T3OyiQB27hRPOsz_TO4l1tmTKWLa9xmi Received: from [208.240.243.170] by web58108.mail.re3.yahoo.com via HTTP; Thu, 12 Nov 2009 11:53:48 PST X-Mailer: YahooMailRC/211.6 YahooMailWebService/0.7.361.4 References: <454377.24331.qm@web58108.mail.re3.yahoo.com> <4483c26c0911121129h7c862613pf2faccd2d530a995@mail.gmail.com> <831732.76514.qm@web58107.mail.re3.yahoo.com> <4483c26c0911121140x311c12e3o421283e38abc82cd@mail.gmail.com> Date: Thu, 12 Nov 2009 11:53:48 -0800 (PST) From: gubbu gubbu Subject: Re: Setting up cookie To: JMeter Users List In-Reply-To: <4483c26c0911121140x311c12e3o421283e38abc82cd@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-751180838-1258055628=:52878" --0-751180838-1258055628=:52878 Content-Type: text/plain; charset=us-ascii Thank you Sir. One last question . Let me keep it even simpler. Say I am doing a GET for "a.jsp" which returns a cookie and I want to change it (not just clear it) what can I use to set it ? Steps GET /a.jsp which returns a cooke as follows COOKIE 2CF9CB9FDA35012.ap1jvm1 Now I need to change this to COOKIE 2CF9CB9FDA35012.ap1jvm2 then do GET a.jsp Change the cookie to 2CF9CB9FDA35012.ap2jvm1 then do GET a.jsp and so on Gubs ________________________________ From: Deepak Shetty To: JMeter Users List Sent: Thu, November 12, 2009 11:40:28 AM Subject: Re: Setting up cookie Hi you should be able to just check the CookieManager clear cookie after every iteration .. FYI the way to do it in Beanshell would be to attach a preprocessor to the sampler before which you want the cookies to be cleared and use *sampler*.*getCookieManager*().*clear*() regards deepak On Thu, Nov 12, 2009 at 11:35 AM, gubbu gubbu wrote: > Thanks Deepak. My requirement is say for example I have set 1 user and 5 > iteration . I would like the cookie value to be changed after each iteration > so I can exercise all the 4 jvms. It should start with ap1jvm1 and go > through the cycle . > Gubs > > > > > ________________________________ > From: Deepak Shetty > To: JMeter Users List > Sent: Thu, November 12, 2009 11:29:15 AM > Subject: Re: Setting up cookie > > See if > > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Cookie_Manager > Clear Cookies after every iteration works for you (cookies are stored per > thread so multiple threads arent a problem and will goto ifferent vm's > assuming your loadbablancer is set that way) > If you need to do it on demand then you can use beanshell to clear the > cookie manager > regards > deepak > > On Thu, Nov 12, 2009 at 10:57 AM, gubbu gubbu > wrote: > > > Hi , > > I have a few appservers each running a couple of jvms. For example > > ap1jvm1 > > ap1jvm2 > > ap2jvm1 > > ap2jvm2 > > > > When a request is made to server the user gets stuck to a jvm and a > cookie > > is set for example "ABCsession:ap1jvm1" or "ABCsession:ap2jvm2" . I > created > > a jmeter test which login in a user and does some transactions and logs > out > > and it works fine . However I do not have the contril for a particular > > thread to land on a particular jvm . I am using the generi HTTP cookie > > manager . > > > > How can I control so I can explicitly clear the cookie and then set a new > > cookie so I can go to each jvm and touch them ? > > > > thanks > > Gubs > > > > > > > > > > > > > --0-751180838-1258055628=:52878--