Each of the tests below relates to adduser test cases
Table 3. adduser Test Cases
TESTCASE | EVENTID | ACTION | EXPECTED_RESULTS |
---|---|---|---|
adduser | 1 | hit "add a new user" button | form appears for data |
adduser | 2 | enter username, hit "create user" button | cannot complete request because of missing data |
adduser | 3 | enter all form data except password fields | cannot complete request because of missing data |
adduser | 4 | enter all form data, password 4 letters long, all alphabetic characters | cannot complete request because of password not 6 or more characters and all alphabetic |
adduser | 5 | enter all form data, password 6 letters long, all alphabetic characters | cannot complete request because of password being all alphabetic |
adduser | 6 | enter all form data, password 6 letters long, alpha and non-alpha characters, but second password field blank | cannot complete request because of password not matching |
adduser | 7 | enter all form data, password 6 letters long, alpha and non-alpha characters, but second password field with different string | cannot complete request because of password not matching |
adduser | 8 | enter all form data, password 6 letters long, alpha and non-alpha characters, same password in each field | user added successfully |