Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

The connection has timed out

View previous topic View next topic Go down

The connection has timed out

Post by sulee on Tue Mar 15, 2011 6:46 pm

Hi all,

I am using java client driver and eclipse java ee helios, my setup is complete to run selenese test cases.
In fact i connect to some sites, and i cannot connect to some sites. For instance the test below runs correctly:

import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;

public class google extends SeleneseTestCase {
public void setUp() throws Exception {
//setUp("http://www.google.com/", "*chrome");
selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://172.31.206.23");
selenium.start();
}
public void testUntitled() throws Exception {
selenium.open("/");
selenium.waitForPageToLoad("30000");

}
}

Whereas if change the base url to www.google.com, I cannot connect and I got browser message as below:

The connection has timed out
The server at www.google.com is taking too long to respond.

And the console error message is:

Got result: Timed out after 30000ms on session d359......

Could anyone tell me reason for that? Because i cannot test the we site i am suppose to do. Thanks in advance.


sulee
Active particpant
Active particpant

Posts : 14
Join date : 2010-12-27

Back to top Go down

Re: The connection has timed out

Post by thumatiraja on Tue Mar 15, 2011 7:33 pm

hi,
According to my opinion ...........
In some days back i got same issue(Timed out)
i think it's application problem
Check Your application once and again you run


Thanks
Raja

thumatiraja
Active particpant
Active particpant

Posts : 19
Join date : 2011-03-11
Age : 30
Location : Hyderabad

Back to top Go down

Re: The connection has timed out

Post by sulee on Tue Mar 15, 2011 7:45 pm

Actually that is the point I am helpless because the only change i made to the code is changing the url, nothing else. So how can the application could be wrong? I am suspecting the network issues but i am not sure because i am not good at that stuff. Thanks.

sulee
Active particpant
Active particpant

Posts : 14
Join date : 2010-12-27

Back to top Go down

Re: The connection has timed out

Post by thumatiraja on Tue Mar 15, 2011 7:50 pm

Hi,

In My Application (live Project),i got the same issue as you faced .At that time simply i changed my code and again i was run.....then it was worked

FYI
Thanks
Raja

thumatiraja
Active particpant
Active particpant

Posts : 19
Join date : 2011-03-11
Age : 30
Location : Hyderabad

Back to top Go down

Re: The connection has timed out

Post by sulee on Tue Mar 15, 2011 7:52 pm

Thats good it worked but what you have changed and it worked? I need to know that...

sulee
Active particpant
Active particpant

Posts : 14
Join date : 2010-12-27

Back to top Go down

Re: The connection has timed out

Post by thumatiraja on Tue Mar 15, 2011 8:03 pm

hi,

come to online,i will give you solution

1.Click Forumation on the top of this page
2.Click on Login

thumatiraja
Active particpant
Active particpant

Posts : 19
Join date : 2011-03-11
Age : 30
Location : Hyderabad

Back to top Go down

Re: The connection has timed out

Post by sulee on Wed Mar 16, 2011 2:08 pm

Hi,

I have noticed that i got the connection time out before selenium completed its test. I mean, i set the waitforpagetoload to 50000ms but in 35s test returned with time out exception. I still dont understand why it works with some web sites and doesnt work with others. Please help. Thanks..

sulee
Active particpant
Active particpant

Posts : 14
Join date : 2010-12-27

Back to top Go down

Re: The connection has timed out

Post by Sponsored content Today at 3:20 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum