[Webtest] creating first webtest-project

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Tue, 08 Jul 2008 11:35:03 +0200


seems that you should look at the presentation again: wt.testInWork is
not intended to be called directly, you have to call wt.full, which is
the default target and that performs the necessary setup before
wt.testInWork as well as the report processing after it.

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Michael Habbert wrote:
> Hi folks,
> 
> a year ago I did work a lot with webtests.
> After changing project and work I started again: with a new
> webtest-project.
> 
> I followed:
> http://opensource.basehaus.com/webtest/screencasts/creating-a-first-webtest-project.htm
> 
> So the test-project is fine, but what now?
> 
> I developed a new test and though I could start the single Test with:
> 
> --------------------------------------------------
> myNewProject$ ant wt.testInWork
> myNewProject$ ant wt.testInWork
> Buildfile: build.xml
> 
> wt.testInWork:
>     [echo] Execution jamwikiStartTest.xml in dir
> /path-to-project/jamwikiTest/tests
> 
> test:
> 
> BUILD FAILED
> /path-to-project//webtest-snapshot/webtest.xml:230: The following error
> occurred while executing this line:
> /path-to-project/jamwikiTest/tests/jamwikiStartTest.xml:9: Problem:
> failed to create task or type webtest
> 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.
> 
> Total time: 1 second
> --------------------------------------------------
> 
> I expected everything to be fine using the build.xml in the new
> project-dir.
> 
> So I am wrong?
> 
> yours
> Michael Habbert
> 
> 
> By the way the new Reports and all the other stuff, did make a very good
> "first impression" on my new colleagues. So I think webtest will become
> the new testing tool in my new company ;-).
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>