Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 79634 invoked from network); 7 Feb 2008 22:26:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2008 22:26:26 -0000 Received: (qmail 93954 invoked by uid 500); 7 Feb 2008 22:26:17 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 93653 invoked by uid 500); 7 Feb 2008 22:26:16 -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 93642 invoked by uid 99); 7 Feb 2008 22:26:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 14:26:16 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pmr16366@gmail.com designates 209.85.128.185 as permitted sender) Received: from [209.85.128.185] (HELO fk-out-0910.google.com) (209.85.128.185) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 22:26:01 +0000 Received: by fk-out-0910.google.com with SMTP id z23so3196105fkz.5 for ; Thu, 07 Feb 2008 14:25:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=LdX7623T9Vx0xeoHaB7KeadYb4HQSvy65NzrEbFXuh0=; b=PMSZcE8MJhEph9pcCRXS0AUPte63OqSNXpEUHBXoKoazNMyeW/CO1KMkiRTr499LG+8IR9BBTYFWqekmoH86rFlUoIIdhGgVXhP3mIX21BzyqJEqEAc3/obdKKUOwmNI/YGt+F0bvRdreMaLmprGXpurZOQh+REx98HWV0hyqNE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=finfQg0KzFJz8jI6dphhlkZ7TR4TvpAzUE+2eaTne4A/saoDNWzLIHqoihEcr7S09QJ6X4Pe6zu78MPe56vQDYemb3w5XhH9I9H6wjbY1HgiVXpCwZthyrVLvErPPURtqRDg3Z+N/f+I7kBQHrVDF1d7+xb5MiYQDs0ISZeFkSs= Received: by 10.82.182.1 with SMTP id e1mr21509942buf.27.1202422554082; Thu, 07 Feb 2008 14:15:54 -0800 (PST) Received: by 10.82.173.15 with HTTP; Thu, 7 Feb 2008 14:15:54 -0800 (PST) Message-ID: Date: Thu, 7 Feb 2008 15:15:54 -0700 From: "Paul Rogers" Sender: pmr16366@gmail.com To: "JMeter Users List" Subject: Re: grouping requests and getting reuse In-Reply-To: <25aac9fc0802061452k5ac9b0b7i7bd857cdb45de2e8@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30309_325148.1202422554076" References: <25aac9fc0802061452k5ac9b0b7i7bd857cdb45de2e8@mail.gmail.com> X-Google-Sender-Auth: 090ebce02ce5a905 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_30309_325148.1202422554076 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline thanks, worked perfectly. Sorry for the double post, Im having some gmail problems. I now have another issue, which I expect is just due to my misunderstanding of jmener. Im trying to request some images. The first time through should cause all the images to get downloaded, On the last image, I use a reg exp to get the last-modified-date from the response header, and use this as the value for the If-modified-since request header on subsequent requests The intention is that this is what a browser would do - download an image the first time it encounters it, and then subsequently request the image, but get back a 304 as the image hasnt changed my test plan is like this user defined variable set_initial_modified header - this sets a variable to a date that will cause the server to send the image images header-manager get /image/logo.gif get /another/image2.gif Thread Group get /some/page get images reg-exp extractor to reset the variable to the last-modified-date from the header get /another/page get /images Ive moved the reg-exp around, but it always seems to get executed after the first request for logo.gif , rather than after image2.gif, which means all my images apart from the first one have 304 responses. Do I need to do something special to ensure it gets executed after the first request to image2 ? Many thanks Paul On 2/6/08, sebb wrote: > > Have you tried the Module Controller: > > > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Module_Controller > > > On 06/02/2008, Paul Rogers wrote: > > I looked through the manual, but couldnt see a solution to this. > > > > Id like to be able to group requests so I can reuse them, so instead of > > having 20 get requests to images, I have a single item that will in turn > > call those 20 gets. > > > > > > so something like this, as a sort of pseudo test plan > > > > > > > > > > gropup --IMAGES-- > > get /images/logo.gif > > get /banner.gif > > ThreadGrouop > > get --IMAGES-- > > get /some/path/login.jsp > > post /some/path/login.jsp > > get --IMAGES-- > > get /some/other/page > > > > > > > > > > and possibly even better would be to be able to store the --IMAGES-- in > a > > different file, so I can reuse it betwen scripts. > > > > > > Any ideas greatly appreciated. > > > > Paul > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > ------=_Part_30309_325148.1202422554076--