Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 50989 invoked from network); 4 Mar 2011 15:23:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Mar 2011 15:23:37 -0000 Received: (qmail 92385 invoked by uid 500); 4 Mar 2011 15:23:36 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 92355 invoked by uid 500); 4 Mar 2011 15:23:36 -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 92347 invoked by uid 99); 4 Mar 2011 15:23:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2011 15:23:36 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of mattkingaby@googlemail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2011 15:23:30 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PvWqT-0003Ld-EJ for jmeter-user@jakarta.apache.org; Fri, 04 Mar 2011 07:23:09 -0800 Date: Fri, 4 Mar 2011 07:23:09 -0800 (PST) From: Reg King To: jmeter-user@jakarta.apache.org Message-ID: <1299252189427-3409634.post@n5.nabble.com> Subject: using SQL select results as a Variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I am new to jmeter, and new to development so i am sorry if this is a simpl= e question, i am unfortunatly finding it a little hard to sus out. I would like to use the results of a MySQL statement as a variable to later call in a HTTP post Request. The basic test is this: As part of the test plan i need to delete a record from the DB (via the HTTP Request), however the delete function uses the table ID as a hidden value. Each time a record is created the ID changes in the DB, so I cannot use a constant value and need to select the record ID value and use it as a variable for the HTTP Request to call. SQL =3D select ID from orderdetails where userno =3D 'AA044' and and accno = =3D 99999999; I have set up a JDBC request to get this from the DB which is returning =E2= =80=98ID XXXXXX=E2=80=99. This is where i am getting a little lost. I have set up a = regex after this but am unable to sus out what the settings should be, or what else i need to do to. Would it be possible for someone to give me a really basic ABC step guide t= o how i can get this to work? Thank you very much for your time with this, after 3 hours of staring at jmeter im getting a little frazzled -- View this message in context: http://jmeter.512774.n5.nabble.com/using-SQL-= select-results-as-a-Variable-tp3409634p3409634.html Sent from the JMeter - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org