[Webtest] using http authentication with webtest

Carsten Seibert webtest@lists.canoo.com
Mon, 15 Apr 2002 07:52:22 +0200


Hi Donald

You should be able to provide a username and password for basic
authentication with the <invoke> step like:

	<invoke stepid="Access a page with password identification"
		url="mypage"
		username="${username}"
		password="${password}" />

I will update the documentation with an example asap. Since the selfTest
servlet/web setup does currently not support basic authentication as well as
https, there are not integrated usage examples (yet).

But have a look at doc/samples/ssl in the distribution which provides an
experimental sample for accessing a page via HTTPS including basic
authentication.

Ciao,
Carsten

Carsten Seibert
seiberTEC GmbH Switzerland
mailto:seibert@seibertec.ch  / phone: +41 79 636 4317


> -----Original Message-----
> From: Donald Ball [mailto:balld@webslingerZ.com]
> Sent: Mittwoch, 10. April 2002 22:44
> To: webtest@gate.canoo.com
> Subject: [Webtest] using http authentication with webtest
>
>
> hey. i'm trying to figure out how to make webtest accept a
> username and
> password for testing a webapp that requires authentication. there seem
> to be hooks in Target for this, but nothing that uses them.
> am i missing
> something or is this not there yet?
>
> btw, the xpath test failure from earlier seems to actually really be a
> problem in jaxen. i'm tracking it down now.
>
> - donald
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>