[ptt-users] Agent error - : Connection timed out: connect
Aaron Romeo
aaron.romeo at artez.com
Wed Nov 22 09:57:23 PST 2006
Yeah.
Here is the conversation we had on the matter for a few days ago...
------------------------------------------------------------
Sorry about that clipped message Aaron. I hit the "send" button too quickly!
:-)
Browsers handle redirects differently. I proposed creating an option in the
HTTPProtocol handler to emulate different browser behaviors.
I'm still wanting to do so but I have my hands full with TestMaker 5 work
for the moment. The work entails modifying HTTPProtocol.java to add the
domain name and document preamble to the redirected site when emulating MS
Explorer. There are also some use cases to support when redirects go from
https to http URLs. If anyone wants to do this work I'm happy to get it
integrated into the next TestMaker maintenence distribution.
-Frank
On Nov 21, 2006, at 12:02 PM, Aaron Romeo wrote:
> OK Frank...
>
> Any idea how people have resolved this in the past? Will I be forced
> to have to handle the redirects manually?
>
> Thanks,
> Aaron.
>
> -----Original Message-----
> From: users-bounces at lists.pushtotest.com
> [mailto:users-bounces at lists.pushtotest.com] On Behalf Of Frank Cohen
> Sent: Tuesday, November 21, 2006 3:00 PM
> To: TestMaker users list
> Subject: Re: [ptt-users] Problem with HTTPProtocol.connect(1)
>
> Hi Aaron: I've taken a look at this in the past and found that the
> browsers handle redirects differently.
>
>
>
> On Nov 21, 2006, at 8:11 AM, Aaron Romeo wrote:
>
>> Hello,
>>
>> I have a problem with the HTTPProtocol.connect(1) function.
>>
>> The website I am testing uses a path to redirect. For example, if
>> the base URL is www.myurl.com, the first page might be www.myurl.com/
>> default.html.
>> On this page, I have another link that links me to second.html.
>> The browser
>> can identify that I am referring to www.myurl.com/second.html.
>> However
>> TestMaker doesn't contain my base and host URL anymore. It has also
>> lost the protocol.
>>
>> Can someone tell me how I can get around this? I would really like
>> to have TestMaker handle my redirects for me.
>>
>> Thanks,
>> --
>> Aaron Romeo
------------------------------------------------------------
-----Original Message-----
From: users-bounces at lists.pushtotest.com
[mailto:users-bounces at lists.pushtotest.com] On Behalf Of Jacques Thomas
Sent: Wednesday, November 22, 2006 12:53 PM
To: 'TestMaker users list'
Subject: RE: [ptt-users] Agent error - : Connection timed out: connect
Correct.....disable?
-----Original Message-----
From: users-bounces at lists.pushtotest.com
[mailto:users-bounces at lists.pushtotest.com] On Behalf Of Aaron Romeo
Sent: Wednesday, November 22, 2006 12:53 PM
To: TestMaker users list
Subject: RE: [ptt-users] Agent error - : Connection timed out: connect
Ha!
You have redirects set to true on you connection option. Correct?
-----Original Message-----
From: users-bounces at lists.pushtotest.com
[mailto:users-bounces at lists.pushtotest.com] On Behalf Of Jacques Thomas
Sent: Wednesday, November 22, 2006 12:50 PM
To: 'TestMaker users list'
Subject: RE: [ptt-users] Agent error - : Connection timed out: connect
Got ethereal installed, Also got passed the Connection timed out: connect
everything looks normal.
Things seemed to be working until this particular error.
java.net.MalformedURLException: no protocol:
/cm?tid=1&ci=90068756&vn2=e4.0&st=1164216536578&vn1=4.0.21&ec=iso-8859-1&pi=
Advanced+Search+-+New+Narrow&cg=search&rf=http%3A%2F%2Fwww.shoebuy.com%2Fsb%
2Fs.jsp%2Fr_prof%2Fd_AdultF%2Fbr_Haflinger%2Fb_3-0.82905-1.2-11.94290&ul=htt
p%3A%2F%2Fwww.shoebuy.com%2Fsb%2Fnarrow-shoes.jsp&cvdone=p
------------------------------
Agent stopped.
------------------------------
Agent error:
Traceback (innermost last):
File "<string>", line 451, in ?
File "<string>", line 61, in runTest
File "C:\WebTest\.\lib\.\agentbase.py", line 178, in get
File "C:\WebTest\.\lib\.\agentbase.py", line 208, in connect
java.lang.IllegalStateException: Already connected
I'm still have faith that we can get this to work......*sigh
-----Original Message-----
From: users-bounces at lists.pushtotest.com
[mailto:users-bounces at lists.pushtotest.com] On Behalf Of Frank Cohen
Sent: Wednesday, November 22, 2006 12:20 PM
To: TestMaker users list
Subject: Re: [ptt-users] Agent error - : Connection timed out: connect
If you don't do anything the exception will print a stack trace in
the output window.
You may also find the Network Monitor utility found in the Tools drop-
down menu to be helpful. It won't tell you as much as Ethereal but it
helps too.
-Frank
On Nov 22, 2006, at 8:55 AM, Geoff Meakin wrote:
> <image001.gif>
> Alternatively Frank can suggest how to dump the response object
> from the clients perspective given the fact that it threw this
> exception.
>
> Probably catch the exception first- what do you think Frank?
>
>
>
>
>
>
>
> From: users-bounces at lists.pushtotest.com [mailto:users-
> bounces at lists.pushtotest.com] On Behalf Of Geoff Meakin
> Sent: 22 November 2006 16:54
> To: TestMaker users list
> Subject: RE: [ptt-users] Agent error - : Connection timed out: connect
>
>
>
> You don't need access-
>
>
>
> http://www.ethereal.com
>
>
>
> Install this on your windows box. It helps you diagnose all these
> kinds of problems by seeing what the server is actually sending to
> you.
>
>
>
> You'll have to learn how to use it though J
>
>
>
> Cheers
>
> -Geoff
>
>
>
>
>
> From: users-bounces at lists.pushtotest.com [mailto:users-
> bounces at lists.pushtotest.com] On Behalf Of Jacques Thomas
> Sent: 22 November 2006 16:44
> To: 'TestMaker users list'
> Subject: RE: [ptt-users] Agent error - : Connection timed out: connect
>
>
>
> I'm using a windows based machine, basically I'm just another
> machine on the
>
> network - I don't have access to the servers to look at the log/
> trace files. Not
>
> sure if our sys admin has things locked down that would prevent me
> from
>
> running these test..he is a former KGB.hmmm
>
>
>
> From: users-bounces at lists.pushtotest.com [mailto:users-
> bounces at lists.pushtotest.com] On Behalf Of Geoff Meakin
> Sent: Wednesday, November 22, 2006 11:11 AM
> To: TestMaker users list
> Subject: RE: [ptt-users] Agent error - : Connection timed out: connect
>
>
>
> > com.pushtotest.tool.ToolException: HTTPProtocol problem: Could
> not get response code. com.pushtotest.tool.ToolException:
> HTTPProtocol problem: Could not connect. java.net.ConnectException:
> Connection timed out: connect
>
>
>
> Looks to me like your server isn't speaking HTTP ?
>
>
>
> Try ethereal / tcpdump whilst you're running your test and see what
> the server is sending back, and verify its meaningful
>
>
>
> >>hate to repost and already resolved issue - is there any search
> feature for the
>
> User archive?? In any case this is the error I receive:
>
>
>
> The archives are on the website somewhere (I download them all and
> use my friend grep)
>
>
>
> Cheers
>
> -Geoff
>
>
>
> <image001.gif>
> _______________________________________________
> Users mailing list
> Users at lists.pushtotest.com
> http://lists.pushtotest.com/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.pushtotest.com
http://lists.pushtotest.com/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.pushtotest.com
http://lists.pushtotest.com/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.pushtotest.com
http://lists.pushtotest.com/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.pushtotest.com
http://lists.pushtotest.com/mailman/listinfo/users
More information about the Users
mailing list