• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection timed out error while trying to access web page  RSS feed

 
Rajesh Thorat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to write a simple Junit test case, where I should be able to access a web page and see if particular element is present on web page.
I have wrote a piece of code as below :



I am executing this Junit test case from Eclipse, but getting following error :

Oct 26, 2012 1:52:32 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
Oct 26, 2012 1:52:32 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
java.net.ConnectException: Connection timed out: connect

Would appreciate a help on this.

Regards,
Vaibhav
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving discussion as too difficult for “beginning”.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!