Skip to content

Latest commit

 

History

History
379 lines (345 loc) · 14.2 KB

test_script.md

File metadata and controls

379 lines (345 loc) · 14.2 KB

Scholar@UC Test Script

Seed the database

  • bundle exec rake db:seed

Test user List (generated by the rake task above)

Section 1

First log in and welcome

  1. Create a local account for yourself using your real email address that you can check
  2. Log in as yourself
  3. Verify that you see the welcome page after logging in
  4. Verify that you receive a welcome email (may not work if you are running the application on your local machine)
  5. Log out
  6. Log in as yourself
  7. Verify that you again see the welcome page
  8. Click the Edit my Profile button at the bottom of the welcome page
  9. Enter your first and last name
  10. Click the Save Profile button
  11. Log out
  12. Log in as yourself
  13. Verify that you see the welcome page with a Click here to hide this welcome page button
  14. Click the Click here to hide this welcome page button
  15. Log out
  16. Log in as yourself
  17. Verify that you see the "What are you uploading?" page (not the welcome page)

Section 2

Create works

  1. Log in as yourself
  2. Begin creating a new Generic Work
  3. Verify the form has tabs at the top of the page
    • Metadata
    • DOI
    • Files
    • Relationships
    • Sharing
  4. Verify that the visibility pane defaults to "Open Access" visibility
  5. Verify that the visibility pane does not have a "Lease" option
  6. Verify that your name (Lastname, Firstname) is auto-populated in the Creator field
  7. Verify that some fields are required:
    • Title
    • Creator
    • College
    • Program or Department
    • Description
    • License
  8. Verify that some fields are multi-valued:
    • Creator
    • Publisher
    • Alternate Title
    • Subject
    • Geographic Subject
    • Time Period
    • Language
    • External Link
  9. DOIs
    1. Click on the DOI tab
    2. Select the radio button that you already have a DOI
    3. Click on the Metadata tab
    4. Verify that "University of Cincinnati" is displayed in the Publisher field
    5. Click on the DOI tab
    6. Select the radio button that you don't want to create a DOI
    7. Click on the Metadata tab
    8. Verify that the Publisher field is empty
    9. Click on the DOI tab
    10. Select the radio button to create a new DOI
    11. Click on the Metadata tab
    12. Verify that "University of Cincinnati" is displayed in the Publisher field
  10. Use the License Wizard to select a license
  11. Enter multiple lines of content into the Description and Notes fields
  12. Enter content into all of the remaining fields on the form
  13. Save the work
  14. Verify that the work saves without requiring files to be attached
  15. Files
    1. Edit the work
    2. Attach a PDF, and Word document, and an image to the work
    3. Save the work
    4. Verify that the files are attached and have proper thumbnails
      • Note: Thumbnails for Word documents require that LibreOffice is installed on the server
    5. Edit the work
    6. Attach a cloud file from Box.com (may not work if you are running the application on your local machine)
    7. Save the work
    8. Verify that the cloud file is attached
    9. Optional: Attempt to attach a file > 3 gigabytes in size and verify it is blocked
    10. Change the PDF and the image to private visibility
    11. Verify that the PDF and image are marked private and can only be seen when you are logged in as yourself
    12. Change the work visibility to University of Cincinnati and allow the system to update the visibility of all files
    13. Verify that the work and all files have institution visibility and can only be seen by logged-in users

Add and delete files to works

  1. On the Generic Work's show page, click the Edit button
  2. Upload another file
  3. Save the work
  4. Delete the first file from the work
  5. Verify that the file is removed

Add child work to parent work

  1. Creates a child work (you can use the work already in the script as the parent)
  2. Adds the child work to a collection
  3. Visit the child work's show page and verify that In Collections and In Parent Work are displaying properly.

View works

  1. View the Generic Work's show page
  2. Verify that the license being displayed is the same one you chose with the wizard
  3. Verify that line breaks are preserved for the Description and Notes fields
  4. Verify that the appropriate metadata fields and labels are being displayed
  5. Verify that the appropriate buttons are being displayed (Analytics, Edit, Delete, File Manager, Attach Child, Add to collection, etc.)
  6. Verify that a DOI is displayed
  7. Verify that the citation buttons do not display
  8. Verify that the bottom of the page displays "Permanent link to this page:" followed by the work's hyperlink
  9. Click on the attached PDF file to view its show page
  10. Verify there is a link on the page to download Adobe Reader
  11. Verify that the bottom of the file page displays "Permanent link to this page:" followed by the file's hyperlink
  12. Use the File Manager to change the order of files and select the image file as the representative for the work
  13. Verify the image displays in the image viewer

Delete works

  1. Delete the work
  2. Verify that the work and attached files can no longer be found

Section 3

Batch Create

  1. Log in as yourself
  2. Begin creating a new batch of Generic Works
  3. Verify the form has tabs at the top of the page
    • Files
    • Metadata
    • Relationships
    • Sharing
  4. Verify that the visibility pane defaults to "Open Access" visibility
  5. Verify that the visibility pane does not have a "Lease" option
  6. Add a few files
  7. Click on the Metadata tab
  8. Verify that your name (Firstname, Lastname) is auto-populated in the Creator field
  9. Verify that some fields are required:
    • Creator
    • College
    • Program or Department
    • Description
    • License
  10. Verify that some fields are multi-valued:
    • Creator
    • Publisher
    • Alternate Title
    • Subject
    • Geographic Subject
    • Time Period
    • Language
    • External Link
  11. Enter content into all of the remaining fields on the form
  12. Save the work
  13. Verify that a unique work is created for each of the files added
  14. Verify each of the works has the metadata you added

Batch Edit

  1. Visit /Dashboard
  2. Click on Works
  3. Select a few of your works and click the Edit Selected button
  4. Verify that the Batch Edit page lists only multi-valued fields
  5. Edit each of the fields
  6. Save changes
  7. Verify that each work retains the edits you made

Section 4

Create collections

  1. Log in as an Admin User
  2. Create a new collection type named "Test"
  3. Log in as Many Deposits
  4. Begin creating a new collection of type "Test"
  5. Describe the collection using every metadata field
  6. Save the collection
  7. Set the collection to private visibility and save it
  8. Verify that the collection can only be seen when you are logged in as yourself
  9. Add branding (a banner) to the collection and save it
  10. Add at least ten works to the collection
  11. Change the collection visibility to public and verify in can be seen by non-logged in users

Create Subcollections

  1. Visit /dashboard
  2. Click on Collections
  3. Click on one of your existing collections
  4. Click the Add new collection to this Collection link
  5. Fill out all of the metadata fields and save the collection
  6. Visit the public view of the parent collection
  7. Verify that the subcollection is listed on the collection's page

View collections

  1. View the collection's show page
  2. Verify that the appropriate metadata fields and labels are being displayed
  3. Verify that the banner is being displayed
  4. Verify all of the collection's works are listed

Delete collections

  1. Remove some works from the collection
  2. Verify that the works are no longer listed in the collection
  3. Delete the collection
  4. Verify that the collection can no longer be found

Section 5

Proxies

  1. Log in as Many Deposits
  2. Add Student Delegate as your proxy
  3. Verify Student Delegate shows as a current proxy on your dashboard
  4. Log in as Student Delegate
  5. Begin creating a new Article work
  6. Verify that "Delegate, Student" shows in the Author field
  7. Verify that the College and Department fields contain the Student Delegate's College and Department
  8. Change On behalf of to your own account
  9. Verify that the Author field changes to "Deposits, Many"
  10. Verify that the College and Department fields change to Many Deposit's College and Department
  11. Fill out the required fields and save the work
  12. Click the Edit button for the Article work
  13. Verify on the edit form that the On behalf of dropdown is not displayed
  14. Log in as Many Deposits
  15. Verify that the Article work shows on the works dashboard
  16. verify that the Article work can be edited by Many Deposits
  17. Remove Student Delegate as your proxy
  18. Log in as Student Delegate
  19. Verify that the Article work no longer shows in the works dashboard
  20. Verify that the Article work can no longer be edited by Student Delegate

Collaborate on a work

  1. Log in as Many Deposits
  2. Create a private Student Work with many files attached
  3. Verify that the Advisor field is required on Student Works
  4. Add No Deposits as an editor
  5. Log in as No Deposits
  6. Navigate to the Student Work you created
  7. Verify that you have edit access to the work
  8. Edit some metadata and save the work
  9. Remove an existing file from the work and add a new one
  10. Add the work to a collection

Profile Curation

  1. Log in as Many Deposits
  2. Edit the profile for Many Deposits and fill out all fields
  3. Verify that the Department, UC affiliation, and Email fields cannot be edited
  4. Save your changes
  5. Verify all fields display on your profile page
  6. Edit the profile and add a profile picture
  7. Save your changes
  8. Verify that the image is displayed on the profile page
  9. Highlight one of your works
  10. Verify the highlighted work displays on your profile page
  11. Remove the highlighted work from your profile

People Page

  1. Visit /users
  2. Verify that Many Deposits is listed on the page
  3. Verify that No Deposits is not listed on the page
  4. Verify that the correct college and department is listed for users
  5. Verify that the correct number of works created is listed for users
  6. Verify that Many Deposits has an avatar displayed
  7. Use the search box on the page to find "many"
  8. Verify that Many Deposits is found and listed
  9. Log in as an admin
  10. Visit /users
  11. Verify that you can see all users listed

Section 6

Visibility

  1. Log in as yourself
  2. Create a Document work with a visibility of "University of Cincinnati"
  3. Create an Image work with a visibility of "Open Access"
  4. Log in as Many Deposits
  5. Create a Dataset work with a visibility of "Private"
  6. Visit /catalog
  7. Verify that the Document, Image, and Dataset works show in the search results
  8. Log out
  9. Visit /catalog
  10. Verify that only the Image work shows in the search results
  11. Log in as Many Deposits
  12. Visit /catalog
  13. Verify that the Document, Image, and Dataset works show in the search results
  14. Log in as yourself
  15. Visit /catalog
  16. Verify that the Document and Image works show in the search results

Search and Discovery

  1. Log in as Many Deposits
  2. Visit /catalog
  3. Verify that collections sort to the top of the search results list by default
  4. Verify that works in the search results list show the following fields
    • Type
    • Description/Abstract
    • Creator/Author
    • Submitter
    • Date Uploaded
    • Date Modified
    • Date Created
    • License
  5. Sort the results by title A-Z
  6. Verify that the search results are sorted by title
  7. Sort the results by title Z-A
  8. Verify that the search results are sorted reverse by title
  9. Verify that all facets display
    • Type of Work
    • Creator/Author
    • Subject
    • College
    • Department (displays only after the College facet has been selected)
    • Language
    • Publisher
    • Date Created
    • Collections
  10. Search for the title of the Document work
  11. Verify that the Document work shows in the search results
  12. Select one of the facets
  13. Verify that selecting a facet doesn't cause the original search to be lost

Content feeds

  1. Visit /feed.rss
  2. Verify that the RSS feed displays the most recently added 10 works
  3. Visit /sitemap.xml
  4. Verify that the sitemap is displayed and includes works and collections

Section 7

Virus Scanning

  1. Log in as yourself
  2. Begin creating a new Generic Work
  3. Click on the Files tab
  4. Add several files and have one of them be an EICAR test virus file
  5. Verify that the infected file is identified (may not work if you are running the application on your local machine)
  6. Click on the Metadata tab
  7. Fill out the required metadata
  8. Save the work
  9. Verify that all files except the infected file are attached

Language Translation

  1. Verify that the interface can be switched to Spanish or Chinese
  2. Verify that the interface can be switched back to English

Contact Form

  1. Log in as yourself
  2. Visit /contact
  3. Verify that your name and email address are auto-populated on the form
  4. Verify the form does not display a Google CAPTCHA
  5. Fill out the form and submit
  6. Verify the email is received by [email protected] recipients
  7. Log out
  8. Visit /contact
  9. Verify that none of the fields are auto-populated
  10. Verify the form does display a Google CAPTCHA (may not work if you are running the application on your local machine)
  11. Fill out the form and submit
  12. Verify the email is received by [email protected] recipients

Section 8

ETDs

  1. Log in as yourself
  2. Visit /classify_concerns/new
  3. Verify that "ETD" is not one of the types of work available
  4. Log in as admin user
  5. Visit /classify_concerns/new
  6. Begin creating a new ETD Work
  7. Verify that the Creator field is not auto-populated
  8. Verify that Advisor is a required field
  9. Verify that Publisher is not a multi-valued field
  10. Verify that the Degree and Degree Date fields exist
  11. Fill out the required metadata fields
  12. Save the work

Embargoes

  1. Log in as yourself
  2. Create a Media Work with several files and an embargo date for tomorrow
  3. Next day: Verify you received an email overnight that your work is now available
  4. Next day: Verify that the work and attached files are now "Open Access"