Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-15457 Moodle 3.11 QA
  3. MDLQA-15842

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. MDLQA-15842_test4_4.png
          MDLQA-15842_test4_4.png
          68 kB
        2. MDLQA-15842_test1_7.png
          MDLQA-15842_test1_7.png
          61 kB
        3. MDLQA-15842_test2_6d.png
          MDLQA-15842_test2_6d.png
          75 kB
        4. MDLQA-15842_test3_2.png
          MDLQA-15842_test3_2.png
          61 kB
        5. MDLQA-15842_test3_4.png
          MDLQA-15842_test3_4.png
          190 kB
        6. MDLQA-15842_test3_6a.png
          MDLQA-15842_test3_6a.png
          68 kB
        7. MDLQA-15842_test3_6c.png
          MDLQA-15842_test3_6c.png
          72 kB
        8. MDLQA-15842_test2_4.png
          MDLQA-15842_test2_4.png
          195 kB
        9. MDLQA-15842_test2_6a.png
          MDLQA-15842_test2_6a.png
          68 kB
        10. MDLQA-15842_test2_6b.png
          MDLQA-15842_test2_6b.png
          68 kB
        11. MDLQA-15842_test2_6c.png
          MDLQA-15842_test2_6c.png
          67 kB
        12. MDLQA-15842_test3_6b.png
          MDLQA-15842_test3_6b.png
          73 kB
        13. MDLQA-15842_test4_2.png
          MDLQA-15842_test4_2.png
          85 kB

            Geshoski Mihail Geshoski
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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