[Webtest] HTTPS hostname wrong

linux guy webtest@lists.canoo.com
Thu, 04 Sep 2003 16:06:59 +0800


I use IE to visit https://192.168.0.1 and save the
certificate as %WEBTEST_HOME%\canoo.cer.and my SimpleTest.xml
is in %WEBTEST_HOME%.
do I done anything wrong?
hmmm,I'v read the howto.txt & sslTest.xml in %WEBTEST_HOME%\samples\ssl
,what is the usage of username&password,I think
when I use IE to visit https://192.168.0.1,I just need admit the certificate,
no username nor password is needed.
----- Original Message -----
From: "linux guy" <linuxguy@linuxmail.org>
Date: Thu, 04 Sep 2003 15:42:11 +0800
To: webtest@lists.canoo.com
Subject: [Webtest] HTTPS hostname wrong

> I am using webtest to test our SSL supported web server.
> I use
> keytool -keystore %JAVA_HOME%\jre\lib\security\cacerts -import -file canoo.cer -alias canoo
> to import the site certificate in the cacerts keystore.
> 
> and use code below to test the web server,but ant tells me 
>  com.canoo.webtest.engine.StepExecutionException: Unexpected exception caught:
>  java.io.IOException: HTTPS hostname wrong:  should be <192.168.0.1>
> 
> so,what is wrong?
> ---------------------------below is the content of my SimpleTest.xml----------------------------
> <project name="SimpleTest" basedir="." default="main">
> 
>    <taskdef file="webtestTaskdefs.properties">
>       <classpath>
>          <fileset dir=".\" includes="**/lib/*.jar"/>
>       </classpath>
>    </taskdef>
> 
>    <target name="main">
>       <testSpec name="myTest">
>          <config 
>             host="192.168.0.1"
>             port="443"
>             protocol="https"
>             basepath="/" />
>          <steps>
>             <invoke 
>                stepid="get Login Page"
>                url="" />
>             <verifytitle 
>                stepid="we should see the login title"
>                text="Login Page" />
>          </steps>
>       </testSpec>
>    </target>
>    
> </project>
> -- 
> ______________________________________________
> http://www.linuxmail.org/
> Now with e-mail forwarding for only US$5.95/yr
> 
> Powered by Outblaze
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest

-- 
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze