[Webtest] RE: RE: RE: problem with NT authentication

Marc Guillemot webtest@lists.canoo.com
Tue, 25 Apr 2006 01:09:02 -0700 (PDT)


Hi Mike,

Webtest doesn't set a new CredentialProvider at it knows that the default
one is ok and just "fill" it.
Can you try to change your htmlunit test to use the same logic to check that
it still work?

What is really strange is that the credentials seem to be found but not
correct. I could understand that it comes from the fact the NTCredentials
are expected but why isn't it the case when you test directly with htmlunit.

Can you try to put your htmlunit code that seem to work directly in webtest
for instance with a Groovy step before the request to the restricted page:
<groovy>
def prov = new com.gargoylesoftware.htmlunit.DefaultCredentialsProvider();
prov.addCredentials("*username*","*password*");
def webClient = step.context.webClient
webClient.setCredentialsProvider(prov); 
</groovy>

Marc.
--
View this message in context: http://www.nabble.com/RE%3A-RE%3A-RE%3A-problem-with-NT-authentication-t1488973.html#a4078243
Sent from the WebTest forum at Nabble.com.