nevermind...i figured it out. my use of "" to mean null for the host
parameter causes it to fail.
the
following now works:
prov.addNTLMCredentials("username","password",null,-1,"mymachinename","mydomain");
in
fact the following also works fine:
prov.addNTLMCredentials("username","password",null,-1,"","");
thanks go to marc for his modification to
HTMLUnit 1.9 to add this functionality. now we can continue to use webtest for
testing our application.
later,
mikey
Michael
Dunn
Product Test Manager
Adaptis
206 342 7478
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Dunn
Sent: Wednesday, July 12, 2006 9:35 AM
To: [email protected]
Subject: RE: [Webtest] NTLM authentication and htmlunit 1.9
<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 ...
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.9i 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,mikeyMichael Dunn
Product Test Manager
Adaptis
206 342 7478

