So, per Craig's suggestion, I re-downloaded WebTest 2.1 and 2.0 (to see
if I could get at least one of them to work. It looks like I got the
same results. The first "BUILD FAILED" is from 2.1 and the second one
is from 2.0 WHICH IS NOT LISTED AS A DEVELOPMENT VERSION ON THE WEB
PAGE. Here is a sample of the text where I found the link to 2.0 on (
http://webtest.canoo.com/webtest/manual/Downloads.html ) Notes about
what I did during installation follow the "BUILD FAILED" outputs.
......
Latest 2.1 Release
The 2.1 Release consolidates all changes to Canoo WebTest since release
2.0.
The release has the tag R_1393 in the repository.
This is the recommended version of WebTest for beginners and existing
users are encouraged to upgrade.
Refer to Download Release 2.1
<https://svn.canoo.com/trunk/webtest-releases/2.1-1393> . Read the
/readme.txt/ for details.
Latest 2.0 Release
The 2.0 Release is the first release of Canoo WebTest that is based on
HtmlUnit. It builds upon HtmlUnit version 1.8.
The release has the tag R_1217 in the repository.
Refer to Download Release 2.0
<https://svn.canoo.com/trunk/webtest-releases/2.0-1217> . Read the
/readme.txt/ for details.
......
-------------- START OF 2.1 BUILD FAILED --------------
webtest.sh -buildfile installTest.xml
Will use java
Buildfile: installTest.xml
Trying to override old definition of task sleep
checkANT:
mayPrintANTError:
checkWebTest:
[echo] webtest.home is /usr/local/sbin/canoo_webtest/doc/samples/../..
BUILD FAILED
/usr/local/sbin/canoo_webtest/doc/samples/installTest.xml:10: Canoo
Webtest: R_1393.
Test failed.
Exception raised: com.canoo.webtest.engine.StepExecutionException:
Current response is not an HTML page but of type
application/octet-stream, Step: VerifyTitle at
/usr/local/sbin/canoo_webtest/doc/samples/installTest.xml:25: with
(description="check the title is parsed correctly",
taskName="verifyTitle", text="Test File
Title")com.canoo.webtest.engine.StepExecutionException: Current response
is not an HTML page but of type application/octet-stream, Step:
VerifyTitle at
/usr/local/sbin/canoo_webtest/doc/samples/installTest.xml:25: with
(description="check the title is parsed correctly",
taskName="verifyTitle", text="Test File Title")
at
com.canoo.webtest.engine.Context.getCurrentHtmlResponse(Context.java:283)
at
com.canoo.webtest.steps.verify.VerifyTitle.doExecute(VerifyTitle.java:23)
at com.canoo.webtest.steps.Step.execute(Step.java:133)
at org.apache.tools.ant.Task.perform(Task.java:365)
at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:59)
at
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:39)
at com.canoo.webtest.steps.Step.execute(Step.java:133)
at org.apache.tools.ant.Task.perform(Task.java:365)
at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:157)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:280)
at org.apache.tools.ant.Task.perform(Task.java:365)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:370)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1217)
at org.apache.tools.ant.Project.executeTarget(Project.java:1186)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1070)
at org.apache.tools.ant.Main.runBuild(Main.java:672)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:247)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:68)
-------------- END OF 2.1 BUILD FAILED --------------
It doesn't get better with age...
-------------- START OF 2.0 BUILD FAILED --------------
webtest.sh -buildfile installTest.xml
Will use java
Buildfile: installTest.xml
Trying to override old definition of task sleep
checkANT:
mayPrintANTError:
checkWebTest:
[echo] webtest.home is /usr/local/sbin/canoo_webtest/doc/samples/../..
[testSpec] INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest:
development.
[config] WARN (com.canoo.webtest.engine.Configuration) - Result dir
'webtest-results' not created (may not be needed), may cause problems if
individual steps set save attribute
[config] INFO (com.canoo.webtest.engine.Configuration) - Surfing with
browser Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)
[invoke] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
invoke "get local file" (1/2)
[invoke] INFO (com.canoo.webtest.steps.request.AbstractTargetAction)
- -> gotoTarget by URL:
/usr/local/sbin/canoo_webtest/doc/samples/testfile.html
[invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) -
getting response for url:
file:/usr/local/sbin/canoo_webtest/doc/samples/testfile.html
[invoke] INFO (com.canoo.webtest.engine.Context) - Content of window
changed to file:/usr/local/sbin/canoo_webtest/doc/samples/testfile.html
[invoke] INFO (com.canoo.webtest.engine.Context) - Content loaded in
newly opened window, its content will become current response
[invoke] INFO (com.canoo.webtest.engine.Context) - Current form set
to none
[invoke] INFO (com.canoo.webtest.engine.Context) - Current response
now: file:/usr/local/sbin/canoo_webtest/doc/samples/testfile.html
[verifyTitle] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
verifyTitle "check the title is parsed correctly" (2/2)
[verifyTitle] INFO (com.canoo.webtest.steps.Step) - Running with: Canoo
Webtest: development.
[verifyTitle] INFO (com.canoo.webtest.steps.Step) - Exception thrown
from this class: java.lang.ClassCastException
[verifyTitle] INFO (com.canoo.webtest.steps.Step) - Message was:
com.gargoylesoftware.htmlunit.UnexpectedPage cannot be cast to
com.gargoylesoftware.htmlunit.html.HtmlPage
[verifyTitle] ERROR (com.canoo.webtest.steps.Step) - Cannot handle
unexpected exception in step VerifyTitle at
/usr/local/sbin/canoo_webtest/doc/samples/installTest.xml:25: with
(stepType="verifyTitle", descriptio
[verifyTitle] n="check the title is parsed correctly", text="Test File
Title")
[verifyTitle] java.lang.ClassCastException:
com.gargoylesoftware.htmlunit.UnexpectedPage cannot be cast to com.gar
[verifyTitle] goylesoftware.htmlunit.html.HtmlPage
[verifyTitle] at
com.canoo.webtest.steps.verify.VerifyTitle.doExecute(VerifyTitle.java:23)
[verifyTitle] at com.canoo.webtest.steps.Step.execute(Step.java:136)
[verifyTitle] at org.apache.tools.an
[verifyTitle] t.Task.perform(Task.java:365)
[verifyTitle] at
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:39)
[verifyTitle] at
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:105)
[verifyTitle] at org.apache.tools.ant.Unknow
[verifyTitle] nElement.execute(UnknownElement.java:280)
[verifyTitle] at org.apache.tools.ant.Task.perform(Task.java:365)
[verifyTitle] at org.apache.tools.ant.Target.execute(Target.java:341)
[verifyTitle] at org.apache.tools.ant.Target.performTas
[verifyTitle] ks(Target.java:370)
[verifyTitle] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1217)
[verifyTitle] at
org.apache.tools.ant.Project.executeTarget(Project.java:1186)
[verifyTitle] at org.apache.tools.ant.helper.Def
[verifyTitle] aultExecutor.executeTargets(DefaultExecutor.java:41)
[verifyTitle] at
org.apache.tools.ant.Project.executeTargets(Project.java:1070)
[verifyTitle] at org.apache.tools.ant.Main.runBuild(Main.java:672)
[verifyTitle] at org.apache.tools
[verifyTitle] .ant.Main.startAnt(Main.java:188)
[verifyTitle] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:247)
[verifyTitle] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:68)
BUILD FAILED
/usr/local/sbin/canoo_webtest/doc/samples/installTest.xml:10: Canoo
Webtest: development.
Test failed.
Exception raised: com.canoo.webtest.engine.StepExecutionException:
Unexpected exception caught: java.lang.ClassCastException:
com.gargoylesoftware.htmlunit.UnexpectedPage cannot be cast to
com.gargoylesoftware.htmlunit.html.HtmlPage, Step: VerifyTitle at
/usr/local/sbin/canoo_webtest/doc/samples/installTest.xml:25: with
(stepType="verifyTitle", description="check the title is parsed
correctly", text="Test File
Title")com.canoo.webtest.engine.StepExecutionException: Unexpected
exception caught: java.lang.ClassCastException:
com.gargoylesoftware.htmlunit.UnexpectedPage cannot be cast to
com.gargoylesoftware.htmlunit.html.HtmlPage, Step: VerifyTitle at
/usr/local/sbin/canoo_webtest/doc/samples/installTest.xml:25: with
(stepType="verifyTitle", description="check the title is parsed
correctly", text="Test File Title")
at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:607)
at com.canoo.webtest.steps.Step.execute(Step.java:139)
at org.apache.tools.ant.Task.perform(Task.java:365)
at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:39)
at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:280)
at org.apache.tools.ant.Task.perform(Task.java:365)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:370)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1217)
at org.apache.tools.ant.Project.executeTarget(Project.java:1186)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1070)
at org.apache.tools.ant.Main.runBuild(Main.java:672)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:247)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:68)
Caused by: java.lang.ClassCastException:
com.gargoylesoftware.htmlunit.UnexpectedPage cannot be cast to
com.gargoylesoftware.htmlunit.html.HtmlPage
at
com.canoo.webtest.steps.verify.VerifyTitle.doExecute(VerifyTitle.java:23)
at com.canoo.webtest.steps.Step.execute(Step.java:136)
...15 more
Total time: 3 seconds
-------------- END OF 2.0 BUILD FAILED --------------
In each case I deleted the contents of the webtest home directory
completely (rm -Rf *), moved the build.zip and doc.zip files (along with
releasenote.html, readme.txt and selftest.war) that I just downloaded
into the directory.
I usually unzipped build.zip first, but today decided to unzip doc.zip
first as they each contain some of the same files that ask if I want to
overwrite (I would consider this a bug actually; the user shouldn't have
to wonder which file is more recent when installing a product).
As stated before, I followed all the directions on
http://webtest.canoo.com/webtest/manual/install.html, making sure the
versions of JDK, and Ant are correct. Did the 'chmod a+x webtest.sh'
each time too. I didn't have to modify my .bashrc since it's the same
one I've been using on my other machine when this all worked before (but
checked it to make sure anyway); and yes, webtest home is the same path
as it was on the other machine.
-Troy
Craig Copeland wrote:
Howdy Troy,
It seems strange that Webtest is reporting "development" as it's
version. When
I'm using the released 2.1 version, I get R_1393. You may want to try to
download the build.zip again. Maybe the link was pointed somewhere
strange at
the time of your download. (I've tried this on both windows and linux
using
java 1.5, ant 1.6.2 and 1.6.5, and only get the BUILD SUCCESSFUL
message.)
Craig
checkWebTest:
[echo] webtest.home is
/usr/local/sbin/canoo_webtest/doc/samples/../..
[testSpec] INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest:
development.
my output -->
checkWebTest:
[echo] webtest.home is /tmp/webtest/doc/samples/../..
Setting project property: webtest.version -> Canoo Webtest: R_1393.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com _______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest