Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 29884 invoked from network); 16 Jun 2006 23:49:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2006 23:49:48 -0000 Received: (qmail 24449 invoked by uid 500); 16 Jun 2006 23:49:46 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 24196 invoked by uid 500); 16 Jun 2006 23:49:45 -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 24185 invoked by uid 99); 16 Jun 2006 23:49:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2006 16:49:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sebbaz@gmail.com designates 66.249.82.202 as permitted sender) Received: from [66.249.82.202] (HELO wx-out-0102.google.com) (66.249.82.202) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2006 16:49:44 -0700 Received: by wx-out-0102.google.com with SMTP id h26so573963wxd for ; Fri, 16 Jun 2006 16:49:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=h7wmRq1jughJLsDx+JEB3WRhGzG+VnXhebvdj8oPW7fjPdJPMENwKDqEVWGDDtkBUaaeGmyL0oDGEzTKaA96fz2a6DHErWzpzTu3MXeijpdV3CVKyYws5ln9/Irt/yExHadOAywO5NsV20jVKHmxqEEbm9Gcb5tFPpF2r/gv+lM= Received: by 10.70.71.4 with SMTP id t4mr375387wxa; Fri, 16 Jun 2006 16:49:23 -0700 (PDT) Received: by 10.70.91.4 with HTTP; Fri, 16 Jun 2006 16:49:23 -0700 (PDT) Message-ID: <25aac9fc0606161649p4427c79q3d939dd4ddff9d4d@mail.gmail.com> Date: Sat, 17 Jun 2006 00:49:23 +0100 From: sebb To: "JMeter Users List" Subject: Re: Calling Java Classes From JMeter In-Reply-To: <4909157.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4771959.post@talk.nabble.com> <27e674a90606080657y2d33b675ofe94f7385226c22d@mail.gmail.com> <4909157.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You can certainly use the RE with Java Requests. The RE works on the body, headers or URL. The setResponseMessage() method sets the message corresponding to the responseCode. e.g. for code=200 that would be "OK". These are not part of the headers, certainly for a SampleResult. You probably ought to be using setResponseData() instead. S On 16/06/06, Josh Drummond wrote: > > I'm also having a problem with this. I successfully created a custom java > request class, compiled/jarred and it shows up in the JMeter GUI dropdown. > I added this Java Request to my JMeter test and the class is getting called > correctly. However I want to return data from the Java Request back to my > JMeter script for use later in the script. To do this I call > "results.setResponseMessage()" inside the runTest() method and return that > results object. I know it is returning this correctly because I have a View > Results Tree control and for each Java Request the Sampler Result has my > string as the HTTP response message. Next step I want to extract that value > using the Regular Expression Extractor (I've done this before extracting > results from normal http requests without any problem), however when I do it > for a Java Request (the same data pattern and regex) it does not find a > match. I'm fairly certain there isn't a problem in the data or regex, so my > question is can I even use a Regular Expression Extractor as a child Post > Processor to a Java Request and successfully extract data from the HTTP > response message of the Sampler result? > -- > View this message in context: http://www.nabble.com/Calling-Java-Classes-From-JMeter-t1754973.html#a4909157 > Sent from the JMeter - User forum at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org