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 075841043D for ; Fri, 11 Jul 2014 03:47:55 +0000 (UTC) Received: (qmail 33153 invoked by uid 500); 11 Jul 2014 03:47:54 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 33127 invoked by uid 500); 11 Jul 2014 03:47:54 -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 33116 invoked by uid 99); 11 Jul 2014 03:47:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2014 03:47:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of johrstrom@hotmail.com designates 65.55.111.80 as permitted sender) Received: from [65.55.111.80] (HELO BLU004-OMC2S5.hotmail.com) (65.55.111.80) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2014 03:47:47 +0000 Received: from BLU436-SMTP95 ([65.55.111.72]) by BLU004-OMC2S5.hotmail.com with Microsoft SMTPSVC(7.5.7601.22712); Thu, 10 Jul 2014 20:47:26 -0700 X-TMN: [DZx6jYz56SM0jwTA5+rCMoLJ1D9omSam] X-Originating-Email: [johrstrom@hotmail.com] Message-ID: Received: from [192.168.2.4] ([23.240.226.14]) by BLU436-SMTP95.smtp.hotmail.com over TLS secured channel with Microsoft SMTPSVC(8.0.9200.16384); Thu, 10 Jul 2014 20:47:24 -0700 Subject: Re: Debug Sampler - Regular Expression Extractor - Response Assertion From: Jeff Ohrstrom To: user@jmeter.apache.org Date: Thu, 10 Jul 2014 20:47:23 -0700 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Jul 2014 03:47:24.0746 (UTC) FILETIME=[D3C002A0:01CF9CBA] X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 2014-07-10 at 08:25 +0000, Gerrit Leder wrote: > Hi all, > > I have a JMeter Test Plan with a Debug Sampler that prints out > system.properties file and others. Below of the Debug Sampler are a Regular > Expression Extractor that defines a variable FOO. This variable is checked > in a Response Assertion if it contains the result of the regex. > > My variable result is always null. > > How come? > Are you giving them a default value? If the RegEx Extractor can't find it it'll be either the default value or null. I tried to replicate this for a second and found that this expression worked to get my java.version. Perhaps your regular expression is not working right? java.version=(.+?)\s > Thanks > Gerrit > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > For additional commands, e-mail: user-help@jmeter.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org For additional commands, e-mail: user-help@jmeter.apache.org