4 messages in com.canoo.lists.webtestRE: [Webtest] Upgrading webtest build...
FromSent OnAttachments
Raible, Matt10 Jul 2003 13:33 
Brandon Moore10 Jul 2003 14:27 
Raible, Matt10 Jul 2003 14:51 
Raible, Matt10 Jul 2003 14:58 
Subject:RE: [Webtest] Upgrading webtest build265 to build307
From:Raible, Matt (Matt@cable.comcast.com)
Date:07/10/2003 02:58:57 PM
List:com.canoo.lists.webtest

Nevermind, I had to change my list of jars from:

dom4j httpunitWithJTidy Tidy webtest

to:

dom4j httpunit Tidy webtest

and this fixed my taskdef issue.

Thanks,

Matt

-----Original Message----- From: Raible, Matt Sent: Thursday, July 10, 2003 3:51 PM To: 'webt@lists.canoo.com' Subject: RE: [Webtest] Upgrading webtest build265 to build307

I changed by taskdef to be:

<taskdef file="${webtest.dir}/webtestTaskdefs.properties" classpathref="web.test.classpath"/>

And now I get the following error:

file:c:/Source/cct/build.xml:33: taskdef class com.canoo.webtest.steps.request.ClickButton cannot be found

Is there any "upgrade" docs for 200 level build to 300?

Thanks,

-----Original Message----- From: Brandon Moore [mailto:bmo@commcode.com] Sent: Thursday, July 10, 2003 3:27 PM To: webt@lists.canoo.com Subject: RE: [Webtest] Upgrading webtest build265 to build307

I'm guessing the rest of the error message was something to the effect of "must have type Task, actual type UnknownElement"?

You need to change the taskdef. The example on the website has been updated. You need the file webtestTaskdefs.properties which should be included in the build. It wasn't in 284, which was the latest packaged build I downloaded, but I think it has been added since then.

Every step needs to be defined as a separate ant task now. This was done so you can extend webtest by writing a new task that implements the appropriate interfaces from webtest (descended from the ones in ant) and registering it with ant, rather than rebuilding webtest. This means the containers like <steps> and <not> are now TaskContainer rather than simple elments, so the error messages changed.

With this change, it might be possible to split one test between targets, or to interleve other ant tasks with webtest steps. Both would probably require some tweaks to the code, though.

I would like to split out reusable chunks of test steps into ant targets. Using entity references works, but parameter handling is awkward, and I can't use <script> tasks to work with them. It would be really cool if the test suite I'm building could be as easy to extend as a junit test suite.

Hope I solved the right problem here.

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Raible, Matt Sent: Thursday, July 10, 2003 3:33 PM To: 'webt@lists.canoo.com' Subject: [Webtest] Upgrading webtest build265 to build307

While attempting to upgrade build 265 to build 307, I am getting the following error:

file:c:/Source/cct/build.xml:651: Task not allowed here: config

Here is my task:

<target name="login" description="Runs login test and verifies Main Menu's Title"> <canoo name="tomcat-login"> &config; <steps> &login; </steps> </canoo> <loadfile property="web-tests.result" srcFile="${test.dir}/data/web-tests-result.xml"/> <echo>${web-tests.result}</echo> </target>

What's changed?

Thanks,