Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 40760 invoked from network); 20 Dec 2010 15:27:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Dec 2010 15:27:19 -0000 Received: (qmail 52570 invoked by uid 500); 20 Dec 2010 15:27:18 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 52356 invoked by uid 500); 20 Dec 2010 15:27:17 -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 52348 invoked by uid 99); 20 Dec 2010 15:27:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Dec 2010 15:27:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qy0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Dec 2010 15:27:08 +0000 Received: by qyj19 with SMTP id 19so3081358qyj.10 for ; Mon, 20 Dec 2010 07:26:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=XtHyIr2PeUbvYvpR1lRN5NKKFRHGld+6JEvbktjQvtc=; b=wYeBcpl6ufMUJy2QeIYkg680FMs1MeNBVlgMKXiuJk4RslsNoQkVLS5j2xalZjHbfg FkHgtCXZ+WQXXqyG54BhMqCZY4IyDrRQq2C8wLABr9GIRGGzm4d++dRfFMIyPdRTGBMK 8Xge91g/oyLvRwpSE4C5mDd+iSlmWF98sSxKw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=fGLsUhZwuo1P+JaMoNkEmAehGzvHEa1JWJ2MopC3yPmyhRjqKwnFEFXWo9H3AB8txO qv+mLj2JkUH+BZluVGoUHIg2jCdoT0UwdEIH11ozG3QOEQtVck4rVStVnx5XRyFy1pfS SccHarm2ap6HU6ptTovlOlv19E98nptdB2cVQ= MIME-Version: 1.0 Received: by 10.224.46.1 with SMTP id h1mr714244qaf.306.1292858807718; Mon, 20 Dec 2010 07:26:47 -0800 (PST) Received: by 10.220.64.94 with HTTP; Mon, 20 Dec 2010 07:26:47 -0800 (PST) In-Reply-To: References: Date: Mon, 20 Dec 2010 15:26:47 +0000 Message-ID: Subject: Re: IF or WHILE Contoller to limit requests by current time From: sebb To: JMeter Users List Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 20 December 2010 15:17, luke tarr wrote: > > Hi, > I=92m after a bit of help with Jmeter. > I have a time parameter that is sent with a request which effectively loo= ks like this > TIME=3D2010-12-07T09:00:00 > I have used the time function within the parameter so that the year, mont= h, date and time(HH) are all sourced from the system clock and are therefor= e always up-to-date; the parameter that is now passed is shown below. > TIME=3D${__time(yyyy)}-{__time(MM)}-${__time(dd)}T${__time(HH)}:00:00 Why don't you use: TIME=3D${__time(yyyy-MM-ddTHH00:00)} to create the time? > This works fine but I would like to limit when the HTTP request is used d= epending upon the minutes past the hour; there is a cycle of four differing= images that are available, changing every 15 minutes e.g. T09:00:00 is ima= ge 1, T09:15:00 is image 2 etc). > My initial thought was to use either an IF of WHILE controller that would= tell the HTTP request to only function if the actual minutes are within a = given range (there would be a HTTP request set for each 15 minute window an= d each would have a controller) but I can=92t figure it out. > So, for the first 15 minute window I went along the lines of =91${__time(= mm)}<15=92 for IF and =91${__javaScript(${__time(mm)}<15)}=92 for WHILE to = see if the request could be limited to a certain part of the hour (it would= poll every minute up to the point in time when the next 15min period start= s). =A0The instance would be left running for fairly long durations of time= to see that the images (content changed/were available in a timely fashion= ). > Any ideas would be greatly appreciated. I would probably use the switch controller, and convert the time into 0-3 quarters. > Many thanks, > > Luke --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org