Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 80229 invoked from network); 11 Aug 2008 01:31:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Aug 2008 01:31:47 -0000 Received: (qmail 36053 invoked by uid 500); 11 Aug 2008 01:31:44 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 36019 invoked by uid 500); 11 Aug 2008 01:31:44 -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 36008 invoked by uid 99); 11 Aug 2008 01:31:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Aug 2008 18:31:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2008 01:30:47 +0000 Received: by fg-out-1718.google.com with SMTP id 22so857282fge.1 for ; Sun, 10 Aug 2008 18:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=btlxHX6mxlcLsAzvYGOTemeo+S1nl6y/CUDZ/ruSj68=; b=AGaBtH3d8xkVQmbQjQ+R6oiPCwJwSE5XIYbS8SyRwYEp6Da7Qwztq1HWlOKEt7Qepx AtK44XMtM0uikF1Okib7yS+fRnq+n9qwSjKGjV8teXGU/xaBtcw76bnYHt9xzEnH2wwn EhfpEWTZ43lFOVG55+ltZVqJIDfBr/h9ZQCnA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=OVfsXxASlR0KqpkHQC9k54D4rKsu329rWeUow3WW6jQ5c70kpXz/gerv3URvwakNzy 07ZWBOxNroLEilAlXCoT/ckrg1C3YvjhxEFcFRZVyD5Z8VPBmCoqRkNAdsNZDi4vV9fI ydEks7xd4Ojw3k9FmZKLp9sz7+1+wYevzX82s= Received: by 10.86.90.13 with SMTP id n13mr7067550fgb.3.1218418256849; Sun, 10 Aug 2008 18:30:56 -0700 (PDT) Received: by 10.86.57.13 with HTTP; Sun, 10 Aug 2008 18:30:56 -0700 (PDT) Message-ID: <25aac9fc0808101830n4f6e4427ua92f02d13ba0ae06@mail.gmail.com> Date: Mon, 11 Aug 2008 02:30:56 +0100 From: sebb To: "JMeter Users List" Subject: Re: Query | How Can i pass the num_threads jmeter value through ANT task? In-Reply-To: <6ea7516d0807312309w11acf2anfa3711cea59f4ed3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6ea7516d0807312309w11acf2anfa3711cea59f4ed3@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 01/08/2008, Mohamed Niyas wrote: > Hi friends, > > I am using ANT task to run the jmeter test plan without a GUI mode. Here I > wanted to pass the jmeter value for each test script. > In DOS, i was able to over ride the value of this by passing the command as > below. > ** > *DOS MODE is Successful:* > ** > In the test plan, i am using the this function in the num_thread property > "${__P(threads,3)}" --> Nothing but if no value is passed 3 will be taken as > default. > > Then from Command line i am using this following command to execute the > test. > "jmeter -n -t test_plan.jmx -Jthreads=15 -l test_plan.jtl" -- > (now it is taking the value as 15 threads, if i not mentioned this value it > would take 3 threads by default) > ** > *--END DOS MODE--* > ** > How do i pass the value of this Jmeter variables through ANT. Even in ANT i > used the following build settings.. but none was successful. > All the time the default value is only taken it executed the tests for 3 > users only. You can visit the following link for more info: > http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php But i > could not find the solution, what i want to accomplish. > > *failed_settings1: Build.xml values:* > > > testplan="C:\jakarta-jmeter-2.3RC4\bin\Oct_Jmscripts\Stage\Basic_Shopping\Test_Shopping.jmx" > resultlog="C:\jakarta-jmeter-2.3RC4\bin\Oct_Jmscripts\Stage\Basic_Shopping\Basic > Shopping 15U.jtl"/> > This defines the property request.threads, not threads. > > > *failed_settings 2: Build.xml values:* > > > testplan="C:\jakarta-jmeter-2.3RC4\bin\Oct_Jmscripts\Stage\Basic_Shopping\Test_Shopping.jmx" > resultlog="C:\jakarta-jmeter-2.3RC4\bin\Oct_Jmscripts\Stage\Basic_Shopping\Basic > Shopping 15U.jtl"/> > That should work. > > > *failed_settings 3: Build.xml values:* > > > testplan="C:\jakarta-jmeter-2.3RC4\bin\Oct_Jmscripts\Stage\Basic_Shopping\Test_Shopping.jmx" > resultlog="C:\jakarta-jmeter-2.3RC4\bin\Oct_Jmscripts\Stage\Basic_Shopping\Basic > Shopping 15U.jtl"/> > jvmarg is for defining Java arguments. > > > > If anyone find the solution, please share your knowledge. > > > > -- > Regards, > Mohamed Niyas M > Mobile: 98804 59080 > niyas.mohd@gmail.com > to_niyas@yahoo.co.in > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org