Auto Basic Perm Check 13
From AlfrescoWiki
Back to Auto Scripts
[edit] Permissions Tests
The test performs the following:
- Calls Login as Admin action (default setup test for all tests)
- See http://wiki.alfresco.com/wiki/Auto_Reusable_Actions_13#LoginAsAdmin
- Checks whether connected as Guest or cookie remembers last logged in user
- Has check for disabled cookies
- Calls Create TestUser action (default setup test for all tests where a non-admin user is required)
- See http://wiki.alfresco.com/wiki/Auto_Reusable_Actions_13#CreateTestUser
- Creates a Test User
- Imports an ACP package that contains a space structure containing all permission types
- Validates that Admin can see all the permission spaces (including a Space with No Permissions)
- Logs out Admin and Logs in as Test User
- Validates that Test User can see all the permission spaces excluding the No Permissions space
- if No Permissions space is detected then post a Fail
- Navigate into each space and perform the following test
- view the spaces details and look at the Actions available for the current level of Permissions
- view the content items (within the space) details and look at the Actions available for the current level of Permissions
- navigate back to the parent space ready to check the next space
- Cleans up the test
- Logs out Test User and logs back in as Admin
- Deletes the Permission Spaces
- Deletes the imported ACP
- Calls the Cleanup action (default cleanup test for all tests)
- See http://wiki.alfresco.com/wiki/Auto_Reusable_Actions_13#Cleanup
- Deletes the Test User
- Deletes the Test User's home space
[edit] Automated Script
You can download the script for your own use from the Alfresco Forge.
http://forge.alfresco.com/projects/qtp/
[edit] Future Enhancements
Future enhancements include binding the Permission checks to a spreadsheet so that any changes in Permissions or Actions made to the client can be fed into updating a spreadsheet instead of changing the test's code. Deeper probe into trying to perform actions that are not allowed by the tested Permissions level and checking for 'Permission Denied' messages.

