QA

This page describes the procedure for testing User Membership according to the test conditions described in TC Matrix User Membership. It involves manual steps combined with automated Selenium scripts.
This is a work in progress.

2.9 Test Script (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

  1. Log in as admin and run script 1 (create users, sites and groups)
  2. In 'Sites' tool:
    1. Select the 'Administration Workspace' and run script 2 (add User Membership to sites)
    2. Select the 'My Workspace' for user 'ufp-1' and run script 2.
  3. Log out, log in as 'ufp-1'/'ufp-1', log out (this will create My Workspace), log in as admin
  4. In 'Users' tool, find and copy internal id for user 'ufp-1'
  5. In 'Realms' tool:
    1. Search for the user id copied before and click on appropriate realm
    2. Add 'usermembership.view' function to 'maintain' realm, save
  6. Navigate to 'Administration Workspace' and start testing following guidelines below.

Test guidelines

Tests must be performed on both MySQL and Oracle, as 'admin'.

  1. Log in as 'admin'
  2. Add the tool to '!admin' site and My Workspace of 'ufp-1' user
  3. Using the Realms tool, add the 'usermembership.view' function to the maintain realm of 'ufp-1' My Workspace
  4. As admin, follow the test plan steps described in TC Matrix User Membership
  5. Log out
  6. Log in as 'ufp-1'
  7. Repeat the test plan steps performed before
  8. Log out

Current collection of scripts for User Membership

  1. (Setup) Script to create users, sites and groups
  2. (Setup) Script to add User Membership to sites