-
Functional Test
-
Minor
-
Moodle 3.11
Requirements
- A site with public access 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 of how to request admin access. Begin just after the hourly reset to give yourself plenty of time to complete the test!
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: "IMS Global"
- Service base URL: https://dc.imsglobal.org/
- Check "Client ID" and "Client secret" fields are not mandatory and "Service base URL" is mandatory.
- Save changes.
- Check the "Discovery" column in the OAuth2 services table has a green tick mark for the "IMS Global" service created.
- Access to the "Configure endpoints" page.
- Edit the "IMS Global" 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://dc.imsglobal.org/obprovider/ims/ob/v2p1
- Backpack URL: https://dc.imsglobal.org
- API version supported: Open Badges v2.1
- OAuth2 services: IMS Global
- 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://dc.imsglobal.org" 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 of the existing users (alice or bob).
- 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.
- is a QA test written for
-
MDL-70689 Add new "IMS OBv2.1" OAuth 2 service
- Closed