Auto-tools/Projects/CrossWeave/Test Format/Passwords

From MozillaWiki
< Auto-tools‎ | Projects‎ | CrossWeave‎ | Test Format
Revision as of 00:49, 25 June 2010 by Jgriffin (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Test Format

A password asset list is an array of objects, each representing a stored password. For example:

password-list:
  * hostname: http://www.example.com
    submitURL: http://login.example.com
    username: joe
    password: zippity-do-dah
    usernameField: uname
    passwordField: pword
  * hostname: http://www.example.com
    realm: login
    username: joe
    password: secretlogin

Each object has the following properties:

  • hostname: the hostname for the password. Required.
  • submitURL: the submit URL for the password. Optional. Used for passwords in form fields.
  • realm: the http realm for the password. Optional. Used for http authentication passwords.
  • username: required.
  • password: required.
  • usernameField: the username field for a form password. Optional.
  • passwordField: the password field for a form password. Optional.
  • changes: an object containing any of the above properties, which are applied during a modify action. Optional.

Example

For a full example, see the CrossWeave password unit test