[Webtest] Run webtests under HTTPS - message 3

Tim Pezarro Tim Pezarro" <Tim_Pezarro@pmc-sierra.com
Tue, 19 Apr 2011 12:43:44 -0700


Gert,

I do extensive HTTPS testing successfully with Canoo Webtest.

=3D=3D=3D Start Working Example =3D=3D=3D

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


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

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

<echo message=3D"request sales" />

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


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

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

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

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

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


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

=3D=3D=3D End Working Example =3D=3D=3D

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/

=3D=3D=3D Start Property File =3D=3D=3D

test.url=3Dhttp://www.pmc-sierra.com/myPMC/
test.url.domain=3Dhttps://www.pmc-sierra.com/
https.url.domain=3Dhttps://www.pmc-sierra.com/
http.url.domain=3Dhttp://www.pmc-sierra.com/
https.service=3Dtrue

=3D=3D=3D End Property File =3D=3D=3D

I hope that helps.

Cheers,

Tim Pezarro
Manager, Web Services
Corporate Marketing
tim_pezarro@pmc-sierra.com
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: webtest-admin@lists.canoo.com on behalf of Thomas Klein
Sent: Fri 4/15/2011 12:42 AM
To: webtest@lists.canoo.com; Gert Pauwels
Subject: RE: [Webtest] Run webtests under HTTPS - message 3
=20
Hi Gert,
=20
perhaps this helps?
http://old.nabble.com/https-support-by-Canoo-Webtest.-td23153265.html
=20
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.
=20
Cheers,
Thomas
=20

Thomas Klein=20
Manager QA | SapientNitro=20