| Change Group
-Creates Users -Changes group/user and tests permissions -Deletes Users | ||
| openAndWait | / | (open the main interface) |
| comment | Wait for page to load up | |
| waitForDispatchCompleted | 30000 | |
| comment | Click admin link | |
| clickAndWait | //a[@href='/admin/settings'] | |
| selectWindow | queryFetcher | (hereafter, all selenium commands will act within the context of this iframe |
| comment | Click users tab | |
| clickAndWait | //a[@href='/admin/users'] | |
| comment | Click edit link next to admin | |
| clickAndWait | //td[.='admin']/following::a[.='Edit'][1] | click the first edit link following admin. |
| comment | TODO Verify no user type dropdown - We need to figure out how to do this for flexible roles. | |
| comment | Create Power User | |
| comment | Click users tab | |
| clickAndWait | //a[@href='/admin/users'] | |
| comment | Click create new user | |
| clickAndWait | //input[@type='button'] | |
| comment | Type username | |
| type | //input[@name='name'] | power |
| comment | Type password | |
| type | //input[@name='password'] | power |
| comment | Confirm password | |
| type | //input[@name='passwordconfirm'] | power |
| comment | Type full name | |
| type | //input[@name='realName'] | Power Guy |
| comment | Change dropdown | |
| select | //select[@name='userType'] | value=Power |
| comment | Click submit | |
| clickAndWait | //input[@type="submit"] | |
| verifyText | //div[@class='noticeHeader'] | User power created successfully. |
| comment | Create a user | |
| comment | Click new user | |
| clickAndWait | //input[@type='button'] | |
| comment | Type username | |
| type | //input[@name='name'] | user |
| comment | Type password | |
| type | //input[@name='password'] | user |
| comment | Confirm password | |
| type | //input[@name='passwordconfirm'] | user |
| comment | Type full name | |
| type | //input[@name='realName'] | User Guy |
| comment | Change dropdown to admin user | |
| select | //select[@name='userType'] | value=User |
| comment | Click submit | |
| clickAndWait | //input[@type="submit"] | |
| comment | Verify error message | |
| verifyText | //div[@class='noticeHeader'] | User user created successfully. |
| comment | Go home | |
| openAndWait | / | (open the main interface) |
| selectWindow | return the focus back to the main window | |
| comment | Wait for page to load up | |
| waitForDispatchCompleted | 30000 | |
| comment | WORKAROUND FOR NOW. resetting selectWindow somehow breaks waitForDispatchCompleted. Upshot - cannot click logout link | |
| open | /logout | 6000 |
| comment | log in as power | |
| type | //input[@name='usr'] | power |
| type | //input[@name='pwd'] | power |
| clickAndWait | //input[@type='submit'] | 5000 |
| waitForDispatchCompleted | 10000 | |
| verifyText | //div[@id='topBar']/b | power |
| comment | Click My Account | |
| click | //a[.="My Account"] | My Account |
| selectWindow | queryFetcher | (hereafter, all selenium commands will act within the context of this iframe |
| comment | Verify no user tab | |
| verifyElementNotPresent | //a[@href='/admin/users'] | |
| comment | Verify no user type drop down | |
| verifyElementNotPresent | //select[@name='userType'] | User type dropdown |
| comment | Go home | |
| openAndWait | / | (open the main interface) |
| selectWindow | ||
| comment | Wait for page to load up | |
| waitForDispatchCompleted | 30000 | |
| comment | log out | |
| comment | WORKAROUND FOR NOW. resetting selectWindow somehow breaks waitForDispatchCompleted. Upshot - cannot click logout link | |
| open | /logout | 6000 |
| comment | log in as user | |
| type | //input[@name='usr'] | user |
| type | //input[@name='pwd'] | user |
| clickAndWait | //input[@type='submit'] | 5000 |
| waitForDispatchCompleted | 10000 | |
| verifyText | //div[@id='topBar']/b | user |
| comment | Click My Account | |
| click | //a[.="My Account"] | My Account |
| comment | Verify no user tab | |
| verifyElementNotPresent | //a[@href='/admin/users'] | My Account |
| comment | Verify no user type drop down | |
| verifyElementNotPresent | //select[@name='userType'] | User type dropdown |
| comment | home page | |
| openAndWait | / | (open the main interface) |
| comment | Wait for page to load up | |
| waitForDispatchCompleted | 30000 | |
| comment | Search for 'meta::all' | |
| type | entry | meta::all |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 30000 | |
| comment | HANDWAVE -verify user can not create tags | |
| comment | HANDWAVE -verify user can not rename eventtype | |
| comment | HANDWAVE - verify user can not alias sourcetype | |
| comment | home page | |
| openAndWait | / | (open the main interface) |
| comment | Wait for page to load up | |
| waitForDispatchCompleted | 30000 | |
| comment | log out | |
| comment | WORKAROUND FOR NOW. resetting selectWindow somehow breaks waitForDispatchCompleted. Upshot - cannot click logout link | |
| open | /logout | 6000 |
| comment | log in as admin | |
| type | //input[@name='usr'] | admin |
| type | //input[@name='pwd'] | changeme |
| clickAndWait | //input[@type='submit'] | 5000 |
| waitForDispatchCompleted | 10000 | |
| verifyText | //div[@id='topBar']/b | admin |
| comment | Click admin link | |
| clickAndWait | //a[@href='/admin/settings'] | |
| comment | Delete Users | |
| clickAndWait | //a[@href='/admin/users'] | |
| clickAndWait | //td[.='power']/following::a[.='Delete'][1] | click the first delete link following power. |
| comment | Verify error message | |
| assertConfirmation | Are you sure you want to delete this user? | |
| verifyText | //div[@class='noticeHeader'] | User 'power' has been deleted. |
| clickAndWait | //td[.='user']/following::a[.='Delete'][1] | click the first delete link following user. |
| comment | Verify error message | |
| assertConfirmation | Are you sure you want to delete this user? | |
| verifyText | //div[@class='noticeHeader'] | User 'user' has been deleted. |