[Webtest] HTTPS hostname wrong

linux guy webtest@lists.canoo.com
Thu, 04 Sep 2003 15:42:11 +0800


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