Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 11780 invoked from network); 2 Dec 2009 20:52:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Dec 2009 20:52:25 -0000 Received: (qmail 25346 invoked by uid 500); 2 Dec 2009 20:52:24 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 25311 invoked by uid 500); 2 Dec 2009 20:52:24 -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 25301 invoked by uid 99); 2 Dec 2009 20:52:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Dec 2009 20:52:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 72.14.220.155 as permitted sender) Received: from [72.14.220.155] (HELO fg-out-1718.google.com) (72.14.220.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Dec 2009 20:52:16 +0000 Received: by fg-out-1718.google.com with SMTP id e21so269186fga.13 for ; Wed, 02 Dec 2009 12:51:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=N9/DYfUCSrs3QYtT/mzi8OOfmVnLRRJ6FbML5wXiQro=; b=FwX8gG3F5hUSUXXwntKuRReAdrDfOCmA2XlT1jfn8j5Uu8xTYdJbmSaa5zGYTpGbEG npKv0cTaJzwQrPULuh/98YpO43a4xLSnRB2StpgBbywgJUxLFDGiRlIsq5DlgQqZyD0H NnhcOG0fgFfsu5ozX6GvGh1gu7VaoKA1ClRiM= 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=WK+UqfmOrMW84GKoviW3Jv03rmA1PLZ/exX1+6a3PBK73+u5AoQlxNpyzX17qooUVx c9OKiCBs2OY2kpgpnQzrfKk+SYARsHRNO/IPUJ3+prRPRvoE3ugw7j1P1em5LGu7NebZ zKVNlKqDt4FLDW/VdbPKzMSiE6mNppjfM3RqY= MIME-Version: 1.0 Received: by 10.239.184.154 with SMTP id y26mr56140hbg.196.1259787116333; Wed, 02 Dec 2009 12:51:56 -0800 (PST) In-Reply-To: References: Date: Wed, 2 Dec 2009 20:51:56 +0000 Message-ID: <25aac9fc0912021251s62082afai23d1e34caa3fe67@mail.gmail.com> Subject: Re: Logical Assertions From: sebb To: JMeter Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 02/12/2009, Carl Shaulis wrote: > Hello JMeter community, > > I have a question regarding assertions for the samplers. When I submit = some > XML via jmeter I expect three different types of responses. Can I set u= p > the assertions to be logical assertions rather than a single explicit > assert? > > Assert =B3ok=B2 or assert =B3no=B2 or assert =B3Stuff=B2 > > I would prefer to only use one sampler and assert that anyone of the abo= ve > three responses are present in the response data. I could create three > thread groups and three sets of data targeting each type of response. I > would prefer to send in random data and validate that one of these three > responses is present. > > If I set up the test with a single assert for =B3OK=B2 my test passes si= nce the > response data is OK. If I add assertions for =B3no=B2 or =B3stuff=B2, t= hen the OK > passes and the other two assertions fail. I want the test to pass if it > finds anyone of the three values. Try RE alternation, i.e. OK|no|stuff > Any suggestions would be appreciated! > > > Carl > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org