This is the line with the problem:

<jmeter
jmeterhome="C:/jakarta-jmeter-2.3.4"

It is missing the closing bracket:

<jmeter
jmeterhome="C:/jakarta-jmeter-2.3.4">


Also make sure you download the Ant-JMeter jar file and put it in Ant's lib
folder as described at the beginning of this page:

http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php

Regards,

Rodolfo



On Thu, Mar 11, 2010 at 10:22 PM, Deepak Shetty <[email protected]> wrote:

> your build file isnt valid xml. You can open the file in IE or FF and see
>
> regards
> deepak
>
> On Thu, Mar 11, 2010 at 8:31 PM, Anamika aaa <[email protected]> wrote:
>
> > thank you for the reply
> > i tried implementing the same but when i am running the ant build i am
> > getting premature end of file error. Please let me know if anyone has got
> > this error before
> > Thanks and Regards
> >
> > On Tue, Mar 9, 2010 at 8:45 AM, Rodolfo Landa <[email protected]
> > >wrote:
> >
> > > This is the way I pass parameters from Ant to JMeter:
> > >
> > > a) I run Ant from the a batch file:
> > >
> > > >> runBat www.mysite.com 5 10
> > >
> > > The batch file looks like:
> > >
> > > ant -f "C:\LoadTest\Run\run.xml" -Dhost= %1 -DnumberOfUsers= %2
> -DrampUp=
> > > %3
> > >
> > >
> > > b) The Ant task is an xml file that looks like this:
> > >
> > > <?xml version="1.0"?>
> > > <project name="Orion Load Test" basedir=".">
> > > <taskdef name="jmeter"
> > > classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
> > > <jmeter
> > >  jmeterhome="C:/jakarta-jmeter-2.3.4"
> > >  <property name="request.threads" value="${numberOfUsers}"/>
> > >  <property name="test.host" value="${host}"/>
> > >  <property name="loadtest.rampUp" value="${rampUp}"/>
> > > </jmeter>
> > > </project>
> > >
> > > c) In the user.properties file I added the delay property like this:
> > >
> > > loadtest.rampUp=""
> > >
> > > d) Finally I added the following to the JMeter plan where needed:
> > >
> > > ${__P(test.host)}
> > > ${__P(request.threads)}
> > > ${__P(loadtest.rampUp)}
> > >
> > > I hope this helps,
> > >
> > > Rodolfo
> > >
> > >
> > > On Sat, Mar 6, 2010 at 10:55 PM, Anamika aaa <[email protected]>
> > wrote:
> > >
> > > > Hi
> > > >   I am also trying to run the Jmeter using Ant build file but can u
> pls
> > > > tell me how to pass the number of threads and server name from
> outside
> > > .jmx
> > > > file ?
> > > >
> > > > Thanks in advance
> > > >
> > > >
> > > >
> > > > On Thu, Mar 4, 2010 at 7:24 AM, sebb <[email protected]> wrote:
> > > >
> > > > > On 03/03/2010, Rodolfo Landa <[email protected]> wrote:
> > > > > > All,
> > > > > >
> > > > > >  I use JMeter Ant Task to run test plans. I pass the number of
> > > threads
> > > > > and
> > > > > >  loops like this:
> > > > > >
> > > > > >  <property name="request.threads" value="1">
> > > > > >  <property name="request.loop" value="10">
> > > > > >
> > > > > >  I cannot find how to pass the Ramp-Up period. Have someone done
> it
> > > > > before or
> > > > > >  knows the name of this property?
> > > > >
> > > > > I don't know - the JMeter Ant task is not part of JMeter.
> > > > >
> > > > > However, you can just define the ramp-up using a property -
> > > > > ${__P(request.rampup)} - in the test plan and then pass in the
> > > > > property instead.
> > > > >
> > > > > >  Thanks in advance.
> > > > > >
> > > > > >
> > > > > >  Rodolfo
> > > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [email protected]
> > > > > For additional commands, e-mail:
> [email protected]
> > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to