[Webtest] [dev] Best way to set credentials
Marc Guillemot
webtest@lists.canoo.com
Tue, 02 Aug 2005 10:49:11 +0200
Hi,
I've seen that many steps have now userName and password attributes to receive pages that require basic authorization.
This feature is still missing on some steps (like setRadioButton) and doesn't make any sense on others like followFrame
at this one doesn't perform any request.
What about changing these attributes to a nested step like:
<authorization username="..." password=".." [host="..." [port="..."] ...]/>
This would:
- avoid to add too many attributes to all steps making them easier to understand
- allow to have many credential provider in one step for different hosts (unlikely to happen, but who knows)
- allow to specify the type of authorization (basic, NTLM, ...)
What do you think?
Marc.