Thanks Marc,

The suggested solutions works for me and the upgrade to 2.6 fixed the
other issues I was having. 

However, I've run into another small problem. A separate xml results
file (WebTestReport.xml) is generated for each testSpec. Previously, one
xml result file was generated which allowed for easy transformation
using the xsl style sheet. Can I redirect output to one file which can
then be parsed to create the html output required. I specified a
resultfile property in the canoo-config file but it doesn't seem to be
picked up using WebTest 2.6 

<config host="server.fmr.com" port="8888" protocol="http"
basepath="/myappstart" resultpath="report" resultfile="canoo-result.xml"
summary="true" saveresponse="true"/>

Can Webtest 2.6 be configured to produce one output file?

Thanks again,
Michael


 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Guillemot
Sent: Monday, April 21, 2008 4:22 AM
To: [email protected]
Subject: Re: [Webtest] Upgrading to WebTest 2.6 issue

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
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to