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

CLONE - User can open external tool LTI submission from the gradebook

    XMLWordPrintable

Details

    Description

      This test requires admin access (ask for credentials) and can be tested on the QA site.

      Pre-requisite

      1. LTI Advantage requires your site to be reachable from the internet. If not, Install ngrok to expose your moodle setup externally. Refer here for additional guidelines
      2. Have a course with an instructor and at least one student
      3. Have the Robotest Test app installed
        1. As site administrator, navigate to Site Admin > Plugins > Activity Modules > External Tool > Manage Tools
        2. In the box that says tool url enter: https://robotest.theedtech.dev/register
        3. Click the Add LTI Advantage button
        4. The test tool should open with a trace of the communication with Moodle, all should be green (thumbs up).
        5. Click the close button - the test app UI should disappear and the list of tools refreshing
        6. Verify the Robotest app has been added and is not yet activated
        7. Click the Activate button
      4. For LTI 1.1 we use saLTIre (https://saltire.lti.app/)
        1. As site administrator, navigate to Site Admin > Plugins > Activity Modules > External Tool > Manage Tools -> Configure Tool Manually
        2. Tool URL: https://saltire.lti.app/tool
        3. Set as LTI 1.1
        4. Key: any value
        5. Secret: secret
        6. Under "Privacy" section "Accept grades from the tool" set to "As specified in Deep Linking definition or Delegate to teacher"

      LTI Advantage Support for Submission Review

      We enter the course as instructor, add a couple of links, one supporting submission review, one not. Then verify the launches from the gradebook.

      Since multiple or single import have slightly different logic, we import both using multiple and single item.

      1. Enter a course as instructor
      2. Turn editing on
      3. Add an activity > external tool:
        1. Select Robotest from the list of tools
        2. Click the Select Content button
        3. Select a single item: "A single Graded Activity with Submission Review Full"
        4. Back to Moodle, modify the title to prefix it with SINGLE, as to remember that link was imported as a single item import
        5. Submit
      4. Now let's import multiples: Add an activity > external tool:
        1. Select Robotest from the list of tools
        2. Click the Select Content button
        3. Select "One of Each"
        4. Back to Moodle, verify all the links listed in Robotest are going to be imported (should be 4 of them, 3 graded)
        5. Submit
      5. Now let's check the Submission review actually works by going to the gradebook: navigate to grades
        1. Verify that each cell for the graded imported links has a ellipsis menu (...)
        2. For each of those links, click on the ellipsis menu (...) and select "Grade analysis" for the student cell
          1. Verify the launch is successful
          2. For submission review launch, it should mention it's a submission review (The 2nd header row should say 'Submission Review Launch')
          3. Verify the for_user field (User id found) is indicated as successfully populated. Note that it should be the id of the student for which the grade was clicked on.
      6. Let's verify the regular launches are still... regular launches
        1. Navigate to the Course main page (where the topics are listed)
        2. Click on one of the Robotest activity
        3. In Robotest, verify the type of launch is Resource Link Launch (The 2nd header row should start with ('Resource Link Launch')

      Let's verify Submission Review from a Student viewpoint now:

      1. Enter course as a Student
      2. Click on one of the imported links, one starting with Graded with Sub. Review (IFrame)
        1. Verify the launch is a successful and  the type of launch is Resource Link Launch (The 2nd header row should start with ('Resource Link Launch')
        2. It should have sent a grade back (one row should have a green title saying 'Score Post without error ')
      3. Navigate back the Moodle Course home (by clicking on the course name in the Moodle UI)
      4. Click on Grade
      5. On the list of activities, find the one you clicked on in step 2
        1. Verify it has a grade
      6. Click on the activity link
        1. Verify the launch type is submission review (The 2nd header row should say 'Submission Review Launch')
        2. Verify the User Id value and the For User Id have the same numeric value

      LTI 1.1 Regular Launch

      While this feature is not intended for 1.1 launches, by the way Moodle External Tool is built, there is no way to prevent the ellipsis menu (...) to show up. So since it shows, it should work (the link should launch successfully).

      1. In the course, turn edit on, add an external tool activity
      2. Choose saLTIre tool
      3. Make the activity gradable and set maximum points to some no 0 value
      4. Save
      5. Open the gradebook
      6. Verify a column exists for that new link
      7. Click on the ellipsis menu (...) and select "Grade analysis" for the student cell
      8. Verify the tool launches successfully

      Attachments

        1. MDLQA-17917 1.png
          MDLQA-17917 1.png
          77 kB
        2. MDLQA-17917 10.png
          MDLQA-17917 10.png
          140 kB
        3. MDLQA-17917 11.png
          MDLQA-17917 11.png
          31 kB
        4. MDLQA-17917 12.png
          MDLQA-17917 12.png
          139 kB
        5. MDLQA-17917 2.png
          MDLQA-17917 2.png
          95 kB
        6. MDLQA-17917 3.png
          MDLQA-17917 3.png
          86 kB
        7. MDLQA-17917 4.png
          MDLQA-17917 4.png
          35 kB
        8. MDLQA-17917 5.png
          MDLQA-17917 5.png
          479 kB
        9. MDLQA-17917 6.png
          MDLQA-17917 6.png
          473 kB
        10. MDLQA-17917 7.png
          MDLQA-17917 7.png
          390 kB
        11. MDLQA-17917 8.png
          MDLQA-17917 8.png
          65 kB
        12. MDLQA-17917 9.png
          MDLQA-17917 9.png
          395 kB
        13. MDLQA-17917 grade item student.png
          MDLQA-17917 grade item student.png
          19 kB

        Issue Links

          Activity

            People

              lameze Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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