-
Functional Test
-
Major
-
Moodle 4.3
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!
If not testing on QA: 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
Pre-requisite
- Have a course with an instructor and at least one student
- Have the Robotest Test app installed
- As site administrator, navigate to Site Admin > Plugins > Activity Modules > External Tool > Manage Tools
- In the box that says tool url enter: https://robotest.theedtech.dev/register
- Click the Add LTI Advantage button
- The test tool should open with a trace of the communication with Moodle, all should be green (thumbs up).
- Click the close button - the test app UI should disappear and the list of tools refreshing
- Verify the Robotest app has been added and is not yet activated
- Click the Activate button
- For LTI 1.1 we use saLTIre (https://saltire.lti.app/)
- As site administrator, navigate to Site Admin > Plugins > Activity Modules > External Tool > Manage Tools -> Configure Tool Manually
- Tool URL: https://saltire.lti.app/tool
- Set as LTI 1.1
- Key: any value
- Secret: secret
- 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.
- Enter a course as instructor
- Go to "More > LTI External tools"
- Make sure both tools are set to "Show in activity chooser". If not, please set them accordingly.
- Go back to the course home
- Turn editing on
- Add an activity and select Robotest:
- Click the Select Content button
- Select a single item: "A single Graded Activity with Submission Review Full"
- Back in Moodle, modify the title to prefix it with SINGLE, as to remember that link was imported as a single item import
- Submit
- Now let's import multiples: Add an activity and select Robotest again:
- Click the Select Content button
- Select "One of Each"
- Back to Moodle, verify all the links listed in Robotest are going to be imported (should be 4 of them, 3 graded)
- Submit
- Now let's check the Submission review actually works by going to the gradebook: navigate to grades
- Verify that each cell for the graded imported links has a ellipsis menu (...)
- For each of those links, click on the ellipsis menu (...) and select "Grade analysis" for the student cell
- Verify the launch is successful
- For submission review launch, it should mention it's a submission review (The 2nd header row should say 'Submission Review Launch')
- 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.
- Let's verify the regular launches are still... regular launches
- Navigate to the Course main page (where the topics are listed)
- Click on one of the Robotest activity
- 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:
- Enter course as a Student
- Click on one of the imported links, one starting with Graded with Sub. Review (IFrame)
- 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')
- It should have sent a grade back (one row should have a green title saying 'Score Post without error ')
- Navigate back the Moodle Course home (by clicking on the course name in the Moodle UI)
- Click on Grade
- On the list of activities, find the one you clicked on in step 2
- Verify it has a grade
- Click on the activity link
- Verify the launch type is submission review (The 2nd header row should say 'Submission Review Launch')
- 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).
- As a teacher, go to the course
- Click to add an activity or resource, selecting "Saltire" from the activity chooser
- Make the activity gradable (check "Allow Saltire to add grades in the gradebook") and set maximum points to some non-0 value (e.g. 100)
- Save
- Open the gradebook
- Verify a column exists for the saltire activity
- Click on the ellipsis menu (...) and select "Grade analysis" for the student cell
- Verify the tool launches successfully