creating first webtest-project

View: New views
5 Messages — Rating Filter:   Alert me  

creating first webtest-project

by Michael Habbert-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: creating first webtest-project

by Siegfried Goeschl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Michael,

looks like an ANT setup problem - missing custom taks

http://webtest.canoo.com/webtest/manual/troubleshooting.html

Cheers,

Siegfried Goeschl

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

Re: creating first webtest-project

by Michael Habbert-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Siegfried Goeschl schrieb:

> Hi Michael,
>
> looks like an ANT setup problem - missing custom taks
>
> http://webtest.canoo.com/webtest/manual/troubleshooting.html
>
> Cheers,
>
> Siegfried Goeschl
>
> [...]
Thanks for the replay.

I found that hint already. When I include:

 <import file="${webtest.home}/lib/taskdef.xml"/>

into the build-file it works. Thanks!

------------------------------------------
/path-to-projects/jamwikiTest$ ant wt.testInWork
Buildfile: build.xml
     [echo] DEPRECATED since November 2007: use webtest.xml instead of
lib/taskdef.xml!
     [echo] DEPRECATED since November 2007: use webtest.xml instead of
lib/classpath.xml!

wt.testInWork:
     [echo] Execut
[...]
------------------------------------------

DEPRECATED aha. The funniest thing is the webtest.xml is already
included in the build.xml by default (generated with the
ant-create-new-project task. Hm.

Anyway for now it is working. I assume not quite the way it was designed
by someone.

Thanks

Michael Habbert

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: creating first webtest-project

by Siegfried Goeschl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As a former colleague often said : "Kaum macht man's richtig, geht's
auch schon" ... :-)

Siegfried Goeschl

Michael Habbert wrote:

> Siegfried Goeschl schrieb:
>> Hi Michael,
>>
>> looks like an ANT setup problem - missing custom taks
>>
>> http://webtest.canoo.com/webtest/manual/troubleshooting.html
>>
>> Cheers,
>>
>> Siegfried Goeschl
>>
>> [...]
> Thanks for the replay.
>
> I found that hint already. When I include:
>
> <import file="${webtest.home}/lib/taskdef.xml"/>
>
> into the build-file it works. Thanks!
>
> ------------------------------------------
> /path-to-projects/jamwikiTest$ ant wt.testInWork
> Buildfile: build.xml
>     [echo] DEPRECATED since November 2007: use webtest.xml instead of
> lib/taskdef.xml!
>     [echo] DEPRECATED since November 2007: use webtest.xml instead of
> lib/classpath.xml!
>
> wt.testInWork:
>     [echo] Execut
> [...]
> ------------------------------------------
>
> DEPRECATED aha. The funniest thing is the webtest.xml is already
> included in the build.xml by default (generated with the
> ant-create-new-project task. Hm.
>
> Anyway for now it is working. I assume not quite the way it was
> designed by someone.
>
> Thanks
>
> Michael Habbert
>
> _______________________________________________
> WebTest mailing list
> WebTest@...
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: creating first webtest-project

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
> http://lists.canoo.com/mailman/listinfo/webtest
>

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest