-
Functional Test
-
Minor
-
Moodle 4.2
-
None
Requirements
- A site with public access run with HTTPS where you can log in as admin. If you would like to use the QA testing site for running it, please see the QA testing guide for details on how to request admin access. Begin just after the hourly reset to give yourself plenty of time to complete the test!
- A badgr account on https://eu.badgr.com/ (Europe).
Setup badges
- Login as admin.
- Go to "Site administration | Badges | Add a new badge" and create a badge at site level.
- Add criteria to the badge so it can be manually issued by role.
- Enable the badge.
- Issue the badge to any user (student1).
Testing scenario 1: Create Open Badges service and backpack
- Login as admin.
- Go to "Site administration / Server / OAuth 2 services".
- Create an "Open Badges" service with the following information:
- Name: "Badgr Europe"
- Service base URL: https://eu.badgr.com/
- Check "Client ID" and "Client secret" fields are not mandatory and "Service base URL" is mandatory.
- There is no need to check the "Scopes included in a login request" fields. They should be filled in automatically.
- Save changes.
- Check the "Discovery" column in the OAuth2 services table has a green tick mark for the "Badgr Europe" service created.
- Access to the "Configure endpoints" page.
- Check, at least, the following endpoint appears: discovery_endpoint
- Edit the "Badgr Europe" service.
- Check the "Client ID" and "Client secret" fields are not empty.
- Go to "Site administration / Badges / Manage backpacks".
- Click the "Add a new backpack" button and create a new backpack with the following information:
- Backpack API URL: https://eu.badgr.com
- Backpack URL: https://eu.badgr.com
- API version supported: Open Badges v2.1
- OAuth2 services: Badgr Europe
- Save changes.
Testing scenario 2: Connect to backpack
- Login as a user with at least one badge awarded (student1).
- Go to Dashboard / Preferences / Badges / Backpack settings.
- Select "https://eu.badgr.io/" as "Backpack provider".
- Check the "Status" is "not connected" and the button "Connect to backpack" appears.
- Click the button "Connect to backpack".
- Check the site is redirected to the backpack site and the login form is displayed.
- Login using one Badgr Europe existing user.
- Check the screen requesting your permission is displayed with the following application access permissions:
- Get Open Badges Profile
- Create Open Badges Assertion
- Get Open Badges Assertions
- Offline Access
- Click the button "Yes, Allow".
- Check the "Backpack has been connected" message is displayed.
- Check you're redirected to the Manage badges page.
- Click the "Change backpack settings" button.
- Check the status is "Connected".
Testing scenario 3: Send badge to the backpack
- Go to Dashboard / Preferences / Badges / Manage badges.
- Click on the "Add to backpack" button.
- Check the message "Added badge to backpack " is displayed.