Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 71112D345 for ; Fri, 7 Dec 2012 20:58:49 +0000 (UTC) Received: (qmail 85165 invoked by uid 500); 7 Dec 2012 20:58:48 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 85100 invoked by uid 500); 7 Dec 2012 20:58:48 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 85086 invoked by uid 99); 7 Dec 2012 20:58:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 20:58:48 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [213.199.154.206] (HELO am1outboundpool.messaging.microsoft.com) (213.199.154.206) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 20:58:39 +0000 Received: from mail88-am1-R.bigfish.com (10.3.201.232) by AM1EHSOBE002.bigfish.com (10.3.204.22) with Microsoft SMTP Server id 14.1.225.23; Fri, 7 Dec 2012 20:58:18 +0000 Received: from mail88-am1 (localhost [127.0.0.1]) by mail88-am1-R.bigfish.com (Postfix) with ESMTP id 8179D802EF for ; Fri, 7 Dec 2012 20:58:18 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.236.101;KIP:(null);UIP:(null);IPV:NLI;H:BY2PRD0510HT003.namprd05.prod.outlook.com;RD:none;EFVD:NLI X-SpamScore: -1 X-BigFish: PS-1(zzc85fh4015Izz1de0h1202h1e76h1d1ah1d2ahzz17326ah8275bh8275dh18c673hz2dh54h2a8h668h839hd25hf0ah1288h12a5h12bdh137ah1441h1504h1537h153bh15d0h162dh1631h1758h1155h) Received: from mail88-am1 (localhost.localdomain [127.0.0.1]) by mail88-am1 (MessageSwitch) id 1354913896807509_31130; Fri, 7 Dec 2012 20:58:16 +0000 (UTC) Received: from AM1EHSMHS020.bigfish.com (unknown [10.3.201.231]) by mail88-am1.bigfish.com (Postfix) with ESMTP id BF56748007A for ; Fri, 7 Dec 2012 20:58:16 +0000 (UTC) Received: from BY2PRD0510HT003.namprd05.prod.outlook.com (157.56.236.101) by AM1EHSMHS020.bigfish.com (10.3.207.158) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 7 Dec 2012 20:58:16 +0000 Received: from BY2PRD0510MB388.namprd05.prod.outlook.com ([169.254.5.158]) by BY2PRD0510HT003.namprd05.prod.outlook.com ([10.255.84.38]) with mapi id 14.16.0245.002; Fri, 7 Dec 2012 20:58:13 +0000 From: "BOLB (Bohdan L Bodnar)" To: "JMeter Users List (user@jmeter.apache.org)" Subject: measuring time in "while" loop Thread-Topic: measuring time in "while" loop Thread-Index: Ac3UvDAKDYKeArDmTK6ZoGMA365Vsg== Date: Fri, 7 Dec 2012 20:58:13 +0000 Message-ID: <941709348625F140BE484DC832C50718327369F7@BY2PRD0510MB388.namprd05.prod.outlook.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [12.139.4.1] Content-Type: multipart/related; boundary="_005_941709348625F140BE484DC832C50718327369F7BY2PRD0510MB388_"; type="multipart/alternative" MIME-Version: 1.0 X-OriginatorOrg: panduit.com X-Virus-Checked: Checked by ClamAV on apache.org --_005_941709348625F140BE484DC832C50718327369F7BY2PRD0510MB388_ Content-Type: multipart/alternative; boundary="_000_941709348625F140BE484DC832C50718327369F7BY2PRD0510MB388_" --_000_941709348625F140BE484DC832C50718327369F7BY2PRD0510MB388_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Greetings! Here is the problem: I've HTTP-based API calls to a particular system. The system returns an er= ror code that is either negative (for success) or greater than zero (indica= ting the requested operation has been started). In the event the return code is greater than zero, I poll the system using = a "while" loop. In one of the calls, I'm using the following in the "while= " controller: ${__javaScript(${DEL_CAT1_STATUS} > 0)}. The portion of the= script looks as follows: WHILE CONTROLLER HTTP REQUEST (this is the API call) REGULAR EXPRESSION EXTRACTOR (to get "DEL_C= AT1_STATUS") DELAY I want to measure the total time spent in this "while" loop (this is for st= atistical analysis). High accuracy isn't all that important - the loop wil= l spin at least a dozen or so times and the delay probably swamp measuremen= t error. Any suggestions? Thanks, Bo [LearnAboutUPI-icons-notrademrks] [Panduit-logo-w-bp-notrademrks] --_000_941709348625F140BE484DC832C50718327369F7BY2PRD0510MB388_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Greetings!

 

Here is the problem:

 

I've HTTP-based API calls to a particular system.=   The system returns an error code that is either negative (for succes= s) or greater than zero (indicating the requested operation has been starte= d).

In the event the return code is greater than zero= , I poll the system using a "while" loop.  In one of the cal= ls, I'm using the following in the "while" controller:  ${__= javaScript(${DEL_CAT1_STATUS} > 0)}.  The portion of the script looks as follows:

 

WHILE CONTROLLER

        &= nbsp;       HTTP REQUEST (this is the API cal= l)

        &= nbsp;           &nbs= p;           REGULAR EXPR= ESSION EXTRACTOR (to get “DEL_CAT1_STATUS”)

        &= nbsp;       DELAY

 

I want to measure the total time spent in this &#= 8220;while” loop (this is for statistical analysis).  High accur= acy isn’t all that important – the loop will spin at least a do= zen or so times and the delay probably swamp measurement error.<= /p>

 

Any suggestions?

 

Thanks,

 

Bo

 

 

 

3D"LearnAboutUPI-icons-notrademrks"

=3D"Panduit-logo-w-bp-notrademrks"=

 

--_000_941709348625F140BE484DC832C50718327369F7BY2PRD0510MB388_-- --_005_941709348625F140BE484DC832C50718327369F7BY2PRD0510MB388_--