[Webtest] continuing (tho different) install problems
webtest@lists.canoo.com
webtest@lists.canoo.com
Tue, 27 Jan 2004 23:27:50 +0000
Thanks for your help. I am simply trying to run the sample that is shown on
doc\info\manual\install.html for Canoo. I'm trying this on Windows XP, and
my $WEBTESTHOME is c:/canoo. I have in the past gotten this sample working
on Linux, but that was another job where I had access to a Linux box. Does
Canoo Webtest work in Windows XP? I can't see why it wouldn't.
ant -version shows I am using version 1.5.2. My java version is 1.4.2. I
can't change that, because the apps I am testing need it.
Any other ideas?
thanks,
Lisa
> Hi Lisa,
>
> I'm sorry about your installation problems.
>
> Webtest installs correctly on literally thousands of installations but every
> now and then there seems to be something in the environment that breaks the
> procedure.
>
> 1) don't care about the httpunit version. WebTest comes with a packaged one.
> 2) ANT versions 1.5.x with x >= 2 are ok
> 3) JDK 1.3 works best. We have some small issues with some subversions of
> JDK 1.4.
>
> With multiple installations of JDK's and ANT versions there is an increasing
> probability that you use a different version than expected. Use ANT's "-v"
> flag to verify your assumption.
>
> Your test below tries to find host "C".
> I guess you try to invoke a file like "C:\whatever.html".
> Make sure you use the "file" protocol then.
>
> cheers
> Mittie
>
> > -----Original Message-----
> > From: webtest-admin@lists.canoo.com
> > [mailto:webtest-admin@lists.canoo.com]On Behalf Of lisa.crispin@att.net
> > Sent: Dienstag, 27. Januar 2004 18:52
> > To: webtest@lists.canoo.com
> > Subject: [Webtest] continuing (tho different) install problems
> >
> >
> > >From the responses to my earlier posting, it sounded like I
> > should be using
> > ant 1.5.3. I didn't mention before that I have been successfully
> > using ant
> > 1.4.1, but it is apparently too old to run webtest. So, now I tried ant
> > 1.5.3 (I tried 1.5.4 first, same result). I get the following error
> > message. I searched the archives of this mailing list, there is
> > something
> > there about httpunit 1.5.4. I did download httpunit 1.5.4 to my
> > machine, but
> > I have not done anything with it; the Canoo webtest install does
> > not mention
> > doing anything related to httpunit. Is anyone able and willing
> > to tell me
> > what this error means and how I can solve it?
> >
> > Not knowing anything about this install test, I don't know where
> > it thinks
> > the app it is testing is running, I thought if it is looking at port 80,
> > maybe that's the problem because I have something running there. But I
> > killed my own server, and that didn't help. If I have to
> > configure this to
> > run on some other port, please someone tell me how.
> > thanks,
> > Lisa
> > $ ant -buildfile installTest.xml
> > Buildfile: installTest.xml
> >
> > checkANT:
> >
> > mayPrintANTError:
> >
> > checkWebTest:
> > [echo] base dir is C:\canoo\doc\samples
> > [testSpec] ERROR (Step.java:342) - cannot handle
> > [testSpec] java.net.UnknownHostException: C
> > [testSpec] at
> > java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
> > [testSpec] at java.net.Socket.connect(Socket.java:452)
> > [testSpec] at java.net.Socket.connect(Socket.java:402)
> > [testSpec] at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
> > [testSpec] at
> > sun.net.NetworkClient.openServer(NetworkClient.java:118)
> > [testSpec] at sun.net.ftp.FtpClient.openServer(FtpClient.java:423)
> > [testSpec] at sun.net.ftp.FtpClient.<init>(FtpClient.java:692)
> > [testSpec] at sun.net.www.protocol.ftp.FtpURLConnection.connect
> > (FtpURLConne
> > ction.java:175)
> > [testSpec] at
> > sun.net.www.protocol.ftp.FtpURLConnection.getInputStream
> > (FtpU
> > RLConnection.java:257)
> > [testSpec] at com.meterware.httpunit.HttpWebResponse.getInputStream
> > (HttpWeb
> > Response.java:68)
> > [testSpec] at com.meterware.httpunit.HttpWebResponse.<init>
> > (HttpWebResponse
> > .java:61)
> > [testSpec] at com.meterware.httpunit.WebConversation.newResponse
> > (WebConvers
> > ation.java:61)
> > [testSpec] at com.meterware.httpunit.WebWindow.getResource
> > (WebWindow.java:1
> > 62)
> > [testSpec] at com.meterware.httpunit.WebWindow.getSubframeResponse
> > (WebWindo
> > w.java:125)
> > [testSpec] at com.meterware.httpunit.WebWindow.getResponse
> > (WebWindow.java:1
> > 18)
> > [testSpec] at com.meterware.httpunit.WebWindow.getResponse
> > (WebWindow.java:9
> > 9)
> > [testSpec] at com.meterware.httpunit.WebClient.getResponse
> > (WebClient.java:8
> > 6)
> > [testSpec] at com.canoo.webtest.steps.request.Target.getResponse
> > (Target.jav
> > a:179)
> > [testSpec] at com.canoo.webtest.steps.request.Target$2.call
> > (Target.java:156
> > )
> > [testSpec] at com.canoo.webtest.steps.request.Target.protectedGoto
> > (Target.j
> > ava:106)
> > [testSpec] at com.canoo.webtest.steps.request.Target.gotoTarget
> > (Target.java
> > :153)
> > [testSpec] at com.canoo.webtest.steps.request.InvokePage.doExecute
> > (InvokePa
> > ge.java:37)
> > [testSpec] at com.canoo.webtest.steps.Step.execute(Step.java:103)
> > [testSpec] at com.canoo.webtest.engine.Engine.executeSteps
> > (Engine.java:26)
> > [testSpec] at com.canoo.webtest.ant.TestSpecificationTask.execute
> > (TestSpeci
> > ficationTask.java:61)
> > [testSpec] at org.apache.tools.ant.UnknownElement.execute
> > (UnknownElement.ja
> > va:193)
> > [testSpec] at org.apache.tools.ant.Task.perform(Task.java:341)
> > [testSpec] at org.apache.tools.ant.Target.execute(Target.java:309)
> > [testSpec] at
> > org.apache.tools.ant.Target.performTasks(Target.java:336)
> > [testSpec] at org.apache.tools.ant.Project.executeTarget
> > (Project.java:1339)
> >
> > [testSpec] at org.apache.tools.ant.Project.executeTargets
> > (Project.java:1255
> > )
> > [testSpec] at org.apache.tools.ant.Main.runBuild(Main.java:609)
> > [testSpec] at org.apache.tools.ant.Main.start(Main.java:196)
> > [testSpec] at org.apache.tools.ant.Main.main(Main.java:235)
> >
> > BUILD FAILED
> > file:c:/canoo/doc/samples/installTest.xml:10: Test failed.
> > Exception raised:
> > com.canoo.webtest.engine.StepExecutionException: Unexpected
> > ex
> > ception caught: java.net.UnknownHostException: C, Step:
> > InvokePage at with
> > (ste
> > pId="get local file", url="C:\canoo\doc\samples/testfile.html",
> > stepType="invoke
> > ")com.canoo.webtest.engine.StepExecutionException: Unexpected exception
> > caught:
> > java.net.UnknownHostException: C, Step: InvokePage at with (stepId="get
> > local f
> > ile", url="C:\canoo\doc\samples/testfile.html", stepType="invoke")
> > at com.canoo.webtest.steps.Step.handleUnexpectedException
> > (Step.java:343)
> >
> > at com.canoo.webtest.steps.request.Target.protectedGoto
> > (Target.java:115)
> >
> > at
> > com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:153)
> > at com.canoo.webtest.steps.request.InvokePage.doExecute
> > (InvokePage.java:
> > 37)
> > at com.canoo.webtest.steps.Step.execute(Step.java:103)
> > at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)
> > at com.canoo.webtest.ant.TestSpecificationTask.execute
> > (TestSpecification
> > Task.java:61)
> > at org.apache.tools.ant.UnknownElement.execute
> > (UnknownElement.java:193)
> > at org.apache.tools.ant.Task.perform(Task.java:341)
> > at org.apache.tools.ant.Target.execute(Target.java:309)
> > at org.apache.tools.ant.Target.performTasks(Target.java:336)
> > at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
> > at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
> > at org.apache.tools.ant.Main.runBuild(Main.java:609)
> > at org.apache.tools.ant.Main.start(Main.java:196)
> > at org.apache.tools.ant.Main.main(Main.java:235)
> >
> > _______________________________________________
> > WebTest mailing list
> > WebTest@lists.canoo.com
> > http://lists.canoo.com/mailman/listinfo/webtest
> >
> >
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest