[Webtest] Using the file:// protocol?
Dierk Koenig
webtest@lists.canoo.com
Fri, 14 Feb 2003 13:16:48 +0100
you can find an example in the installtest as described in
http://webtest.canoo.com/webtest/manual/install.html
cheers
Mittie
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Daniel Sheppard
> Sent: Dienstag, 11. Februar 2003 3:38
> To: webtest@gate.canoo.com
> Subject: [Webtest] Using the file:// protocol?
>
>
> How are you meant to run webtest to use the file:// protocol?
>
> I've got this ant file:
>
> <project name="TestFile" basedir="." default="main">
>
> &definition;
>
> <target name="main">
> <testSpec name="TestFile">
> <config
> protocol="file://"
> basepath="c:\"/>
>
> <steps>
> <invoke url="temp.html"/>
> </steps>
>
> </testSpec>
> </target>
> </project>
>
> How am I meant to specify the hostname and port to work with
> this? Running it gives this error:
>
> Error encountered:
> TestFile(com.canoo.webtest.engine.ConfigurableTestCase):
> \\null:80\c:\tempa.html (The network path was not found)
> Exception raised: java.io.FileNotFoundException:
> \\null:80\c:\tempa.html (The network path was not
> found)java.io.FileNotFoundException: \\null:80\c:\tempa.html
> (The network path was not found)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(Unknown Source)
> at java.io.FileInputStream.<init>(Unknown Source)
> at
> sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
> at
> sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
> at
> com.meterware.httpunit.HttpWebResponse.<init>(HttpWebResponse.java:56)
> at
> com.meterware.httpunit.WebConversation.newResponse(WebConversation
> .java:66)
> at com.meterware.httpunit.WebClient.getResponse(WebClient.java:70)
> at com.meterware.httpunit.WebClient.getResponse(WebClient.java:57)
> at com.canoo.webtest.steps.Target.getResponse(Target.java:227)
> at com.canoo.webtest.steps.Target.gotoTarget(Target.java:200)
> at com.canoo.webtest.steps.Target.gotoTarget(Target.java:164)
> at
> com.canoo.webtest.steps.InvokePage.doExecute(InvokePage.java:41)
> at
> com.canoo.webtest.steps.AbstractTestStepSpecification.execute(Abst
> ractTestStepSpecification.java:57)
> at
> com.canoo.webtest.engine.ConfigurableTestCase.runTest(Configurable
> TestCase.java:34)
> at junit.framework.TestCase.runBare(TestCase.java:140)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:131)
> at junit.framework.TestCase.run(TestCase.java:124)
> at
> com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificat
> ionTask.java:56)
> (stack truncated)
> ##################################################################
> ###################
> This email has been scanned by MailMarshal, an email content filter.
> ##################################################################
> ###################
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>