4 messages in com.canoo.lists.webtestRE: [Webtest] Upgrading webtest build...| From | Sent On | Attachments |
|---|---|---|
| Raible, Matt | 10 Jul 2003 13:33 | |
| Brandon Moore | 10 Jul 2003 14:27 | |
| Raible, Matt | 10 Jul 2003 14:51 | |
| Raible, Matt | 10 Jul 2003 14:58 |
| Subject: | RE: [Webtest] Upgrading webtest build265 to build307![]() |
|---|---|
| From: | Brandon Moore (bmo...@commcode.com) |
| Date: | 07/10/2003 02:27:07 PM |
| List: | com.canoo.lists.webtest |
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.
Brandon
-----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,
Matt
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest




