[Webtest] How to clear cache of 'Basic Authentication'?

webtest@lists.canoo.com webtest@lists.canoo.com
Mon, 19 Jun 2006 09:06:09 +0200


Hi Marc,

I've found a workaround which really works.

          <groovy>
              step.context.webClient.webConnection.state.clearCredentials()
          </groovy>

Martin



                                                                           
             Marc Guillemot                                                
             <mguillemot@yahoo                                             
             .fr>                                                       To 
             Sent by:                  webtest@lists.canoo.com             
             webtest-admin@lis                                          cc 
             ts.canoo.com                                                  
                                                                   Subject 
                                       Re: [Webtest] How to clear cache of 
             16.06.2006 15:47          'Basic Authentication'?             
                                                                           
                                                                           
             Please respond to                                             
             webtest@lists.can                                             
                  oo.com                                                   
                                                                           
                                                                           





Hi Martin,

this is an interesting usecase, you should open an issue for that.

As a workaround, you can add following step before your 2nd <invoke>

<groovy>
step.webClient.credentialsProvider = new
com.gargoylesoftware.htmlunit.DefaultCredentialsProvider()
</groovy>

Marc.
--
View this message in context:
http://www.nabble.com/How-to-clear-cache-of-%27Basic-Authentication%27--t1798306.html#a4900750

Sent from the WebTest forum at Nabble.com.

_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest