[Webtest] Help

Mahesh Pande webtest@lists.canoo.com
Wed, 16 Apr 2003 16:30:27 +0530


Hi Aatish,
I used SetProxy ant task but the proxy requires authentication (user name
and password). What should I do now... Please tell me this.
Thanks in advance.
Thanks and regards,
Mahesh

Message: 1
Date: Wed, 16 Apr 2003 02:38:16 -0700 (PDT)
From: Aatish Arora <a_aatish@yahoo.com>
Subject: Re: [Webtest] Help
To: webtest@lists.canoo.com
Reply-To: webtest@lists.canoo.com

Hi Mahesh,

Well currently canoo does not support a proxy
redirection...someone on the list had posted abt this
and he mentioned using the <setproxy/> task - u can
check this up in the ant user manual.

Cheers!
Aatish Arora


--- Mahesh Pande <mahesh.pande@patni.com> wrote:
> Yes ., I am accessing net via a proxy but I can test
> some websites quite ok
> while some give problem. By default the port taken
> is 80. Please tell me how
> should I handle the proxy through the Ant Script.
> The exception I get is as follows:
>
>  [testSpec] java.net.ConnectException: Connection
> timed out: connect
>  [testSpec]  at
> java.net.PlainSocketImpl.socketConnect(Native
> Method)
>  [testSpec]  at
>
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
>  [testSpec]  at
>
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
>  [testSpec]  at
>
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
>  [testSpec]  at
> java.net.Socket.connect(Socket.java:426)
>  [testSpec]  at
> java.net.Socket.connect(Socket.java:376)
>  [testSpec]  at
>
sun.net.NetworkClient.doConnect(NetworkClient.java:139)
>  [testSpec]  at
>
sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
>  [testSpec]  at
>
sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
>  [testSpec]  at
>
sun.net.www.http.HttpClient.<init>(HttpClient.java:303)
>  [testSpec]  at
>
sun.net.www.http.HttpClient.<init>(HttpClient.java:264)
>  [testSpec]  at
> sun.net.www.http.HttpClient.New(HttpClient.java:336)
>  [testSpec]  at
> sun.net.www.http.HttpClient.New(HttpClient.java:317)
>  [testSpec]  at
> sun.net.www.http.HttpClient.New(HttpClient.java:312)
>  [testSpec]  at
>
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.j
> ava:481)
>  [testSpec]  at
>
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:4
> 72)
>  [testSpec]  at
>
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
> .java:574)
>  [testSpec]  at
>
sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnect
> ion.java:1208)
>  [testSpec]  at
>
com.meterware.httpunit.HttpWebResponse.loadHeaders(HttpWebResponse.java:191)
>  [testSpec]  at
>
com.meterware.httpunit.HttpWebResponse.readHeaders(HttpWebResponse.java:173)
>  [testSpec]  at
>
com.meterware.httpunit.HttpWebResponse.<init>(HttpWebResponse.java:53)
>  [testSpec]  at
>
com.meterware.httpunit.WebConversation.newResponse(WebConversation.java:60)
>  [testSpec]  at
>
com.meterware.httpunit.WebWindow.getResource(WebWindow.java:154)
>  [testSpec]  at
>
com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:117)
>  [testSpec]  at
>
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:110)
>  [testSpec]  at
>
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:91)
>  [testSpec]  at
>
com.meterware.httpunit.WebClient.getResponse(WebClient.java:87)
>  [testSpec]  at
>
com.canoo.webtest.steps.request.Target.getResponse(Target.java:257)
>  [testSpec]  at
>
com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:216)
>  [testSpec]  at
>
com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:183)
>  [testSpec]  at
>
com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePage.java:41)
>  [testSpec]  at
> com.canoo.webtest.steps.Step.execute(Step.java:56)
>  [testSpec]  at
>
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:32)
>  [testSpec]  at
>
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.ja
> va:55)
>  [testSpec]  at
>
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java: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)
>



=====
================================================
Six monkeys pounding on six typewriters at random for a million years will
recreate all the works of Isaac Asimov.
================================================

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com


--__--__--

_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest


End of WebTest Digest