• Post Reply Bookmark Topic Watch Topic
  • New Topic

jwebunit how to test a site with a specific port  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use jwebunit to test a web site on my companies intranet where there is a specific port set for this url.
This site is a secure site and prompts you for a username and password.
(maybe this is causing the problem)
I know I need to set the port but I only see a method to set the proxy port.
I tried to use this method
and called it in the setUp() method.

In my test Search method I call beginAt("/");

I then try to assert that there is certain text present with assertTextPresent method
I get an error message 'connection refuse connect'

I also tried to put the port in the url
I got error message ' host name wrong'

P.S. I tried to test a site where I dont need to set the port using this application and it worked ok.

PLEASE someone help me because I am stuck on this for days
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!