[Webtest] testing https site
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 firstname.lastname@example.org (Lisa Crispin): --------------
> 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?
> [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
> [testSpec] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.
> [testSpec] at com.meterware.httpunit.HttpWebResponse.readResponseHeader(Htt
> [testSpec] at com.meterware.httpunit.HttpWebResponse.readHeaders(HttpWebRes
> etc. etc (do you need the rest?)
> WebTest mailing list