[Webtest] testing https site

Lisa Crispin webtest@lists.canoo.com
Fri, 09 Jul 2004 21:36:26 +0000

Sorry, I didn't include all the information.

We did read the howto in the samples/ssl directory, and we also tried to run sslTest.xml but without success.  We tried importing both the canoo.cer and the certificate that IE let us export for our site.  But none of that helped.  The pertinent part of the error message is:
 [testSpec] Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validat
or.ValidatorException: No trusted certificate found

So it is a certificate problem for sure, but we don't understand how to fix it.  

-------------- Original message from lisa.crispin@att.net (Lisa Crispin): -------------- 
> Hello, 
> I'm trying to run my tests against one of our sites which is https, on port 443. 
> I changed the port number in my config, and left the protocol as http since the 
> doc says only http and file are supported. I have jdk 1.4.2 so JSSE should not 
> be an issue. I get the error below. Nothing at all is written to the result 
> directory. It takes a really long time for the error to come back. 
> One thing is this server doesn't have a valid certificate. If I invoke it in a 
> browser, I get a popup window about the certificate. Could this be what is 
> causing my test to fail? If not, what else might it be? 
> Thanks, 
> Lisa 
> main: 
> [testSpec] ERROR (Step.java:333) - Cannot handle unexpected exception in step I 
> nvokePage at file:c:/canoo/SmokeTest/gold.xml:29: with (stepId="Go to main page 
> ", url="control.jsp?fid=2", stepType="invoke") 
> [testSpec] java.io.IOException 
> [testSpec] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht 
> tpURLConnection.java:591) 
> [testSpec] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection. 
> java:272) 
> [testSpec] at com.meterware.httpunit.HttpWebResponse.readResponseHeader(Htt 
> pWebResponse.java:159) 
> [testSpec] at com.meterware.httpunit.HttpWebResponse.readHeaders(HttpWebRes 
> ponse.java:197) 
> etc. etc (do you need the rest?) 
> _______________________________________________ 
> WebTest mailing list 
> WebTest@lists.canoo.com 
> http://lists.canoo.com/mailman/listinfo/webtest