Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-17385 Moodle 4.2 QA
  3. MDLQA-17695

CLONE - A teacher can add an IMS LTI activity with membership to the course

XMLWordPrintable

      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-cookies

      then disable:
      samesite by default cookies and
      cookies without samesite must be secure

      Then relaunch chrome.

      Safari suffers from the same issue.

       

      Create LTI tool registration to show in activity selector

      1. As admin got to Site administration > Plugins > Activity modules > External tool > Manage tools
      2. Enter https://lti.tools/test/tp.php in the Tool URL input and click "Add Legacy LTI"
      3. Click on the Registration button
      4. Select all options under Enabled capabilities and Tool services in the new page that loads
      5. Press "Register tool"
      6. When asked if you'd like to activate this tool, click "Yes"
      7. Verify that the new tool now appears as "Test tool provider"
      8. Click on its edit button
      9. (Optional) Change its name
      10. 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)
      11. Click "Save changes"

      Add a LTI activity

      1. 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).
      2. Type a Activity name
      3. Save and Display
      4. Ensure that you see a page that says: "IMS LTI tool provider emulator"
      5. Click on "Membership" icon and then click on "Read" button
      6. Check the JSON in the response to ensure it correctly reports each user enrolled in the course

      Add a LTI activity (alternate way)

      1. As a teacher in a course, add an activity "External tool".
      2. Type a Activity name and select "Test tool provider" (unless you have renamed it) for "Preconfigured tool".
      3. Save and Display
      4. Ensure that you see a page that says: "IMS LTI tool provider emulator"
      5. Click on "Membership" icon and then click on "Read" button
      6. 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

      1. Click on the edit button for "Test tool provider" (unless you have renamed it)
      2. Change the Tool configuration usage dropdown to "Show as preconfigured tool when adding an external tool"
      3. Click "Save changes"
      4. Add a new activity and check that the External tool is gone from the activity chooser

        1. (I) 7 Passed -- (Master)MDLQA-17695.png
          44 kB
          Kim Jared Lucas
        2. (II) 4 Passed -- (Master)MDLQA-17695.png
          120 kB
          Kim Jared Lucas
        3. (II) 6 Passed -- (Master)MDLQA-17695.png
          78 kB
          Kim Jared Lucas
        4. (III) 4 Passed -- (Master)MDLQA-17695.png
          118 kB
          Kim Jared Lucas
        5. (III) 6 Passed -- (Master)MDLQA-17695.png
          81 kB
          Kim Jared Lucas
        6. (IV) 4 Passed -- (Master)MDLQA-17695.png
          89 kB
          Kim Jared Lucas

            kimjared2121 Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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