Hi,

what for a dialog box do you talk about?

The https connection gets build by Apache's HttpClient and this is able
to handle client certificates. If you use special certificate providers
like Entrust, you may need to develop your own connection factory to
work with it.

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Deepa Nigam wrote:
> Hi Will,
>  
> Thank you for your reply !
> The config has https as protocol and port is 443. Client auth alert
> dialog box requires choosing digital certificate before we can invoke
> the url.
> Since both invoking the URL and selecting certificate from the client
> auth box is happening at the same time, my tests fails with the code below:
>  
> <target name="login">
>                 <testSpec name="${testCaseName}">
>                     &config;
>                     <steps>
>       <echo message="I am HERE"/>
>       <invoke url="getorder.exe" save="${outputFile}"/>
>       <expectDialogs>
>          <alert></alert>
>       </expectDialogs>
> </target>
> 
> 
>     ------------------------------------------------------------------------
>     From: [EMAIL PROTECTED]
>     To: [email protected]; [EMAIL PROTECTED]
>     Subject: RE: [Webtest] How to handle client auth ?
>     Date: Tue, 20 May 2008 06:58:00 -0500
> 
>     since you didn't include any example of what you have tried I am
>     going to ask if in the config you set the protocol to https and the
>     port to 443?  I also ask if client auth alert is a username password
>     alert or just a simple 'OK' alert if its a username password box
>     then in your invoke did you use the username and password
>     attributes?  If you have tried all that I suggest, may I suggest
>     sending in your code that is causing a problem and point us to an
>     external url.
>      
>     Thanks,
>     Will
> 
>     ------------------------------------------------------------------------
>     *From:* [EMAIL PROTECTED]
>     [mailto:[EMAIL PROTECTED] *On Behalf Of *Deepa Nigam
>     *Sent:* Monday, May 19, 2008 6:06 PM
>     *To:* [email protected]
>     *Subject:* [Webtest] How to handle client auth ?
> 
>     Hi,
>      
>     I am trying to invoke an https url which requires client
>     authentication. The problem is that as soon as the url is invoked
>     the client auth alert window pops up so  I get 403 Forbidden error
>     when running my tests
>     Can Webtest handle client auth ? Is there a work around.
>      
>           [get] Error opening connection java.io.IOException: Server
>     returned HTTP r
>     esponse code: 403 for URL
>      
>     Thanks,
>     Deepa
> 
>     ------------------------------------------------------------------------
>     Change the world with e-mail. Join the i’m Initiative from
>     Microsoft.
>     
> <http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld>
> 
> 
> 
> ------------------------------------------------------------------------
> E-mail for the greater good. Join the i’m Initiative from Microsoft.
> <http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_
> GreaterGood>

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

Reply via email to