<groovy>
                    def prov = new com.gargoylesoftware.htmlunit.DefaultCredentialsProvider();
                    prov.addNTLMCredentials("username","password","",-1,"mymachinename","mydomain");
                    def webClient = step.context.webClient;
                    webClient.setCredentialsProvider(prov);
                </groovy>
                <invoke
  ...
 
even though i have debug turned on in webtest, i get no messages while groovy is processing the script.
 
later,
mikey

Michael Dunn
Product Test Manager
Adaptis
206 342 7478

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dierk Koenig
Sent: Tuesday, July 11, 2006 11:30 PM
To: [email protected]
Subject: RE: [Webtest] NTLM authentication and htmlunit 1.9

Hi Michael,
 
how does your Groovy step look like?
 
cheers
Mittie
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Michael Dunn
Sent: Mittwoch, 12. Juli 2006 0:28
To: [email protected]
Subject: [Webtest] NTLM authentication and htmlunit 1.9

i see that the new version of webtest (R_1354) includes a new version of htmlunit (1.9) where marc did some work on extending DefaultCredentialsProvider to include setting NTLM credentials. does anyone know how one would utilize this in webtest to login to a NTLM authenticated webpage?
 
i have installed R_1354 and have tried setting the credentials in a groovy step as well as just passing in the username and password in the invoke statement. neither of which worked for me. any ideas?
 
later,
mikey
 

Michael Dunn
Product Test Manager
Adaptis
206 342 7478

 

Reply via email to