Hi,
I guess that the single problem for you is that the
webtestTaskdefs.properties doesn't exist anymore. Nevertheless it is
still available in webtest.jar, which means that you can simply change
your line
<taskdef file="${canoo.home}/webtestTaskdefs.properties">
to
<taskdef resource="webtestTaskdefs.properties">
This being said, I recommend you to use the utility webtest.xml, this
will allow to simplify your tests and bring additional features.
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
Moynihan, Michael A wrote:
> Hi all,
>
> I'm upgrading my set of canoo tests to use WebTest 2.6 which contains
> bug fixes which I need. My canoo tests were developed a few years ago
> and therefore seem a little old school. When I try to use 2.6 my ant
> build fails with the following output
>
> Problem: failed to create task or type testSpec
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken
> place.
>
> Its having a problem with the way I have defined my entities. Also I
> reference the webtestTaskdefs.properties file which no longer exists in
> 2.6. I'm just wondering how I can overcome these issues. What is the
> easiest upgrade path without having to totally redo my tests? The tests
> run successfully with WebTest 2.5. Below is my ant file which I use to
> execute the tests.
>
>
> <?xml version="1.0"?>
> <!DOCTYPE project[
> <!ENTITY canoo-config SYSTEM "canoo-config.xml">
> <!ENTITY loginPage SYSTEM "canoo-getLoginPage.xml">
> ]>
> <project name="Sample App Test" default="run-tests">
> <property file="canoo.properties"/>
> <property name="canoo.home" value="C:/canoo26"/>
> <taskdef file="${canoo.home}/webtestTaskdefs.properties">
> <classpath>
> <fileset dir="${canoo.home}"
> includes="**/lib/*.jar"/>
> </classpath>
> </taskdef>
> <target name="run-tests">
> <delete dir="report"/>
> <mkdir dir="report"/>
> <!-- Navigate to the Login Page -->
> <testSpec name="loginPage">
> &canoo-config;
> <steps>
> <!-- Go to the Login Page -->
> &loginPage;
> </steps>
> </testSpec>
> </target>
> </project>
>
>
> Any help greatly appreciated. Thanking you in advance.
>
> Regards,
> Michael
>
>
>
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest