-
Functional Test
-
Minor
-
Moodle 3.11
-
None
NOTE: This test requires admin access. If you would like to use the QA testing site for running the test, 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!
30 OCT 2020: the LTI tool used in this test case doesn't deal with the 'samesite cookie' issue. See also the information from IMS Global.
Testing in Firefox should work as normal. However, if testing in Google Chrome please change the following settings:
go here in chrome:
chrome://flags/#same-site-by-default-cookiesthen disable:
samesite by default cookies and
cookies without samesite must be secureThen relaunch chrome.
Safari suffers from the same issue.
Create LTI tool registration to show in activity selector
- As admin got to Site administration > Plugins > Activity modules > External tool > Manage tools
- Enter https://lti.tools/test/tp.php in the Tool URL input and click "Add Legacy LTI"
- Click on the Registration button
- Select all options under Enabled capabilities and Tool services in the new page that loads
- Press "Register tool"
- When asked if you'd like to activate this tool, click "Yes"
- Verify that the new tool now appears as "Test tool provider"
- Click on its edit button
- (Optional) Change its name
- Change the Tool configuration usage dropdown to "Show in activity chooser and as a preconfigured tool" (This ensures that the LTI tool can be enabled for both methods below)
- Click "Save changes"
Add a LTI activity
- As a teacher in a course, add an activity and select your recently configured LTI tool from the list (likely called "Test tool provider" unless you have renamed it).
- Type a Activity name
- Save and Display
- Ensure that you see a page that says: "IMS LTI tool provider emulator"
- Click on "Membership" icon and then click on "Read" button
- Check the JSON in the response to ensure it correctly reports each user enrolled in the course
Add a LTI activity (alternate way)
- As a teacher in a course, add an activity "External tool".
- Type a Activity name and select "Test tool provider" (unless you have renamed it) for "Preconfigured tool".
- Save and Display
- Ensure that you see a page that says: "IMS LTI tool provider emulator"
- Click on "Membership" icon and then click on "Read" button
- Check the JSON in the response to ensure it correctly reports each user enrolled in the course
Limit an LTI tool to only showing once an External Tool activity has been created
- Click on the edit button for "Test tool provider" (unless you have renamed it)
- Change the Tool configuration usage dropdown to "Show as preconfigured tool when adding an external tool"
- Click "Save changes"
- Add a new activity and check that the External tool is gone from the activity chooser
- is a QA test written for
-
MDL-50658 Add support for LTI Memberships service
- Closed