Hi there,

I’ve checked out the Webtest source via subversion onto my machine and have tried building it locally (I need to make some local modifications, so can’t use the release supplied on the Canoo Webtest website). I did this before several months ago, and encountered no significant problems; however, at the moment I have to say I’m completely lost.

 

I’ve tried running the build from inside WEBTEST_HOME with a number of commands, including the suggested:

 

>bin\webtest full

 

In order to build webtest and generate the documentation. This runs and fails on the following lines:

 

launchWebTest:

     [java] Buildfile: build.xml

 

init:

 

stop:

     [copy] Copying 1 file to C:\Java\canoo\build\log

     [java] Java Result: 1

BUILD FAILED

C:\Java\canoo\build.xml:528: The following error occurred while executing this line:

C:\Java\canoo\build.xml:615: The following error occurred while executing this line:

C:\Java\canoo\build.xml:668: The selftests failed (look at build/log/selftestReport.xml)!

 

Examining the selftestReport.xml file revealed that there was a pdfbookmarks test which was failing. As I have no need of any pdf related features I tried removing the pdf related tests inside WEBTEST_HOME\selftests\tests. Unfortunately the build still failed, although inside selftestReport.xml there was no clue as to why this was the case, as the file listed all the tests as having been successful.

 

At this point I gave up trying to get the tests to work during the build, and tried to use the webtest.jar file the build had produced to run my own tests. For this I require the webtest.dtd file which I assumed would have been generated during the build – unfortunately the webtest.dtd file the failed build had produced was an empty file (0 bytes).

 

On the off-chance that my tests might work anyway I tried to run my tests using:

 

>webtest –buildfile Alltests.xml

 

Which gave me an error message stating that one of the classes required a log4j class that was not in the classpath.

 

C:\Java\canoo\AllTests.xml:12: taskdef A class needed by class com.canoo.webtest.steps.form.SelectForm cannot be found: org/apache/log4j/Logger

 

This was strange, as the new build of Canoo appeared to have no log4j jar file in the lib directory, whereas previous releases did have.

 

In addition to all of this, I have tried viewing the Webtest source inside the Eclipse IDE, which gives me compilation errors because I do not have the following classes in my classpath:

 

com.agical.rmock.extension.junit.RMockTestCase

org.apache.log4j.Logger

com.gargoylesoftware.htmlunit.Page

.. and others.

 

None of these classes are provided inside the jar files included in the lib directory in the release.

 

So, I have a number of questions.

 

1)       Where are all the missing jar files, and why are they not included in the release?

2)       Why do the pdf related tests repeatedly fail, and why does the build continue to fail after I’d apparently removed the tests?

3)       Why is there no task in the ant build file that will allow me to build Webtest without having to run all of these tests?

4)       Why is the generated Webtest.dtd completely empty after the build? Is it because the build failed because of the failing tests?

 

[Note: this time around I’ve sent the mail without the attachments.]

 

Jon Poulton

 

Reply via email to