|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
creating first webtest-projectHi 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-projectHi 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-projectSiegfried Goeschl schrieb:
> Hi Michael, > > looks like an ANT setup problem - missing custom taks > > http://webtest.canoo.com/webtest/manual/troubleshooting.html > > Cheers, > > Siegfried Goeschl > > [...] 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-projectAs 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-projectseems 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 |
| Free Forum Powered by Nabble | Forum Help |