Auto-tools/Projects/CrossWeave/Test Format/Passwords: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
A password asset list is an array of objects, each representing a stored password. For example:  
A password asset list is an array of objects, each representing a stored password. For example:  


  "password-list: [
password-list:
    { "hostname": "http://www.example.com", "submitURL": "http://login.example.com",
  * hostname: http://www.example.com
      "username": "joe", "password": "zippity-do-dah", "usernameField": "uname", "passwordField": "pword" },
    submitURL: http://login.example.com
    { "hostname": "http://www.example.com", "realm": "login", "username": "joe",
    username: joe
      "password": "secretlogin" }
    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:
Each object has the following properties:

Revision as of 23:53, 24 June 2010

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