-
Functional Test
-
Major
-
Moodle 4.1
This test requires admin access (ask for credentials) and can be tested on the QA site.
Pre-requisite
- 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
- 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
- Privacy: allow grading instructor's choice
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
- Turn editing on
- Add an activity > external tool:
- Select Robotest from the list of tools
- Click the Select Content button
- Select a single item: "A single Graded Activity with Submission Review Full"
- Back to 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 > external tool:
- Select Robotest from the list of tools
- 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 mag icon
- For each of those links, click on the mag icon
- 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)
- Clcik 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 mag glass to show up. So since it shows, it should work (the link should launch successfully).
- In the course, turn edit on, add an external tool activity
- Choose saLTIre tool
- Make the activity gradable and set maximum points to some no 0 value
- Save
- Open the gradebook
- Verify a column exists for that new link
- Click on the Mag glass
- Verify the tool launches successfully
- is a QA test written for
-
MDL-69275 User can open external tool submission from the gradebook
- Closed