ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "W. Sean Hennessy" <shenne...@goldenhourdata.com>
Subject RE: Jmeter Ant Task
Date Mon, 25 Aug 2003 21:57:54 GMT
try placing your <jmeter task within a <target name="exec.jmeter"  element.

-----Original Message-----
From: Archana Bharathidasan [mailto:archanabharathi@yahoo.com]
Sent: Monday, August 25, 2003 2:33 PM
To: user@ant.apache.org
Subject: Jmeter Ant Task


Hi,

I am writing an Ant task to automate running JMeter
test files as per the instructions given at

http://www.programmerplanet.org/ant-jmeter/

This is the build.xml file that I have written
(essentially the same as the one in the website):

<?xml version="1.0"?> 
<project name="test" default="compile" basedir=".">
<taskdef name="jmeter"
classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>

<jmeter
    jmeterhome="c:\jakarta-jmeter-1.9.1"
    testplan="c:\basic\correctlogin.jmx"
    resultlog="c:\basic\JMeterResults.jtl"/>
</project> 

and also included the ant-jmeter.jar file in my ant
classpath.

However, when I run ant, I get the following error:

file:C:/build.xml:8: Unexpected element "jmeter"
        at
org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl
.java:170)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:117)
        at
org.apache.tools.ant.Main.runBuild(Main.java:596)
        at
org.apache.tools.ant.Main.start(Main.java:196)
        at
org.apache.tools.ant.Main.main(Main.java:235)

I am not sure what I am doing wrong. Any help will be
appreciated!

Thanks,
Archana


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It is better to be hated for what you are than to be loved for what you are not.

-Andre Gide

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message