Gert,

I do extensive HTTPS testing successfully with Canoo Webtest.

=== Start Working Example ===

<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "../../dtd/Project.dtd">
<project default="MyPmcAcl">
  <target name="MyPmcAcl">
    <webtest name="Check directory access permission results match ${user} 
permission on ${http.url.domain}">
      <config
        haltonerror="false"
        haltonfailure="false"
        useInsecureSSL="true">
          <option name="ThrowExceptionOnFailingStatusCode" value="false"/>
          <option name="ThrowExceptionOnScriptError" value="false" />
          <option name="JavaScriptEnabled" value="true" />
          <option name="autorefresh" value="true" />
      </config>  
      <echo message="prerequisite pmc user: SalesExtranetXXX" />
      <echo message="prerequisite public authenticated user: not sales, modeln 
nor PM8310 NDA Audience" />
      <echo message="prerequisite sales user: SalesExtranetXXX" />
      <echo message="prerequisite modeln user: Modeln" />
      <echo message="prerequisite nda user: pm8310 NDA Audience" />


      <echo message="prerequesite protected directories:" />

      <invoke url="${https.url.domain}myPMC/viewprofile.pl"/>      
      <setInputField name="mail" value="${user}"/>
      <setInputField name="password" value="${login.ok.password}"/>
      <clickButton name="Submit" />
      <verifyText text="Product Access" />

<echo message="request sales" />

<ifStep test="${sales}">
  <then>
      <invoke url="${https.url.domain}sales/"/>  
      <verifyText text="NDA Central" /> 
  </then>
  <else>
      <invoke url="${https.url.domain}sales/"/>  
      <verifyText text="Log In or Create a New Account" /> 
   </else>
</ifStep>
 
<echo message="request modeln" />


<ifStep test="${modeln}">
  <then>
  <invoke url="${https.url.domain}modeln"/>  
          <verifyText text="proxy" /> 
  </then>
  <else>
      <invoke url="${https.url.domain}modeln/"/>  
      <verifyText text="Log In or Create a New Account" /> 
   </else>
</ifStep>

<echo message="request rda/pm8310/" />

<ifStep test="${pm8310access}">
  <then>
  <invoke url="${https.url.domain}rda/pm8310/"/>   
          <verifyText text="PM8310 TEMUX 336 Device Register Descriptions" /> 
  </then>
  <else>
      <invoke url="${https.url.domain}rda/pm8310/"/>  
      <verifyText text="Log In or Create a New Account" /> 
   </else>
</ifStep>

<ifStep test="${pm4356access}">
  <then>
  <invoke url="${https.url.domain}acl/pm4356/"/>   
          <verifyText text="PM4356 COMET DUAL" /> 
  </then>
  <else>
      <invoke url="${https.url.domain}acl/pm4356/"/>  
      <verifyText text="Log In or Create a New Account" /> 
   </else>
</ifStep>

<ifStep test="${pm4357access}">
  <then>
  <invoke url="${https.url.domain}acl/pm4357/"/>   
          <verifyText text="PM4357 COMET SINGLE" /> 
  </then>
  <else>
      <invoke url="${https.url.domain}acl/pm4357/"/>  
      <verifyText text="Log In or Create a New Account" /> 
   </else>
</ifStep>


    </webtest>
  </target>
</project>

=== End Working Example ===

Here is the property file. I specify http for the target url but our server 
automatically redirects to https. You may wish to specify your target domain as 
https://your.target.domain/

=== Start Property File ===

test.url=http://www.pmc-sierra.com/myPMC/
test.url.domain=https://www.pmc-sierra.com/
https.url.domain=https://www.pmc-sierra.com/
http.url.domain=http://www.pmc-sierra.com/
https.service=true

=== End Property File ===

I hope that helps.

Cheers,

Tim Pezarro
Manager, Web Services
Corporate Marketing
[email protected]
Phone: +1-604-415-6044
Cell: +1-604-762-1000
Fax: +1-604-415-6602
PMC-Sierra, Inc.
8555 Baxter Place
Burnaby, BC, Canada
V5A 4V7



-----Original Message-----
From: [email protected] on behalf of Thomas Klein
Sent: Fri 4/15/2011 12:42 AM
To: [email protected]; Gert Pauwels
Subject: RE: [Webtest] Run webtests under HTTPS - message 3
 
Hi Gert,
 
perhaps this helps?
http://old.nabble.com/https-support-by-Canoo-Webtest.-td23153265.html
 
If not then you may also google for HTTPS and "htmlunit" since its WebTests 
underlying engine for HTTP(S)...
Sorry I have no working solution at hand.
 
Cheers,
Thomas
 

Thomas Klein 
Manager QA | SapientNitro 



_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to