Permission Enforcement - Records - QA Test Plan


On this page

Setting up users and roles

Before you move on, you have to set up a few test records, create a new role, and assign that role to a user you can login as. You may have to create a new user.

  1. New records
    1. Create two new records each of Object Exit, Acquisition, Cataloging, and L/M/I
    2. In the Acquisition records, fill out the ID number and add four terms to the Acquisition Source field - 2 people and 2 organizations
    3. In the Cataloging records, fill out the ID number and add two terms each to Object Production Person, Object Production Organization. Add one Person and one Organization to Object History > Owner field.
    4. In the L/M/I records, fill out one with a current location that is an Organization, and one with a Storage Location. Fill out normal locations (Storage Location authority) for both.
    5. Relate each of these records to one another, e.g. each Object Exit should be related to both Acquisitions, both Cataloging Objects, both L/M/Is, and the other Object Exit
    6. Create one new Exhibition record, filling out the three instances of the Venue > Name field; using Organization, Place, and Storage Location once each
    7. Create one new Intake record, filling out the Current Location field
  2. Clone the TENANT ADMIN role and make the following changes:
    1. None to Object Exit
    2. Read to Acquisition and Intake
    3. Write to Cataloging Objects and Exhibition
    4. None to Person Authority and Place Authority
    5. Read to Storage Location Authority
    6. Write to Organization Authority
  3. Assign the role to a user you can log in as, that has no other roles assigned
  4. Login as that user

Testing Procedural and Cataloging records:

Test 1: Create New Page

Actions:

  1. Go to Create New in the top navigation

Expected:

  • Object Exits and Acquisitions are not displayed
  • Object is displayed

Actions:

  1. click on Objects

Expected:

  • New record should be created

Actions:

  1. Fill out at least the required fields
  2. Save

Expected:

  • Record should be successfully saved
  • Delete button should not appear

Test 3: Search

Actions:

  1. Go to Search in the top navigation

Expected:

  • Check the drop down in the Find area. Object Exits should not be listed, Acquisitions, Objects, and L/M/Is should be
  • Check the drop down in the top center. Object Exits should not be listed, Acquisitions, Objects, and L/M/Is should be 

Test 5: Records in Edit Mode

Actions:

  1. Continue from Test 3
  2. From the top center search box, select Objects from the dropdown
  3. Click search
  4. You will be redirected to the Find and Edit page.
  5. Select one of the records you created from the results list

Expected:

  • The record should be loaded in edit mode

Test 7: Right Sidebar Records Listing in Write Record

Actions:

  1. Continue from Test 5

Expected:

  • In the right sidebar, Object Exits should not be listed under Related Procedures
  • In the right sidebar, Acquisitions and L/M/Is should be listed under Related Procedures

Test 9: Adding Records From Write Record

Actions:

  1. Continue from Test 7
  2. Click on the Add button to the right of the Related Procedures menu

Expected:

  • Acquisitions and L/M/Is should be listed in the Find drop down in the dialog
  • Object Exits should not be listed in the Find drop down in the dialog

Actions:

  1. Search for and add an L/M/I record

Expected:

  • The record should successfully be related

Test 11: Secondary Tab of Write Record

Actions:

  1. Continue from Test 9
  2. Click on the +Related tab 

Expected:

  • The secondary tab for Object Exit should not be listed in the dropdown
  • The secondary tab for Acquisition and L/M/I should be listed in the dropdown

Actions:

  1. Click on Acquisitions in the +Related dropdown
  2. Select one of the related records from the listing

Expected:

  • The record should be loaded in read only mode
  • No Relate Existing button should be present

Actions:

  1. Click on L/M/I in the +Related dropdown
  2. Select one of the records from the listing

Expected:

  • The record should be loaded in edit mode
  • The Relate Existing should be present
  • The Create New should be present

Test 13: Record Read Only Mode

Actions:

  1. Continue from Test 11 and pivot to a related Acquisition record via the right sidebar

Expected:

  • The record should be loaded, but in read only mode
  • No revert, clone, save, or delete button should be displayed

Test 45: Right Sidebar From Read Record

Actions:

  1. Continue from Test 13

Expected:

  • In the right sidebar, Object Exits should not be listed in the Related Procedures menu
  • In the right sidebar, Objects and L/M/I records should be listed in the Related Objects and Related Procedures menus
  • No Add buttons should be displayed in the right sidebar

Test 17: Secondary Tab of Read record:

Actions:

  1. Continue from Test 45
  2. Click on the +Related tab

Expected:

  • The secondary tab for Object Exit should not be listed in the dropdown
  • The secondary tab for Acquisition and L/M/I should be listed in the dropdown

Actions:

  1. Click on Acquisitions in the +Related dropdown

Expected:

  • The Relate Existing button should NOT be displayed

Actions:

  1. Select one of the records from the listing

Expected:

  • The record should be loaded in read only mode
  • The Relate Existing button should NOT be present

Actions:

  1. Click on L/M/I in the +Related dropdown
  2. Select one of the records from the listing

Expected:

  • The record should be loaded in edit mode
  • The Relate Existing button should NOT be present
  • The Unrelate button should NOT be present

Test 19: My Collectionspace Page

Actions:

  1. Load the My Collectionspace page

Expected:

  1. Object Exit records should not be included in the list
  2. Acquisitions, Objects, and L/M/Is should be included in the list

Testing NONE Permission Vocabularies

Test 21: Create New Page

Actions:

  1. Go to the Create New page in the top navigation

Expected:

  • Person and Storage Location authorities should NOT be listed

Test 23: Search

Actions:

  1. Go to the Search page in the top navigation

Expected:

  • Check the drop down in the Find area. Person should not be listed
  • Check the drop down in the top center. Person should not be listed

Test 25: Predictive Text for NONE vocabularies in READ record

Actions:

  1. Open one of the Acquisition records you created for the this test

Expected:

  • The Person and Organizations terms used in the record should be listed under the Terms Used menu in the right sidebar
  • The Person terms should not be clickable
  • The Acquisition record should be read-only, with none of the vocabulary fields editable

Test 27: Predictive Text in WRITE record

Actions:

  1. Open one of the Cataloging records you created for this test

Expected:

  • The Person and Organization terms used in the record should be listed under the Terms Used menu in the right sidebar
  • The Person terms should not be clickable

Actions:

  1. Go to the Production Person field group
  2. Delete one instance of the field group
  3. Click Save

Expected:

  • Record should be saved and this should be confirmed by a Successfully Saved message
  • The Person term from the field group should disappear from the Terms Used menu in the right sidebar

Actions:

  1. Go back to the Production Person field group
  2. Add a new instance of the field group
  3. Attempt to add a new entry, by typing something in the Person field

Expected:

  • An error message should inform you that you do not have permission to enter new content in that field (mostly working, see CSPACE-5323)

Testing READ Permission Authorities

Test 31: Create New Page

Actions:

  1. Go to the Create New page in the top navigation

Expected:

  • Link for Storage Location vocabulary is not displayed.

Test 33: Search and Edit Functionality

Actions:

  1. Continue from Test 31
  2. From the search box at the top center of the page, select Storage Locations from the dropdown
  3. Click search
  4. Navigate to one of the vocabulary terms found

Expected:

  • The Vocabulary term should be loaded in read only mode. The Save, Revert, Clone, and Delete buttons should not be displayed

Test 35: Predictive Text in READ Record

Actions:

  1. Open the Intake record you created for this test

Expected:

  • The record should be in read only mode
  • The values from vocabulary fields used in the record should be listed under the Terms Used menu in the right sidebar

Actions:

  1. Click the Storage Location term in the Terms Used menu to pivot to it

Expected:

  • The Storage Location term record should be successfully loaded
  • The Storage Location term record should be in read only mode

Test 37: Predictive Text in WRITE/DELETE Record

Actions:

  1. Open one of the L/M/I records you created for this test
  2. Got to the Normal Location field

Expected:

  • The Storage Location term from the Normal Location field should be listed under the Terms Used menu in the right sidebar

Actions:

  1. Delete the value in the Normal Location field
  2. Click Save / Save Only

Expected:

  • Record should be saved and this should be confirmed by a Successfully Saved message
  • The Storage Location term from the field group should disappear from the Terms Used menu in the right sidebar

Actions:

  1. Go back to the Normal Location field
  2. Write a substring of some existing Storage Location term in the field (e.g. MST)

Expected:

  • A list of vocabulary terms should be presented
  • You should be NOT presented with the option add a new Storage Location term to the authority

Actions:

  • Select one of the presented vocabulary terms
  • Click Save

Expected:

  • Save should be successful
  • The new Storage Location term should appear under the Terms Used menu on the right sidebar

Testing WRITE Permission Authorities

Test 41: Create New Page

Actions:

  1. Go to the Create New page in the top navigation

Expected:

  • Organizations should be displayed

Actions:

  1. Create a new Organizations Authority term record
  2. Fill in Display name
  3. Save the record

Expected:

  1. Record should be saved
  2. Delete button should not appear

Test 43: Search and Edit Functionality

Actions:

  1. From the top center search area, select Organizations Authority from the dropdown
  2. Click search
  3. From the list of results, click one of them to load it

Expected:

  • The Organization term should be loaded in edit mode.

Actions:

  • Edit a field and click save

Expected:

  • The record should successfully save

Test 45: Predictive Text in READ Record

Actions:

  1. Open one of the Acquisition records you created for this test
  2. Go to the Acquisition Source field

Expected:

  • The Person and Organization terms in the field should be listed under the Terms Used menu in the right sidebar
  • The record should be in read only mode, disallowing any edit

Actions:

  1. Click an Organizations term under the Terms Used menu to pivot to it

Expected:

  • The Vocabulary term should be successfully loaded in edit mode

Test 47: Predictive Text in WRITE Record

Actions:

  1. Open one of the Cataloging Records you created for this test
  2. Go to the Production Organization field group

Expected:

  • The Organization term from the field group should be listed under the Terms Used menu in the right sidebar

Actions:

  1. Delete one instance of the Production Organization field group
  2. Save the record

Expected:

  • Record should be saved and this should be confirmed by a Successfully Saved message
  • The Organization term should disappear from the Terms Used menu

Actions:

  1. Go back to the Production Organization field group
  2. Add another instance of the field group
  3. Enter some Organization term into the Organization field

Expected:

  • A list of vocabulary terms should be presented
  • You should have the option to create a new Organization term from the typed name

Actions:

  • Select one of the presented vocabularies
  • Click Save

Expected:

  • Save should be successful
  • The new Vocabulary term should appear under the Terms Used menu

Actions:

  1. Go back to the field you changed
  2. Write something in the field that isn't an existing Vocabulary term 
  3. Click Add To Local Organizations
  4. Click Save

Expected:

  • Save should be successfull
  • The new Organization term should appear under the Terms Used menu

Combined Authorities

Test 51: Behavior on NONE/READ/WRITE Combination

Actions:

  1. Open the Exhibition record you created for this test
  2. Got to the Venue field group

Expected:

  • The Organization, Place, and Storage Location terms from the Name fields should be listed under the Terms Used menu

Actions:

  1. Delete the field group that uses the Place term
  2. Click Save

Expected:

  • Record should be saved and this should be confirmed by a Successfully Saved message
  • The Place term should disappear from the Terms Used menu

Actions:

  1. Add another instance of the Venue field group
  2. Write a substring in the Name field that will match vocabulary terms in the Places, Storage Locations, and Organizations authorities (eg. "Jam")

Expected:

  • A list of vocabulary terms should be presented, but should only contain entries from the Storage Locations and Organizations authorities
  • You should NOT be presented with the option add a new Vocabulary term  (eg. "Jam") to the Places or Storage Locations authorities

Actions:

  • Select one of the presented vocabulary terms
  • Click Save

Expected:

  • Save should be successful
  • The new term should appear under the Terms Used menu

Actions:

  • Add another instance of the Venue field group
  • Write any term in the Name field

Expected

  • You should be presented with the option to add a new Vocabulary term to the Organizations authority

Action

  • Add the term to the Organizations authority
  • Click Save

Expected

  • Save should be successful
  • The new Organization term should appear under the Terms Used menu