Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-17933 Moodle 4.3 QA
  3. MDLQA-18229

CLONE - Teacher can share course, activity and resource using LTI provider (legacy)

XMLWordPrintable

      Note: Two sites are required for testing this issue
      1. LTI consumer
      2. LTI provider.
      Enable LTI provider on course and activity
      1. Log in as administrator.
      2. Follow Site administration ► Security ► HTTP security and enable 'Allow frame embedding'.
      3. Follow Site administration ► Plugins ► Authentication ► Manage authentication' and enable the 'LTI' authentication plugin.
      4. Follow Site administration ► Plugins ► Enrolments ► Manage enrol plugins and enable 'Publish as LTI tool'.
      5. Log out and log in as teacher.
      6. Visit a course with at least 1 activity (assignment) and 1 resource (file).
      7. Follow Course administration ► Users ► Enrolment methods.
      8. Add a Publish as LTI tool with 'Tool to be published' selected to course and "LTI version" set to "Legacy LTI"
      9. Add a Publish as LTI tool with 'Tool to be published' selected to assignment and "LTI version" set to "Legacy LTI"
      10. Add a Publish as LTI tool with 'Tool to be published' selected to file and "LTI version" set to "Legacy LTI"
      11. Follow Course administration ► Published as LTI tool.
      12. Make note of all 3 URLs and secrets.
      On your LTI consumer site
      1. Log in as teacher and visit a course.
      2. Go to "More > LTI External tools"
      3. Add 3 'External Tool' activities and use the following from your LTI provider site.
        • Tool Provider 'Cartridge URL' as the Tool URL
        • Set 'Consumer key' to 'moodle'
        • Tool Provider 'Shared secret' as the Secret
      4. Now, go to the course and add 3 instances - one for each of the tools you just created (just select the respective tool from the activity chooser)
      5. Log in as a student.
      6. Visit the course and click on each LTI activity.
      7. Verify 'External Tool' activity links to course display course.
      8. Verify 'External Tool' activity links to assignment display assignment.
      9. Verify 'External Tool' activity links to file display file.
      Proxy test
      1. Copy 'Registration URL' from the 'Course administration ► Published as LTI tool' page in the LTI provider site
      2. On a consumer site go to Site administration ► Plugins ► External tool ► Manage tools
      3. Paste the url you copied into the box, but don't click add
      4. Change the token part of the url to something else such as "ASDF123"
      5. Click add
      6. Make sure that there is an error displayed
      7. Click cancel
      8. Paste the URL and this time click add with the correct token
      9. Click continue
      10. Click save
      11. The tool should successfully be added.
      12. Edit the tool and set "Tool configuration usage" to "Show in activity chooser and as a preconfigured tool"
      13. Save
      14. Go to a course
      15. Click to add an activity, selecting the tool you just created
      16. Click save and display
      17. Verify it works as expected and you log into LTI provider site correctly

        1. MDLQA-18229.png
          MDLQA-18229.png
          275 kB
        2. MDLQA-18229-proxy test.png
          MDLQA-18229-proxy test.png
          758 kB
        3. testing.png
          testing.png
          144 kB

            meowmiomew Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.