Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 6871 invoked from network); 8 Sep 2009 11:14:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Sep 2009 11:14:51 -0000 Received: (qmail 52139 invoked by uid 500); 8 Sep 2009 11:14:50 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 52111 invoked by uid 500); 8 Sep 2009 11:14:50 -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 52101 invoked by uid 99); 8 Sep 2009 11:14:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2009 11:14:49 +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 ragnor84@gmail.com designates 209.85.218.219 as permitted sender) Received: from [209.85.218.219] (HELO mail-bw0-f219.google.com) (209.85.218.219) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2009 11:14:38 +0000 Received: by bwz19 with SMTP id 19so2108149bwz.37 for ; Tue, 08 Sep 2009 04:14:18 -0700 (PDT) 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=KUV98VL3+TNUmAv0qDZnbDR0KoOIOOk4LzZAhgtzK9I=; b=HUKZ6DIeU7rgHpYFG9jTQFfuxThSUruwSYSBVdklff0z/EWSrX50oM1QpuDfT9qxkL SLG4KE95wMWQvsJrP2oBmaLAcf0LdTyu7vhpiet4PrKfI8aKzE7/kXHKSJl4xoul0O9Y M7YrIHC7Bd27HhmKemJ3bRXU1JijQiSIbxPaM= 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=eXSjeaVLFEHqR45OY55mwCQ2rAlJTWZ2xokFm7bao8gn0vFUPs4c3DFe9Zy7hgMOKr wNJmNrS2e9SJNYbNBqj434MXZQc4Kiqewwt48+6gvxaxn2+E8K/DENiMqc9O5fEGtlt8 L6qse/dqoza3aA3l0QS2YN5hEgNAxSSaHBCO8= MIME-Version: 1.0 Received: by 10.103.76.29 with SMTP id d29mr6617295mul.50.1252408457821; Tue, 08 Sep 2009 04:14:17 -0700 (PDT) In-Reply-To: <25342685.post@talk.nabble.com> References: <25330799.post@talk.nabble.com> <435638260909071032w5e186b01ic0dfa5b44c39b09c@mail.gmail.com> <25340094.post@talk.nabble.com> <435638260909072241t4a2eb20bj71a709f4378fdf28@mail.gmail.com> <25342685.post@talk.nabble.com> Date: Tue, 8 Sep 2009 13:14:17 +0200 Message-ID: <435638260909080414i765c056dx449a370a4cd04641@mail.gmail.com> Subject: Re: How to add random values.. From: =?ISO-8859-2?Q?Jakub_Bia=B3ek?= 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 First: 'Variable Name' in JDBC Connection Configuration is not name of the variable where result will be bind but it is the name of pool, similar is in the JDBC Request, so both name should be the same for example mypool. Second: JDBC Request must not be child of the JDBC Configuration Configuration. It is possible to do so but I don't know why it is avaible. JDBC Request should below JDBC Connection Configuration but be on the same level. Third: I have no idea how to extract variable from result returned by the JDBC Request. I tried Regular Expression Extractor and this field Variable names on the bottom of the JDBC Request view but their dont't work. Do you consider to use data from CSV file instead of db directly? It will be faster and easer :). Remeber to put mysql driver library to jmeter lib directory. Best regards, Jakub 2009/9/8 dilantha : > > Hi, > > Thanks a lot..Thak works..I didn't add ${test_id}. That's why it didn't > work..Thank again..If you can please do me a one more favor.Please tel me > about adding values from db..Under the http request i created a JDBC > connection config.My configarations are > > varible name : test_id > Database url: jdbc:mysql://localhost:3306/openevsys > JDBC driver class: com.mysql.jdbc.Driver > username: root > password : root > > Others i left as default.Im not sure about what to put under the JDBC dri= ver > class i just added the same thing which can be seen in the tutorial. > > After that i created a JDBC request under that JDBC connection config.I > gave the =A0same varible name as JDBC cnnection config..Similarly in http > request ('add person') =A0i use variable =A0${test_id}. > > When i run this thing http request didn't send.I just tried by giving > separate names for JDBC config and conection then it sends the http reque= st > but the value of add person is going as ${test_id}.:-(..If you can please > help me..Sorry for bothering.Thanks again. > > > > > RaGnoR wrote: >> >> It works fine for me :). >> Try this, step by step: >> 1. add Random Variable element under your http request ('add person') >> 2. set the name of the Random Variable to test_id (check that this >> name is unique in your test plan) and the minimum and maximum value as >> you need >> 3. in http request ('add person') use variable in this form: ${test_id} >> >> Best regards, >> Jakub >> >> >> 2009/9/8 dilantha : >>> >>> Hi, >>> >>> Thanks for the help.But still im facing that problem. I just right clic= k >>> the >>> http request which im sending and add a Random variable. For example ju= st >>> assume there is a http request called "add person". i just need to send= a >>> random value for person's id with that request. previously i added that >>> "id" >>> parameter under http request. but now i removed it from there and add >>> that >>> parameter to the random value which i have added to that "add person" >>> http >>> request. But still i can't see the random value is going with the http >>> request. because when i go the result tree's request it didn't show me >>> the >>> "id" field which ia have added under the random value. It only showed m= e >>> the >>> static values which i have directly added to the http request..If you c= an >>> please help..I'm n big trouble:-(:-(..Thanks again.. >>> >>> >>> >>> >>> RaGnoR wrote: >>>> >>>> Hi! >>>> >>>> Instead of using Random function try use 'Random Variable' >>>> configuration element. >>>> >>>> Before you use data from db you have to fetch those data. To fetch >>>> data use 'JDBC Connection Configuration' and 'JDBC Request' elements. >>>> Read this: >>>> http://jakarta.apache.org/jmeter/usermanual/build-db-test-plan.html. >>>> >>>> >>>> Best regards, >>>> Jakub >>>> >>>> >>>> 2009/9/7 dilantha : >>>>> >>>>> Hi All, >>>>> =A0I'm bit new to jmeter so at the moment im facing some problems wit= h >>>>> load >>>>> testing. Currently im using jmeter for load testing in a web >>>>> application. >>>>> I >>>>> just want to know how can i generate a random value with the http >>>>> request >>>>> and send . For example just assume that i have a parameter called "id= " >>>>> how >>>>> can i generate a random id to send with the http request..What should= i >>>>> type >>>>> under the value field?..i just type ${_Random(1,10)} under the value >>>>> field >>>>> but it did not work..and the other thing is if i want to assign a val= ue >>>>> to a >>>>> field from a set of values which are stored in the data base how can = i >>>>> do >>>>> that?..is it possible?:-(..If some one know the solution please be ki= nd >>>>> enough to send it..Thanks a lot.. >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/How-to-add-random-values..-tp25330799p25330799.= 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 >>>>> >>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org >>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org >>>> >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/How-to-add-random-values..-tp25330799p25340094.ht= ml >>> 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 >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org >> >> >> > > -- > View this message in context: http://www.nabble.com/How-to-add-random-val= ues..-tp25330799p25342685.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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org