Get your CodeRanch badge!*
The moose likes Servlets and the fly likes jwebunit how to test a site with a  specific port Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jwebunit how to test a site with a  specific port" Watch "jwebunit how to test a site with a  specific port" New topic
Author

jwebunit how to test a site with a specific port

sara miri
Greenhorn

Joined: Jul 04, 2005
Posts: 3
PLEASE READ AND HELP
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
getTestContext.setBaseUrl("https://oprisk3.ny.ssmb.com/");
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
getTestContext.setBaseUrl("https://oprisk3.ny.ssmb.com:26519/");
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
THANKS!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jwebunit how to test a site with a specific port
 
Similar Threads
jwebunit how to test a site with specific port
HTTPS Request with Proxy server.
SOAP and HTTPs Help!!!
java.io.IOException: HTTPS hostname wrong:
SOAPException: Error opening socket