Marc Guillemot schrieb:
Hi Shafeer,
how do you define your the classpath for the tasks?
I have a allTestCases.xml file which has the following;
<?xml version="1.0"?>
<project name="SimpleTest" basedir="." default="all">
<property name="webtest.home" location="../Canoo WebTest" />
<import file="${webtest.home}/lib/taskdef.xml" />
<import file="${basedir}/includes/definition.xml" />
...... so on
definition.xml looks as below;
<project name="definition" basedir="..">
<taskdef file="../Canoo WebTest/webtestTaskdefs.properties">
<classpath>
<fileset dir="../Canoo WebTest/lib" includes="**/*.jar" />
</classpath>
</taskdef>
<macrodef name="ui.testSpec">
<attribute name="name" />
<element name="ui.steps" />
<sequential>
<testSpec name="@{name}">
<config host="localhost"
port="8080"
protocol="http"
basepath="dschingiskhan"
haltonfailure="false"
failureproperty="test.failure"
haltonerror="false"
errorproperty="test.error"
resultpath="results"
resultfile="results.xml"
summary="true"
saveresponse="true">
<header name="Accept" value="*/*" />
<option name="ThrowExceptionOnFailingStatusCode"
value="false" />
</config>
<steps>
<ui.steps />
</steps>
</testSpec>
</sequential>
</macrodef>
</project>
As you see, I have defined taskdef here will be default for all tests.
If I remove this task definition here in the definition.xml file and use
the default one, then it doesn't find a custom propertytable task which
is defined in the webtestTaskdefs.properties file as follows;
...
propertytable=com.canoo.ant.task.PropertyTableTask
...
The corresponding jar file for this task in under lib/optional directory
which is IMO loaded to the classpath. I haven't changed anything else
from the previous version and don't understand why it doesn't show any
output to the console. What I get with the new version is just the ant
target names as shown below;
....
registerAll:
successfulLogin:
rememberLogin:
all:
BUILD SUCCESSFUL
...
Hope this explains the situation.
--
Shafeer Hajamohideen
mindmatters*
* Neuer Kamp 30
20357 Hamburg
Fon +49 40 31792272
Fax +49 40 31792273
E-Mail mailto:[EMAIL PROTECTED]
Website http://www.mindmatters.de/
-------------------------------------------------------------------------
Es läuft und läuft und läuft: Schon über 17.000 Downloads für JSF-Spring,
unsere JSF-/Spring-Integrationslösung! http://jsf-spring.sourceforge.net/
-------------------------------------------------------------------------
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest