Hi Michael
Michael Habbert wrote:
Hi Marc,
would you please create a startpage - find the right location, naming
and so one? And I will start adding the results ...;-)
no time currently. Sorry.
[..]
makes sense (like many other docs that should be added ;-))
[...]
my personal hint (other committers may have an other opinion): don't
run it within WebTest's selftest as long as you don't have to!
I agree! I dont have to, but the question is how do I create a simple
test-example. My local develop-environment is much to complicated (you
noticed on my first attempt for the simple test-example) for developing
an easy example.
WebTest build process allows to ensure the quality of WebTest and does
its job very well. On the other hand I think that it is really too
complicated, particularly for a test like the one you want to setup.
In you case, I would just save the file(s) in the file system, write a
minimal test without <configuration> using <invoke url="file://...."/>
(I need to adapt this path when I try your test myself) and run the
test with #WEBTEST_HOME#/bin/runWebTest.{sh|bat} yourMiniTest.xml.
[..]
OK, I call <webtest-home>/bin/runWebTest.sh and get:
-----------
bin/runWebtest.sh selftests/tests/checkForSrcElement.xml
bin/../bin/webtest.sh -f bin/../resources/webtestsRunner.xml
-Dwebtest.testdir=/usr/local/projekte/common/svn_webtest
-Dwebtest.testfile=selftests/tests/checkForSrcElement.xml
Will use /usr/local/java/j2sdk1.4.2_10/bin/java
Buildfile: bin/../resources/webtestsRunner.xml
[taskdef] Could not load definitions from resource webtest.taskdef. It
could not be found.
------------
So I see in webtestsRunner.xml:
<import file="${webtest.home}/lib/taskdef.xml"/>
and in taskdef.xml:
<taskdef resource="webtest.taskdef"
loaderref="webtest.loader"
classpathref="webtest.path.id"
/>
Where does webtest.taskdef shall come from;-)?
runWebTest is intended to be used from the distribution, not from the
sources you've retrieved from SVN.
Marc.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest