-
Functional Test
-
Minor
-
None
-
Original - DO NOT REPORT TEST RESULTS HERE
Prerequisites
- A Google Drive account for use during the test
- Your Moodle site must be publicly available, you can use ngrok for that
- Enable and configure OAuth 2 Google service (Refer to https://docs.moodle.org/401/en/OAuth_2_Google_service)
NOTE: Take note of Client ID and Client secret generated - Create a new Google service (Site administration > Server > OAUth 2 services)
NOTE: Uncheck "Require email verification" and check "I understand that disabling email verification can be a security issue" - Enable File download portfolio and Google Drive portfolio (Refer to https://docs.moodle.org/en/Google_Drive_portfolio)
NOTE: Enable portfolios in Site administration > Advanced features if you can't find Manage Portfolios in Plugins - Download attached backup file and restore as new course
Testing
- As student, access your assignment submission
- Save your assignment submission data locally by clicking on the filename
- Go back to course and access a past chat session
- Click on "Export to portfolio"
- Choose File download as destination and click "Next"
- Follow the succeeding prompts to export the chat session data
- Return to course and access the forum activity
- Access your own forum post then click "Export to portfolio"
- Choose File download as destination and click "Next"
- Follow the succeeding prompts to export the forum post data
- Access another student's forum post and confirm that you can't export it
- Return to course and access the glossary activity
- Click on the corresponding "+" icon on your own glossary entry to export to portfolio
- Choose File download as destination and click "Next"
- Follow the succeeding prompts to export the glossary entry data
- Return to the glossary activity, confirm you cannot see the + icon on another student's entry
- Return to course and access Database activity
- Click on the actions menu of your entry in the activity (3 vertical dots on the right side of the entry name)
- Click on "Export to portfolio"
- Choose File download as destination and click "Next"
- Follow the succeeding prompts to export the database entry data
- Return to the database activity, confirm that you cannot see "Export to portfolio" on the actions menu of another student's entry
- Open the corresponding exported local files and confirm that each activity data is exported correctly
- Return to course and access assignment submission again
- Click on "Export to portfolio"
- Choose Google Drive as destination and click "Next"
- Follow the succeeding prompts to export Assignment data to Google Drive
- Repeat steps 3~10 and steps 12~15 while setting destination to Google Drive instead of File download
- Access your Google Drive account and check that a folder is created with the filename "portfolio-export-<activity>-<timestamp>. (e.g. portfolio-export-assign-1558669163.)
- Access the created folder and confirm that file is exported correctly