QA
This page describes the procedure for testing User Membership according to the test conditions described in . It involves manual steps combined with automated Selenium scripts.
This is a work in progress.
(June 2012)
Setup
Test requirements
The objects below are required in the active Sakai instance. These can be created by the Selenium scripts at the end of the page, following the step-by-step below.
New users: ufp-1, ufp-2, ufp-3
Details:
ufp-1: type: maintain, email: email-ufp-1@ufp.pt, first name: userufp, lastname: last1
ufp-2: type: access, email: email-ufp-2@ufp.pt, first name: userufp, lastname: last2
ufp-3: type: registered, email: email-ufp-3@ufp.pt, first name: userufp, lastname: last3
New site A: UFP-UMEM (project type) (unpublished)
Users:
ufp-1: role: maintain
ufp-2: role: access
ufp-3: role: access
Groups:
Group A: users: ufp-2
Group B: users: ufp-2, ufp-3
New site B: UFP_UMEM_2_Winter 2007 Winter 2007 (course type) (published) (term Winter 2007)
Users:
ufp-1: role: Instructor
ufp-2: role: Student, status: inactive
ufp-3: role: Student
Additional configuration details:
Administration Workspace site with 'User Membership' tool
'ufp-1' My Workspace with 'User Membership' tool
function 'usermembership.view' in maintain realm of 'ufp-1' My Workspace
Step-by-step setup guide
Log in as admin and run script 1 (create users, sites and groups)
In 'Sites' tool:
Select the 'Administration Workspace' and run script 2 (add User Membership to sites)
Select the 'My Workspace' for user 'ufp-1' and run script 2.
Log out, log in as 'ufp-1'/'ufp-1', log out (this will create My Workspace), log in as admin
In 'Users' tool, find and copy internal id for user 'ufp-1'
In 'Realms' tool:
Search for the user id copied before and click on appropriate realm
Add 'usermembership.view' function to 'maintain' realm, save
Navigate to 'Administration Workspace' and start testing following guidelines below.
Test guidelines
Tests must be performed on both MySQL and Oracle, as 'admin'.
Log in as 'admin'
Add the tool to '!admin' site and My Workspace of 'ufp-1' user
Using the Realms tool, add the 'usermembership.view' function to the maintain realm of 'ufp-1' My Workspace
As admin, follow the test plan steps described in
Log out
Log in as 'ufp-1'
Repeat the test plan steps performed before
Log out